Search Documentation
Search for a documentation page...
Images API
REST API endpoint for AI-powered image generation.
Generate Image
Generates an image using AI from a text prompt. The image is uploaded to the store's CDN and returns the URL. Timeout: 30 seconds.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text prompt (1-1000 characters) |
type | string | No | Image type: product, collection, or hero (default: product) |
name | string | No | Filename prefix (default: generated) |
The type parameter affects the generated image's aspect ratio and style:
| Type | Use Case |
|---|---|
product | Square product photos, clean backgrounds |
collection | Wide banner images for collection headers |
hero | Full-width hero images for landing pages |