Call it
curl https://api.peume.com/v1/call/edit-image-for-3d \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ai_model": "nano-banana",
"prompt": "your prompt"
}
}'const res = await fetch("https://api.peume.com/v1/call/edit-image-for-3d", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ai_model": "nano-banana",
"prompt": "your prompt"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/edit-image-for-3d",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ai_model": "nano-banana",
"prompt": "your prompt"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: edit-image-for-3d.
Parameters
ai_modelRequiredstringEdit model: nano-banana $0.09 up to the GPT Image models $0.36. GPT Image 2.6 comes as gpt-image-2-6-flare (fast iteration) and gpt-image-2-6-sunburst (detailed work, precise edits).
nano-banana · nano-banana-pro · nano-banana-2 · nano-banana-2-lite · nano-banana-2-1 · gpt-image-2 · gpt-image-2-5-flare · gpt-image-2-5-sunburst · gpt-image-2-6-flare · gpt-image-2-6-sunburst
promptRequiredstringDescribe the edit.
reference_image_urlsarray1–5 reference images (public https URLs).
input_run_idstringrun id of YOUR OWN successful /image/generate or /image/edit run whose images to edit (all of them are used).
generate_multi_viewbooleanProduce a 4-view split image.
aspect_ratiostringOutput aspect ratio (default 1:1).
1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3
remove_backgroundbooleanReturn a transparent RGBA cutout (single image only).
