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
Text description of the image(s) to generate.
Visual style hint (e.g., "photorealistic", "illustration", "watercolor", "3d-render"). Appended to the prompt for the image engine.
Aspect ratio (e.g., "1:1", "16:9", "9:16", "4:3"). Defaults to the engine’s native ratio.
Number of images to generate (1–4).
Request Examples
curl -X POST https://hitheo.ai/api/v1/images \
-H "Authorization: Bearer $THEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A minimalist tech logo, blue and white",
"style": "photorealistic",
"aspect_ratio": "1:1",
"count": 2
}'
Response
Unique image generation ID (prefixed img_).
Array of generated images.
Theo engine subsystem that produced the image (e.g. "theo-vision").
Theo model ID (e.g. "theo-1-create").
The prompt used (may include style/ratio enrichment).
Example Response
{
"id": "img_abc123",
"created": "2026-04-10T12:00:00Z",
"images": [
{
"url": "https://artifacts.hitheo.ai/img/abc123-1.png",
"engine": "theo-vision",
"model": "theo-1-create",
"prompt": "A minimalist tech logo, blue and white Style: photorealistic. Aspect ratio: 1:1."
},
{
"url": "https://artifacts.hitheo.ai/img/abc123-2.png",
"engine": "theo-vision",
"model": "theo-1-create",
"prompt": "A minimalist tech logo, blue and white Style: photorealistic. Aspect ratio: 1:1."
}
],
"usage": { "cost_cents": 0.08 }
}
Errors
| Status | Code | Description |
|---|
| 400 | missing_prompt | prompt is required |
| 401 | invalid_api_key | Missing or invalid API key |
| 429 | rate_limit_exceeded | Too many requests |