Skip to content

Combine

Combine merges 2–5 images into one output. A prompt describes how to arrange them.

Terminal window
depicta combine image hero.png sidebar.png --prompt "Place hero on the left, sidebar on the right"

The API takes the input images as HTTPS URLs (input_image_urls, 2–5 entries). Upload local files first with POST /v1/upload; the CLI does this for you.

Terminal window
# Upload each local file first (repeat per file) and note its upload_url
curl -X POST https://api.depicta.ai/v1/upload \
-H "Authorization: Bearer dpct_YOUR_API_KEY" \
-F "image=@hero.png"
curl -X POST https://api.depicta.ai/v1/combine/image \
-H "Authorization: Bearer dpct_YOUR_API_KEY" \
-H "Content-Type: application/json" \
--max-time 900 \
-d '{"input_image_urls": ["HERO_UPLOAD_URL", "SIDEBAR_UPLOAD_URL"], "prompt": "Place hero on the left, sidebar on the right"}'

Like generate and edit, combine is type-specific:

Endpoint Use for
POST /v1/combine/image Photos, illustrations
POST /v1/combine/graphic Icons, logos, UI elements
POST /v1/combine/diagram Merge diagram sections

Combine also supports up to 5 reference images to guide the composition style — for example, showing how elements should be arranged or what visual tone to aim for.

See Generate — Reference images for full details.

  • Minimum: 2 images
  • Maximum: 5 images. Some models take fewer (max_combine_inputs in GET /v1/models); sending more returns 422 validation_error with the model’s limit, and nothing is charged.
  • Each image can be a file, URL, or stdin (CLI) or an HTTPS URL (API)
  • Without --model, combine uses your default model if it can combine, otherwise gemini
  • mai and mai-fast cannot combine. See Models

Same format as generate.