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

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

Request Examples

Response

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

Example Response

Errors