Skip to content

Image generation

Routed across fal.ai, Replicate, and OpenAI. Model aliases decouple you from provider/model churn — the same open-weight FLUX models are hosted by multiple providers at different prices, so sort:"price" arbitrages identical output.

AliasHosted byNotes
flux-devfal, Replicatecheapest, default
flux-profal, Replicatehigher fidelity
gpt-imageOpenAIquality anchor; returns data-URLs
POST /v1/tools/image
{
"prompt": "isometric watercolor data center on a cliff",
"model": "flux-dev",
"size": "1024x1024",
"n": 1,
"routing": { "sort": "price" }
}
{
"result": {
"images": [{ "url": "https://…png" }],
"model": "flux-dev"
}
}