Chat To Image
A 2-step recipe with Hyperbolic. We can help you get access.
Recipe · 2 steps
Chat To Image
with Hyperbolic
Expand an idea into an image prompt with an LLM and render it to an image.
- Ask the chat model to turn the short idea into a detailed, single paragraph text-to-image prompt suitable for a diffusion model.
- Generate images from the authored prompt and capture the base64 image and the seed used.
What you'll need to have ready
- apiKey: Hyperbolic API key passed as a Bearer token.
- idea: A short creative idea to expand into a detailed image prompt.
- chatModel: Chat model id used to author the image prompt.
- imageModel: Image model name (e.g. SDXL1.0-base or SD3.5).
- steps: Number of diffusion steps.
- width: Output image width in pixels.
- height: Output image height in pixels.
For your developer
Arazzo workflow hyperbolic-ai:chat-to-image, 2 operations: createChatCompletion → generateImage. Specs on APIs.io.