Image to Image

img2imgCandidate

Image to Image: AI image generation model for creating visual content. Generate images from text prompts for design, marketing, and creative automation workflows.

Retail priceinput $0.06
Providerfal
Capabilityimage
InterfacePOST /v1/run

Request example

Every paid call needs a unique Idempotency-Key. The same key and payload replay the original result without a second charge.

cURL
curl https://router.tycoon.cool/v1/run \
+  -H "Authorization: Bearer $TYCOONROUTER_API_KEY" \
+  -H "Content-Type: application/json" \
+  -H "Idempotency-Key: $(uuidgen)" \
+  -d '{"model":"img2img","inputs":{"messages":[{"role":"user","content":"Hello"}]}}'

Response contract

Synchronous routes return the provider result with TycoonRouter request metadata. Async routes return a request ID plus status and cancel URLs.

HeaderPurpose
x-request-idImmutable Router request identity
x-idempotent-replayTrue when the response is a replay
x-tycoonrouter-charge-microsSettled retail charge when available

Production safeguards

Unknown prices, unbounded requests and uncertain provider outcomes fail closed before a second paid dispatch. Usage and wallet events remain queryable from the account page.