import requests r = requests.post( "https://api.aimlapi.com/v1/images/edits", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, data={"model": "meta/muse-image-edit", "prompt": "Add a crown to the cat's head."}, files={"image": open("input.png", "rb")}, ) print(r.json())
const form = new FormData();
form.append("model", "meta/muse-image-edit");
form.append("prompt", "Add a crown to the cat's head.");
form.append("image", fileInput.files[0]);
const r = await fetch("https://api.aimlapi.com/v1/images/edits", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
},
body: form,
});
console.log(await r.json());
curl -L \ --request POST \ --url 'https://api.aimlapi.com/v1/images/edits' \ --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \ --form "model=meta/muse-image-edit" \ --form "prompt=Add a crown to the cat's head." \ --form "image=@<YOUR_IMAGE_PATH.png>;type=image/png;filename=<IMAGE_NAME>"
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Output | |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Meta Muse Image Edit This page | Reference-guided image editing | |||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale |