Generate an image
carpe_image_generateGenerate images from a text prompt using Venice image models, with inline or saved output, fixed per-image pricing, and automatic queuing for slow models.
Instructions
Generate image(s) from a prompt (Venice image models: Flux, GPT Image, Nano Banana, Seedream, Qwen Image, Recraft, uncensored SD…). Images are returned inline and/or saved to CARPE_OUTPUT_DIR. Fixed price per image (carpe_pricing). Slow models run as a queued job automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default): queue slow models (gpt-image, nano-banana, recraft, flux-2, qwen-image) and edits, sync otherwise. | |
| seed | No | ||
| extra | No | Additional model parameters passed through verbatim (steps, cfg_scale, style_preset, hide_watermark…). | |
| model | No | Image model id (default z-image-turbo). See carpe_list_models type "image". | |
| route | No | "carpe" → /v1/image/* (Carpe TEE network). "router" → /router/images/* (cheapest of Carpe and external markets; no privacy filter for images). Default from CARPE_DEFAULT_ROUTE. | |
| width | No | ||
| format | No | Output format (default webp). | |
| height | No | ||
| prompt | Yes | ||
| quality | No | Price tier on tiered models. | |
| variants | No | 1–4 images (sync mode only), each billed. | |
| safe_mode | No | Blur adult content (default false). | |
| resolution | No | "1K" | "2K" | "4K" on tiered models — sets the price tier. | |
| aspect_ratio | No | e.g. "1:1", "16:9" (model-dependent). | |
| wait_seconds | No | Seconds to wait for a queued job before returning a job_id (default 120). | |
| negative_prompt | No |