Image Generation
Create an image from a text prompt using various state-of-the-art models. Our API is fully compatible with the OpenAI Image Generation schema.Endpoint
Request Body
The model ID to use for image generation.Available models include:
flux-schnell(Fast, high quality)flux-1.1-pro(Professional grade)dall-e-3(OpenAI’s latest)ideogram-v3(Excellent for text in images)imagen-3(Google’s latest)
The format in which the generated images are returned. Must be one of
url or b64_json.Response
An array of image objects. Each object contains:
url(string): The URL of the generated image (ifresponse_formatisurl)b64_json(string): The base64-encoded JSON of the generated image (ifresponse_formatisb64_json)revised_prompt(string): The prompt as revised by the model (if applicable)