Skip to main content

Endpoint

Generates images synchronously. The request blocks until the image is ready (typically 5-30 seconds depending on the model).

Request Parameters

Available parameters vary by model. Use the model detail endpoint (GET /api/ai/models/:id) to see the request_schema for model-specific parameters.

Examples

Basic generation

Response (response_format: "url")

The URL is a temporary link that expires after a period of time.

Response (response_format: "b64_json")

Errors