Skip to main content
POST
Generate Images
Generate one or more images from a text prompt. This is a synchronous endpoint — images are returned directly in the response.

Authentication

Requires a Bearer token. See Authentication.

Request Body

prompt
string
required
Text description of the image(s) to generate.
style
string
Visual style hint (e.g., "photorealistic", "illustration", "watercolor", "3d-render"). Appended to the prompt for the image engine.
aspect_ratio
string
Aspect ratio (e.g., "1:1", "16:9", "9:16", "4:3"). Defaults to the engine’s native ratio.
count
integer
default:"1"
Number of images to generate (1–4).

Request Examples

Response

id
string
Unique image generation ID (prefixed img_).
created
string
ISO 8601 timestamp.
images
object[]
Array of generated images.
usage
object

Example Response

Errors