Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for calling Stability API for image generation #2706

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wearsshoes
Copy link

No description provided.

… generateImage() for image generation upon market creation
…stability-utils.ts, rewrite uploadToStorage to take raw bytes rather than url
Copy link

vercel bot commented Jul 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 5:50pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 5:50pm

Copy link

vercel bot commented Jul 6, 2024

@wearsshoes is attempting to deploy a commit to the Manifold Markets Team on Vercel.

A member of the Team first needs to authorize it.

@wearsshoes
Copy link
Author

Notes on this:

  • Needs a stability API key in env.
  • SDXL runs cost about 0.6¢ per run. Sd-ultra runs cost way more, 8¢ per run. As written, default sd-ultra generation is enabled only for market tiers plus and up; SDXL for cheap markets. For comparison Dall-E 3 is 6¢ per run, and does fall between the two in terms of quality.
  • Might be nice to eventually add methods for uploading or regenerating bad banner images by paying mana later.

@wearsshoes
Copy link
Author

wearsshoes commented Jul 8, 2024

Potential upgrade: add animated workflows via some serverless comfyui backend (possibly https://comfy.icu for ease of config, but it has a minimum allocation of $10/mo.) Cost per generation would probably be in the range of 50¢ per market, so probably reserved for premium and crystal markets.

Example: https://comfy.icu/workflows/CEkjb25FvMfMCwkmJA87I/runs/iWKQHf7f0Wxvb8uZdhJLv

@sipec sipec self-requested a review November 1, 2024 22:42
@sipec
Copy link
Member

sipec commented Nov 1, 2024

oh I never realized we have not merged this one yet lol. is it like, a lot better

@wearsshoes
Copy link
Author

wearsshoes commented Nov 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants