Search Documentation
Search for a documentation page...
Images API
REST API endpoints for uploading and generating product images.
Upload Images
Upload one or more image files to blob storage. Returns URLs that can be used in product creation.
Limits
| Constraint | Value |
|---|---|
| Max files per request | 10 |
| Max file size | 10 MB |
| Accepted types | Any image/* MIME type |
Response
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 |