## Basic tool info Tool name: wiroai/flux-kontext-max-multi Tool description: An experimental multi-image approach to a premium text-to-image editing model, designed to maximize performance and enhance typography through natural language prompts. Tool cover: https://cdn.wiro.ai/uploads/models/wiroai-flux-kontext-max-multi-cover.jpg Tool categories: - tool - bfl - flux-kontext - text-to-image - image-to-image - partner - flux-max - compare-square - flux-kontext-multi Tool tags: - image generation - flux-kontext - image editing - flux-max Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/wiroai/flux-kontext-max-multi Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Tool Inputs: - name: inputImageUrl label: Image URL help: Image to use as reference. Must be jpeg, png type: text default: - name: inputImage2Url label: Image Second URL help: Image to use as reference. Must be jpeg, png type: text default: - name: prompt label: prompt help: Text prompt for image generation. type: textarea default: Remove the tea glass. Put the bird left of the teapot. - name: promptUpsampling label: Prompt Upsampling help: Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation. type: select default: false options: - value: "false" label: NO - value: "true" label: YES - name: safetyTolerance label: Safety Tolerance help: Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict. type: select default: 2 options: - value: "2" label: 2 - name: seed label: seed help: seed-help type: text default: 42 - name: outputFormat label: Output Format help: Output format for the generated image. Can be 'jpeg' or 'png'. type: select default: jpeg options: - value: "jpeg" label: jpeg - value: "png" label: png ## Tool Parameter Inspires: - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/Car-«-feature-image1-1366x768.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/usain_bolt.png - prompt: Place the man on the car seat. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/input-inpainting-controlnet.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/input-canny-controlnet.jpg - prompt: Remove the tea glass. Put the bird left of the teapot - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/usain_bolt.png - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/input-depth-to-image-4.jpg - prompt: Place the small sized package in the man’s hand. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/input-vtoonify.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/wiro-logo-default.png - prompt: Print the logo in small size at the center of the woman’s shirt. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/wiro-photo-maker-sample-3.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/wiro_logo.png - prompt: Put the logo onto man's shirt with small size. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/wiro-photo-maker-sample-2.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/input-color.jpg - prompt: Make the woman’s hair look like it does in the second image. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/input-softedge-controlnet.jpg - inputImage2: https://cdn.wiro.ai/uploads/sampleinputs/pattern.jpeg - prompt: The first image is the room. The second image is the pattern. Paint the wall behind the bed with the pattern in the second image. ## Integration Header Prepare ```bash # Sign up Wiro dashboard and create project export YOUR_API_KEY="{{useSelectedProjectAPIKey}}"; export YOUR_API_SECRET="XXXXXXXXX"; # unix time or any random integer value export NONCE=$(date +%s); # hmac-SHA256 (YOUR_API_SECRET+Nonce) with YOUR_API_KEY export SIGNATURE="$(echo -n "${YOUR_API_SECRET}${NONCE}" | openssl dgst -sha256 -hmac "${YOUR_API_KEY}")"; ``` ## Run Command - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Run/wiroai/flux-kontext-max-multi" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "inputImageUrl": "input-inpainting-controlnet.jpg", "inputImage2Url": "input-canny-controlnet.jpg", "prompt": "Remove the tea glass.\nPut the bird left of the teapot.", "promptUpsampling": "false", "safetyTolerance": "2", "seed": "42", "outputFormat": "jpeg", "callbackUrl": "You can provide a callback URL; Wiro will send a POST request to it when the task is completed." }'; ``` ## Run Command - Response ```json { "errors": [], "taskid": "2221", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "result": true } ``` ## Get Task Detail - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "tasktoken": 'eDcCm5yyUfIvMFspTwww49OUfgXkQt', }'; ``` ## Get Task Detail - Response ```json { "total": "1", "errors": [], "tasklist": [ { "id": "2221", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "parameters": {}, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_postprocess_end", "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Task Status Information This section defines the possible task status values returned by the API when polling for task completion. ### Completed Task Statuses (Polling can stop) These indicate that the task has reached a terminal state — either success or failure. Once any of these is received, polling should stop. - task_postprocess_end : Task completed successfully and post-processing is done. - task_cancel : Task was cancelled by the user or system. ### Running Task Statuses (Continue polling) These statuses indicate that the task is still in progress. Polling should continue if one of these is returned. - task_queue : Task is waiting in the queue. - task_accept : Task has been accepted for processing. - task_assign : Task is being assigned to a worker. - task_preprocess_start : Preprocessing is starting. - task_preprocess_end : Preprocessing is complete. - task_start : Task execution has started. - task_output : Output is being generated.