Skip to main content

Endpoint

Generates an AI image based on a text prompt. The endpoint processes your prompt and returns image data that can be displayed or stored.

Request body

string
required
The text description of the image you want to generate. Be descriptive for best results.

Response

string
The generated image data returned from the AI model. This typically contains the image URL or base64-encoded image data.

Example request

Example response

Error codes

error
Bad request - The prompt parameter is missing or invalid
error
Internal server error - The image generation service failed to process the request