Image models
Muse Image
On this page
Meta's Muse Image — one sharp picture from a prompt, or from a prompt plus up to nine reference images, in seven aspect ratios at one flat price.
| modelId | muse-image |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | muse-image | POST /api/v1/generate | prompt |
| Poll task | — | GET /api/v1/task/{id}?model=muse-image | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Name the subject, setting, light and framing. With reference images, say what to keep and what to change. Max 4000 characters. (example: A travel poster for a seaside town called Porto Azul: pastel houses stacked on a cliff above a turquoise bay, the headline PORTO AZUL in bold serif letters at… — full value in the request example) |
| image_urls | string[] | No | Up to 9 PNG, JPEG or WebP images, 11 MB in total. Leave empty for text to image. (image URL) |
| aspect_ratio | string | No | Auto is 1:1 for text only, and follows the reference images' shape when you attach some. (options: auto | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3) (default: auto) |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"muse-image","input":{"prompt":"A travel poster for a seaside town called Porto Azul: pastel houses stacked on a cliff above a turquoise bay, the headline PORTO AZUL in bold serif letters at the top, flat retro illustration style","image_urls":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"aspect_ratio":"auto"}}'