Image Generation

Multi Image Kontext ProAPI

An experimental model with FLUX Kontext Pro that can combine two input images

Test in Dashboard View Docs ← All Tools

Three ways to use this tool

REST API

One POST request. Get the result back directly — as an image, video, or JSON depending on the tool.

terminal
curl -X POST https://apiai.me/api/workflow/multi-image-kontext-pro \
     -H "X-API-Key: YOUR_API_KEY" \
     -F "image=@input.jpg" \
     -F "aspect_ratio=match_input_image" \
     -F "input_image_2=@image.jpg" \
     -F "format=png" \
     -F "prompt=VALUE" \
     -F "safety_tolerance=2" \
     -F "seed=VALUE"
     --output result.png

Dashboard Playground

Test this tool visually before writing any code. Upload an image, set parameters, and see the result live. When it looks right, copy the auto-generated curl command and paste it into your app.

  1. Open the dashboard → API Toolbox
  2. Find Multi Image Kontext Pro and click it
  3. Upload your input and adjust parameters
  4. Copy the curl command and ship
Open Dashboard →

Batch Processing

Process hundreds of images at once without writing a loop. Upload a CSV with one row per item, set your parameters, and download the results as a ZIP when they're done.

  1. Open the dashboard → Batches
  2. Select Multi Image Kontext Pro
  3. Add your content and start the batch
  4. Download results ZIP when complete
Go to Batches →

Parameters

Name Required Description Default / Options
aspect_ratio optional Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image. match_input_image1:116:99:164:33:43:22:34:55:421:99:212:11:2
input_image_2 required Second input image. Must be jpeg, png, gif, or webp.
format optional Output format for the generated image jpgpng
prompt required Text description of how to combine or transform the two input images
safety_tolerance optional Safety tolerance, 0 is most strict and 2 is most permissive. 2 is currently the maximum allowed. 2
seed optional Random seed. Set for reproducible generation

Ready to integrate?

Get an API key, test Multi Image Kontext Pro in the dashboard, and copy the curl command.

Get API Key Full API Reference