Create image
Use an image model to generate an image for a given prompt.
Request body
A description of the desired images. Maximum length varies by model.
Number of generation steps.
URL 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.
Height of the image to generate in number of pixels.
Width of the image to generate in number of pixels.
The prompt or prompts not to guide the image generation.
Format of the image response. Can be either a base64 string or a 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.
The format of the image response. Can be either be jpeg or png. Defaults to jpeg.
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.
Example request
{
"prompt": "cat floating in space, cinematic"
}Response
Image generated successfully
The object type, which is always list.