Meta Muse Image Edit
Model Overview
Meta Muse Image Edit is an image-to-image model that makes precise edits that change only what you ask, stays coherent across turns, and composes from multiple reference images.
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstringRequired
The text prompt describing the content, style, or composition of the image to be generated.
image_urlsstring · uri[] · min: 1 · max: 10Required
List of URLs or local Base64 encoded images to edit.
num_imagesnumber · min: 1 · max: 10OptionalDefault:
The number of images to generate.
1aspect_ratiostring · enumOptionalPossible values:
The aspect ratio of the edited image. If omitted, the aspect ratio of the last provided reference image is used.
output_formatstring · enumOptionalDefault:
The format of the generated image.
webpPossible values: Responses
200
Successful response.
application/json
post/v1/images/generations
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "meta/muse-image-edit", "prompt": "Describe what you want the model to generate.", "image_urls": ["https://example.com/input.jpg"]}'200
Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?