Call it
curl https://api.peume.com/v1/call/generate-image-sets-fast \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"size": "2K",
"enable_sequential": false,
"watermark": false
}
}'const res = await fetch("https://api.peume.com/v1/call/generate-image-sets-fast", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"size": "2K",
"enable_sequential": false,
"watermark": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/generate-image-sets-fast",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"size": "2K",
"enable_sequential": False,
"watermark": False
}
},
)
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: generate-image-sets-fast.
Parameters
promptRequiredstringText prompt (max 5,000 characters) — the image description, editing instruction, or image-set storyline. This model has no negative_prompt: describe exclusions in the prompt ("do not include...").
imagesarray0-9 input images for editing / multi-image reference. Input images are free; the output aspect ratio follows the last one.
sizestringOutput resolution: "1K" or "2K" (default) — or an explicit "width*height" (768*768 up to 2048*2048 total pixels, aspect ratio 1:8 to 8:1). Price does not vary by resolution.
Example: 2K
nintegerNumber of output images: 1-4 normally (default 1); in image-set mode (enable_sequential) it is the MAXIMUM, 1-12 (default 12) — the model decides the actual count. Drives the per-image charge and the hold.
enable_sequentialbooleanImage-set mode: generate multiple story-coherent images from one request. Disables thinking_mode and color_palette.
Example: false
thinking_modebooleanEnhanced reasoning for better quality (default true; slower). Effective only for text-to-image outside image-set mode.
color_palettearrayCustom color scheme (3-10 colors; 8 recommended). Not available in image-set mode.
bbox_listarrayInteractive editing: per input image, 0-2 bounding boxes [x1, y1, x2, y2] in absolute pixels. The outer list length must match the input image count; pass [] for images without a box.
watermarkbooleanAdd an "AI Generated" watermark. Default false.
Example: false
seedintegerRandom seed for reproducibility. Same seed does not guarantee identical results.
