PeumeAPI

AI generation

Generate and Edit Images (Fast)

Text-to-image and image editing with Qwen-Image 3.0.

From $0.0005 per unit

Call it

curl https://api.peume.com/v1/call/generate-and-edit-images-fast \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "size": "your size",
    "n": 1,
    "prompt_extend": true,
    "watermark": false
  }
}'

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-and-edit-images-fast.

Parameters

promptRequiredstring

The positive prompt: image content, style, composition — or the editing instruction when input images are provided. Recommended maximum 4,500 tokens.

imagesarray

0-3 input images for image editing / image-to-image. Order defines the reference order. Each input image bills $0.003.

sizeRequiredstring

Output resolution "width*height" (REQUIRED — it also selects the output price tier). Total pixels 512*512 to 2048*2048, aspect ratio 1:8 to 8:1. E.g. 1024*1024 (1K tier), 2048*2048 (2K tier).

ninteger

Number of output images (1-6). Drives the per-image charge.

Example: 1

negative_promptstring

Content to exclude from the image.

prompt_extendboolean

Intelligent prompt rewriting (recommended for short prompts). Default true.

Example: true

prompt_extend_modestring

"direct" (default) suits most cases and works for both generation and editing; "agent" rewrites more thoroughly but is text-to-image ONLY.

direct · agent

enable_thinkingboolean

Thinking mode (default true): better quality, slower. Requires prompt_extend.

watermarkboolean

Add an "AI Generated" watermark. Default false.

Example: false

seedinteger

Random seed for reproducibility. Same seed does not guarantee identical results.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.