Muse Image Discount Group API
Generate WebP images from text or up to nine references and pay per delivered image.
muse-image-ext generates one WebP image from a prompt and optional references. Use a Discount Group API key. The rate is US$0.006 per delivered image and references are free.
Open the playground or create a key on the API Keys page.
Submit a generation
export APIPOOL_API_KEY="your-discount-group-key"
curl https://app.apipool.dev/v1/images/generations \
-H "Authorization: Bearer $APIPOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"muse-image-ext","prompt":"A red ceramic cup on a white table in soft studio light","size":"1:1","n":1}'After HTTP 202, save the returned APIPool task id and query it with the same key.
curl "https://app.apipool.dev/v1/tasks/YOUR_TASK_ID" \
-H "Authorization: Bearer $APIPOOL_API_KEY"Keep polling every few seconds for submitted, processing, or meter_pending. When the status is completed, save the image at data[].url before its expiry. If the status is failed, read the error. After a submission timeout, check the request log before trying again.
Generate with references
Provide public HTTP(S) URLs, PNG/JPEG/WebP data URLs, or Base64 images in image_urls. Supply up to nine images with at most 11 MiB of combined original bytes. URLs must be accessible without a browser session.
Upload local files with the edit endpoint.
curl https://app.apipool.dev/v1/images/edits \
-H "Authorization: Bearer $APIPOOL_API_KEY" \
-F "model=muse-image-ext" \
-F "prompt=Keep the cup and place it on a wooden coffee table" \
-F "n=1" \
-F "[email protected]"Repeat the image field to upload multiple files. The playground also limits each image to 10 MiB within the same 11 MiB total. References guide generation and the image can change in other details.
Parameters and limits
| Parameter | Accepted values |
|---|---|
model | muse-image-ext |
prompt | Required nonempty string. The playground accepts up to 4,000 characters. |
n | Numeric 1 |
size | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, or auto |
aspect_ratio | One of the seven fixed ratios. When both fields are provided, each must be valid. |
image_urls | Up to nine reference images |
Omitting the ratio gives 1:1 for text-to-image and follows the reference composition when a reference is present. The model chooses pixel dimensions. Omit resolution, quality, output_format, masks, layers, video, audio, and stream.
Troubleshooting
- HTTP 400. Check
n=1, the ratio, reference count, and total size. Remove unsupported fields. - HTTP 401. Check the key.
- HTTP 404. Verify the exact model ID and the Discount Group.
- HTTP 429. Reduce concurrency and wait before retrying. If you already have a task ID, keep querying it.
Confirmed failures are free. While the status is uncertain, retain the task ID and check its status or contact support.