Skip to content
youbot
Docs menu

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.

modelIdmuse-image
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Defaultmuse-imagePOST /api/v1/generateprompt
Poll task—GET /api/v1/task/{id}?model=muse-image—

Input parameters

FieldTypeRequiredValues / example
promptstringYesName 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_urlsstring[]NoUp to 9 PNG, JPEG or WebP images, 11 MB in total. Leave empty for text to image. (image URL)
aspect_ratiostringNoAuto 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"}}'