## Basic tool info Model name: wiro/img-to-img-flux Model description: This is an FLUX1.0 image to image tool. Model cover: https://cdn.wiro.ai/uploads/models/wiro-img-to-img-flux-cover.webp Model categories: - tool - flux - image-to-image - bf16 - persistent Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/wiro/img-to-img-flux Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: selectedModel label: select-model help: select-model-help type: select default: "666" options: - value: "666" label: AbdallahAlswa80/FLUX.1-dev-fp8-v1.0 description: This is FLUX.1-dev-fp8 v1.0 model. triggerwords: [] generatesettings: [] categories: ["model","text-to-image","flux","checkpoint-file","bf16","persistent"] image: https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-cover.jpeg samples: ["https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-1.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-2.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-3.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-4.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-5.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-6.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-7.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-8.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-9.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-10.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-11.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-12.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-13.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-14.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-15.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-16.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-17.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-18.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-19.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-20.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-21.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-22.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-23.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-24.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-25.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-26.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-27.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-28.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-29.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-30.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-31.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-32.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-33.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-34.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-35.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-36.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-37.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-38.mp4","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-39.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-40.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-41.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-42.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-43.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-44.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-45.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-46.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-47.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-48.jpeg","https://cdn.wiro.ai/uploads/models/AbdallahAlswa80-FLUX.1-dev-fp8-v1.0-sample-49.jpeg"] marketplace: 1 inspire: [{"seed":"17","scale":"1","steps":"20","prompt":"Cute furry feral pony in a rural peaceful hippy town walking down a cobblestone road. Fluffy. Text balloon that says \"Buzz?\". Detailed anime movie style, crosshatching. Unreal 60's psychedelic style.Ugly Cute,, Creature, Monster, digital illustration"},{"seed":"22914208","scale":"1","steps":"22","prompt":"Breathtaking hyper-realistic monochrome photograph: resentful girl with piercing eyes, juxtaposed against an electromechanical robot-clown. Intricate circuitry forms a wild updo and body paint. Cropped jacket with industrial straps. Backdrop: futuristic steel-blue laser city, neon-lit vegetation. 35mm film, shallow depth of field, cinematic composition.","negativePrompt":"((disfigured)), ((bad art)), ((deformed)), ((poorly drawn)), ((extra limbs)), ((long neck)), cross-eyed, blurry, anime, 3d, text, title, logo, (sfw:1.2), adult, mature, old, old, fat, big-breasts, wide-hips"},{"seed":"29789932","scale":"1","steps":"16","prompt":"A picture of a beautiful wooded area. There's an aurora borealis at a campsite, and a ufo is at the scene, beaming someone up to their ship. The word \"BUZZ\" is written on the beam of light.This is a modern colorful surreal, atmospheric piece."},{"seed":"23697285","scale":"1","steps":"16","prompt":"female african ghost nun wearing a simulated plugsuit and simulated crown. surreal vector illustration with a bold cyan-and-pink color palette, with sharp lines, geometric shapes, and striking contrasts."},{"seed":"29847109","scale":"1","steps":"25","prompt":"cinematic medium shot of the head of a brachiosaurus dinosaur stuck through a window in a living room,eating leaves from a potted plant, photorealistic, sharp focus, very detailed skin texture "},{"seed":"12091449","scale":"1","steps":"25","prompt":"cinematic full shot of a huge t-rex dinosaur in a forest during a rainy night. A man in a yellow rain coat is standing in the foreground,facing away from the viewer and out of focus, photorealistic, sharp focus, very detailed skin texture "},{"seed":"45199345","scale":"3","steps":"10","prompt":"A colossal, anatomically correct human heart, towering hundreds of meters tall, floating amidst dark, swirling storm clouds in the night sky. The heart is intricately detailed, with thick veins and arteries stretching across its surface, pulsing with fiery energy. Cracks and ruptures across the heart’s dark, muscular surface release streams of molten, liquid fire that cascade down its sides. This liquid fire flows in an almost supernatural way, glowing with intense, radiant orange and yellow tones that light up the heart’s massive form.Liquid Fire Details: From the heart’s arteries and fissures, rivers of liquid fire pour out, moving with a fluidity that feels both natural and otherworldly. The fire is bright and intensely hot, but not dense like lava—it flows more like a viscous, glowing liquid, shimmering with energy and casting a pulsating glow. As the fire spills over the heart’s surface, it travels downwards in streams, illuminating the dark veins and highlighting the heart’s immense texture.Atmospheric Ripples and Impact: Each powerful heartbeat sends shockwaves through the air, creating ripples that distort the surrounding clouds and stars. These ripples are visible as waves of energy, spreading outward and making the sky shudder with every pulse. The atmosphere vibrates with a sinister energy, as if the heart is warping reality itself with each beat. Lighting and Glow: The liquid fire’s radiant glow reflects across the heart’s rugged, dark surface, casting long shadows over the veins and arteries. The inner light flickers with each beat, creating a haunting rhythm of light and darkness. Occasional lightning bolts flash across the stormy sky, briefly illuminating the heart’s details and adding to the otherworldly atmosphere.Background and Foreground: Below, the barren landscape is illuminated by the fiery glow. Pools of liquid fire form where it drips from the heart, casting reflections that flicker across the charred ground. The terrain is fractured, littered with scattered bones and smoldering rocks, all bathed in the heart’s warm, ominous light.Atmosphere and Surreal Effects: Wisps of smoke and embers drift from the heart’s fissures and liquid fire, mingling with the atmosphere and giving the scene a surreal quality. Sparks and fiery droplets float through the air, creating an apocalyptic aura around the heart as it hovers, dominating the night sky with its terrifying presence. The heart feels both ancient and alive, like a cosmic entity pulsing with destructive energy.\""},{"seed":"57545665","scale":"4","steps":"20","prompt":"Houston rocket launch site, wide angle long shot of a white space shuttle launching from a launch site, clear blue sky with white clouds, highly detailed, ultra-high resolutions, 32K UHD, best quality, masterpiece,","negativePrompt":"(worst quality, low quality:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), embedding:negative_hand-neg,embedding:FastNegativeV2,embedding:zPDXL-neg, embedding:bad-hands-5,embedding:bad_prompt_version2-neg,(freckles:1.2)"},{"seed":"89911678","scale":"4","steps":"20","prompt":"A ray of sunlight illuminated the dark forest, golden light piercing through the dense canopy and casting on the winding path. A male white deer stood quietly in this mysterious place.antler","negativePrompt":"(worst quality, low quality:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), embedding:negative_hand-neg,embedding:FastNegativeV2,embedding:zPDXL-neg, embedding:bad-hands-5,embedding:bad_prompt_version2-neg,(freckles:1.2)"},{"seed":"23225773","scale":"1","steps":"25","prompt":"cinematic medium shot of a raptor dinosaur with suit and tie taling to a man with suit and tie in a conference room. An illuminati all seeing eye logo is projected onto a screen in the background using a video projector,photorealistic, sharp focus, very detailed skin texture "},{"seed":"21687034","scale":"1","steps":"25","prompt":"cinematic medium shot of two raptor dinosaurs riding motorcycles in a forest at night,a man is running along with them, wearing a fedora hat, flanel shirt and jeans, taken from a low angle, photorealistic, sharp focus, very detailed skin texture "},{"seed":"33606554","scale":"4","steps":"20","prompt":"A group of monkeys surround an RTX 4090 graphics card in the forest","negativePrompt":"(worst quality, low quality:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), embedding:negative_hand-neg,embedding:FastNegativeV2,embedding:zPDXL-neg, embedding:bad-hands-5,embedding:bad_prompt_version2-neg,(freckles:1.2)"},{"seed":"58326138","scale":"1","steps":"30","prompt":"Chiaroscuro Lighting, a 23 year old pirate woman , slightly smile, detailed skin face and eyes , natural lighting , at home , long hair, (red lips:0.7), woman pirate hair, film grain, low contrast, natural face , dark circles under eyes","negativePrompt":"unknown"},{"seed":"16020039","scale":"1","steps":"25","prompt":"cinematic wide shot of a cowboy riding a t-rex dinosaur in the prairie with a herd of triceratops dinosaurs around him,photorealistic, sharp focus, very detailed skin texture "},{"seed":"28276246","scale":"1","steps":"30","prompt":"First: autumn park. Break.Second: 15yo girl playing with her kitty. 4k, highly detailed","negativePrompt":"letters, text, logo, watermark, sign, bokeh, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"},{"seed":"22697293","scale":"1","steps":"25","prompt":"cinematic medium shot of three raptor dinosaurs playing poker sitting around a table in a dimly lit room. Each one is holding cards,one has a cigar in its mouth, photorealistic, sharp focus, very detailed skin texture "},null,{"seed":"22697293","scale":"1","steps":"25","prompt":"cinematic medium shot of a dinosaur with suit and tie taling to a man with suit and tie in a conference room. An illuminati logo is projected onto a screen in the background using a video projector,photorealistic, sharp focus, very detailed skin texture "},{"seed":"54396300","scale":"1","steps":"24","prompt":"meme of a medium length hair white and grey cat driving a harley davidson bike,yellow eyes, bike gang, cool glasses, \"Deal with it\" is written at the bottom, bold text, nijcat "},{"seed":"33646734","scale":"1","steps":"25","prompt":"cinematic medium shot of an angry dinosaur driving a car,taken through the side window. It has red skin, two horns and a large skin frill on its neck, photorealistic, sharp focus, very detailed skin texture "},{"seed":"32901748","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at forest wearing a cowboy costume,yellow eyes, nijcat "},{"seed":"33190108","scale":"1","steps":"25","prompt":"medium shot of a raptor dinosaur in a tropical forest. It has green skin with red markings,big yellow eyes and pointy teeth. Soft natural light, slight fog "},{"seed":"56721479","scale":"4","steps":"20","prompt":"volumetric lighting style,A captivating woman in a flowing red gown stands , Dark atmosphere Church, huge window stained glass","negativePrompt":"(worst quality, low quality:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), embedding:negative_hand-neg,embedding:FastNegativeV2,embedding:zPDXL-neg, embedding:bad-hands-5,embedding:bad_prompt_version2-neg,(freckles:1.2)"},{"seed":"24580671","scale":"1","steps":"25","prompt":"cinematic full shot of a huge dragon with wings and four legs,standing in a medeival village, there is a knight in armor in the foreground facing away from the viewer and out of focus, photorealistic, sharp focus, very detailed skin texture "},{"seed":"19234727","scale":"1","steps":"16","prompt":"a intense photo of a brown scenery. her gray eyes meet the viewer's gaze, lips full and expressive, stranded on a alien apocalyptic planet, hot-magenta vapor veils a oriental power station, red&dark-slate-gray hues under a neon-purple-colored sky. magical realism blends ancestral connection and a sense of awe. capturing raw, unfiltered emotion in photographic detail."},{"seed":"39807112","scale":"1","steps":"25","prompt":"cinematic full shot of a pteranodon dinosaur flying low over a beach with an ice cream cone in its beak. It has a crest on its head,long leathery wings and no tail. An angry man in a hawaii shirt and shirts is running after it, photorealistic, sharp focus, very detailed skin texture "},{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at medieval village wearing a knight costume,yellow eyes, nijcat "},{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at otaku room wearing a catwoman costume,yellow eyes, nijcat "},null,{"seed":"32901748","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at art gallery wearing a ranger costume,yellow eyes, nijcat "},{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at mall wearing a timber costume,yellow eyes, nijcat "},{"seed":"12727460","scale":"1","steps":"24","prompt":"mysterious scifi cinematic still of 20 years old tribal alien woman on a alien planet, scifi, (alien woman:1.2),colorful skin, spores, bioluminescence, giant mushrooms, snake eyes, crest, tentacles, mist, mysterious glimmering outfit, peeking at viewer intensly,"},{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at stadium wearing a vandal costume,yellow eyes, nijcat "},null,{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at orchard wearing a police officer costume,yellow eyes, nijcat "},{"seed":"32901747","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at casino wearing a geek costume,yellow eyes, nijcat "},{"seed":"32901748","scale":"1","steps":"24","prompt":"photograph of a medium length hair white and grey cat at treehouse wearing a easter costume,yellow eyes, nijcat "}] parameters: [{"items":[{"id":"prompt","note":"prompt-help","rows":"4","type":"textarea","class":"is-12","label":"prompt","value":"Cute furry feral pony in a rural peaceful hippy town walking down a cobblestone road. Fluffy. Text balloon that says \"Buzz?\". Detailed anime movie style, crosshatching. Unreal 60's psychedelic style.Ugly Cute,, Creature, Monster, digital illustration","options":[],"advanced":false,"maxvalue":"","minvalue":"","required":true,"incrementby":"","optionsLoad":"","placeholder":"prompt","defaultvalue":"Cute furry feral pony in a rural peaceful hippy town walking down a cobblestone road. Fluffy. Text balloon that says \"Buzz?\". Detailed anime movie style, crosshatching. Unreal 60's psychedelic style.Ugly Cute,, Creature, Monster, digital illustration"},{"id":"steps","note":"inferencesteps-help","rows":"0","type":"number","class":"is-12","label":"inferencesteps","value":"4","options":[],"advanced":true,"maxvalue":"500","minvalue":"1","required":false,"incrementby":"1","optionsLoad":"","placeholder":"inferencesteps","defaultvalue":"4"},{"id":"scale","note":"guidancescale-help","rows":"0","type":"float","class":"is-12","label":"guidancescale","value":"3.5","options":[],"advanced":true,"maxvalue":"20","minvalue":"1","required":false,"incrementby":"1","optionsLoad":"","placeholder":"guidancescale","defaultvalue":"3.5"},{"id":"samples","note":"samples-help","rows":"0","type":"number","class":"is-12","label":"samples","value":"1","options":[],"advanced":true,"maxvalue":"8","minvalue":"1","required":false,"incrementby":"1","optionsLoad":"","placeholder":"samples","defaultvalue":"1"},{"id":"seed","note":"seed-help","rows":"0","type":"text","class":"is-12","label":"seed","value":"123456","options":[],"advanced":true,"maxvalue":"99999999","minvalue":"0","required":false,"incrementby":"1","optionsLoad":"","placeholder":"seed","defaultvalue":"123456"},{"id":"width","note":"width-help","rows":"0","type":"number","class":"is-4","label":"width","value":"1024","options":[],"advanced":true,"maxvalue":"2048","minvalue":"0","required":false,"incrementby":"1","optionsLoad":"","placeholder":"width","defaultvalue":"1024"},{"id":"height","note":"height-help","rows":"0","type":"number","class":"is-4","label":"height","value":"1024","options":[],"advanced":true,"maxvalue":"2048","minvalue":"0","required":false,"incrementby":"1","optionsLoad":"","placeholder":"height","defaultvalue":"1024"}],"title":"","subtitle":""}] - name: selectedModelPrivate label: select-model-private help: select-model-private-help type: select default: "" options: - name: inputImage label: Input Image help: input-image-help type: combinefileinput default: house.png - name: prompt label: prompt help: prompt-help type: textarea default: Iron Man and Spider-Man singing to each other. - name: steps label: inferencesteps help: inferencesteps-help type: number default: 25 - name: scale label: guidancescale help: guidancescale-help type: float default: 3.5 - name: samples label: samples help: samples-help type: number default: 1 - name: seed label: seed help: seed-help type: text default: 3572004920 - name: strength label: strength help: strength-help type: float default: 0.85 ## 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}" | awk '{print $NF}')"; ``` ## Run Command - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Run/wiro/img-to-img-flux" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "selectedModel": "", "selectedModelPrivate": "", "inputImage": "house.png", "prompt": "Iron Man and Spider-Man singing to each other.", "steps": 25, "scale": "3.5", "samples": 1, "seed": "3572004920", "strength": "0.85", "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 with Task ID ```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 '{ "taskid": "2221" }'; ``` ## Get Task Detail - Make HTTP Post Request with Socket Access Token ```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", "totalcost": "0.003510000000", "chargedcost": "0.002808000000", "discountamount": "0.000702000000", "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 } ``` totalcost is the list price. chargedcost is the amount actually billed after any discount (a store fee is included on store runs); discountamount is the discount. chargedcost is null until the charge is recorded (shortly after task_postprocess_end) and "0" for a failed or cancelled task. ## Kill Task - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "taskid": "534574" }'; ``` ## Kill Task - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE" }'; ``` ## Kill Task - Response ```json { "errors": [], "tasklist": [ { "id": "534574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "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", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Cancel Task - Make HTTP Post Request (For tasks on queue) ```bash curl -X POST "https://api.wiro.ai/v1/Task/Cancel" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "taskid": "634574" }'; ``` ## Cancel Task - Response ```json { "errors": [], "tasklist": [ { "id": "634574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "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", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "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.