OpenRouter API · Ai Models
Generate image with the OpenRouter API
You call it with one looot token, no OpenRouter account needed. It takes model, prompt as required input. Each call costs $1.50 per result. Over the last 30 days looot ran it 197 times: 98% finished without an error, median answer 23.9 s.
- Price
- $1.50 per result
- Success rate, 30 days
- 98%
- Runs, 30 days
- 197
- Access
- looot token only
Generate image: call it from code
One POST to /v1/runs with your looot token, the endpoint id openrouter-image and an input. Values come from the stored input schema; a value in <angle brackets> is a placeholder the schema gives no example for.
| Input | Type | Value shown |
|---|---|---|
| model | one of: black-forest-labs/flux-3-image | black-forest-labs/flux-3-image-klein | black-forest-labs/flux.2-klein-4b | ... | placeholder |
| prompt | string | placeholder |
POST /v1/runs
curl -X POST 'https://api.looot.ai/v1/runs?wait=true' \
-H 'Authorization: Bearer YOUR_LOOOT_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"endpointId":"openrouter-image","input":{"model":"<one of: black-forest-labs/flux-3-image | black-forest-labs/flux-3-image-klein | black-forest-labs/flux.2-klein-4b | ...>","prompt":"<string>"},"idempotencyKey":"<unique-idempotency-key>"}'import uuid
import requests
response = requests.post(
"https://api.looot.ai/v1/runs?wait=true",
headers={"Authorization": "Bearer YOUR_LOOOT_TOKEN"},
json={
"endpointId": "openrouter-image",
"input": {
"model": "<one of: black-forest-labs/flux-3-image | black-forest-labs/flux-3-image-klein | black-forest-labs/flux.2-klein-4b | ...>",
"prompt": "<string>",
},
"idempotencyKey": str(uuid.uuid4()),
},
)
print(response.json())const response = await fetch("https://api.looot.ai/v1/runs?wait=true", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_LOOOT_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
endpointId: "openrouter-image",
input: {
"model": "<one of: black-forest-labs/flux-3-image | black-forest-labs/flux-3-image-klein | black-forest-labs/flux.2-klein-4b | ...>",
"prompt": "<string>"
},
idempotencyKey: crypto.randomUUID(),
}),
});
console.log(await response.json());Price and reliability
- Price formula
- $0.00739 to $0.7480 per result by `model` (qwen/qwen-image-3 $0.0444, openai/gpt-image-1 $0.7480, openai/gpt-image-2 $0.5660, recraft/recraft-v3 $0.0422, recraft/recraft-v4 $0.0422, recraft/recraft-v4.1 $0.0370, qwen/qwen-image-3-pro $0.0918, recraft/recraft-v4-pro $0.2640, openai/gpt-image-1-mini $0.1550, recraft/recraft-v4.1-pro $0.2220, google/gemini-3-pro-image $0.3900, recraft/recraft-v4-styles $0.0581, openai/gpt-image-2.5-flare $0.5660, recraft/recraft-v4.1-flash $0.00739, bytedance-seed/seedream-4.5 $0.0422, x-ai/grok-imagine-image-2.0 $0.1270, black-forest-labs/flux.2-max $0.3110, black-forest-labs/flux.2-pro $0.1330, recraft/recraft-v4.1-utility $0.0370, sourceful/riverflow-v2.5-pro $0.1800, google/gemini-2.5-flash-image $0.0943, google/gemini-3.1-flash-image $0.1940, google/gemini-nano-banana-2.1 $0.1140, openai/gpt-image-2.5-sunburst $0.5660, recraft/recraft-v4-styles-pro $0.1270, sourceful/riverflow-v2.5-fast $0.0222, black-forest-labs/flux-3-image $0.6410, bytedance-seed/seedream-5-0-pro $0.1080, x-ai/grok-imagine-image-quality $0.1170, bytedance-seed/seedream-5-0-lite $0.0370, recraft/recraft-v4.1-utility-pro $0.2220, black-forest-labs/flux.2-klein-4b $0.0621, bytedance-seed/seedream-5-0-flash $0.0190, google/gemini-3.1-flash-lite-image $0.0887, black-forest-labs/flux-3-image-klein $0.0380)
- Most one run can cost
- $1.50
- Success rate, 30 days
- 98%
- Runs, 30 days
- 197
- Median answer time
- 23.9 s
- Last success
- Nov 25, 2026
Run numbers are looot's own runs of each endpoint over the last 30 days: the share that completed without an error, and the median time to answer. An endpoint with fewer than 10 runs in that window shows "not enough runs to rank" and is never ranked. Prices are what looot charges per call or per result, fee included, read from the live catalog; you prepay credit and each call is charged when it runs.
More OpenRouter endpoints
- Chat completion
$0.000006 per result
100% of 2,655 runs
- List models
free
100% of 20 runs
- Create embeddings
$0.000001 per result
not enough runs to rank
- Download generated video
free
not enough runs to rank
- Generate video
$0.648 per result
not enough runs to rank
Questions about the OpenRouter API on looot
Give your agent every data provider, one key.
Everyone gets $2 in free credits once after sign-in and workspace selection. Then pay only for what you use.