Create image
Use an image model to generate an image for a given prompt.
Authorization
bearerAuth In: header
Request Body
application/json
A description of the desired images. Maximum length varies by model.
The model to use for image generation. See all of Together AI's image models
Number of generation steps.
20URL of an image to use for image models that support it.
Seed used for generation. Can be used to reproduce image generations.
Number of image results to generate.
1Height of the image to generate in number of pixels.
1024Width of the image to generate in number of pixels.
1024The prompt or prompts not to guide the image generation.
Format of the image response. Can be either a base64 string or a URL.
Value in
- "base64"
- "url"
Adjusts the alignment of the generated image with the input prompt. Higher values (e.g., 8-10) make the output more faithful to the prompt, while lower values (e.g., 1-5) encourage more creative freedom.
3.5The format of the image response. Can be either be jpeg or png. Defaults to jpeg.
"jpeg"Value in
- "jpeg"
- "png"
An array of objects that define LoRAs (Low-Rank Adaptations) to influence the generated image.
An array of image URLs that guide the overall appearance and style of the generated image. These reference images influence the visual characteristics consistently across the generation.
If true, disables the safety checker for image generation.
Response Body
application/json
curl -X POST "https://example.com/images/generations" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string", "model": "black-forest-labs/FLUX.1-schnell-Free" }'{ "id": "string", "model": "string", "object": "list", "data": [ { "index": 0, "b64_json": "string", "type": "b64_json" } ]}