OpenRouter API · Ai Models
Chat completion with the OpenRouter API
You call it with one looot token, no OpenRouter account needed. It takes model, messages, max_tokens as required input. Each call costs $0.000006 per result, and one run can cost at most $0.024. Over the last 30 days looot ran it 2,655 times: 100% finished without an error, median answer 1.7 s.
- Price
- $0.000006 per result
- Success rate, 30 days
- 100%
- Runs, 30 days
- 2,655
- Access
- looot token only
Chat completion: call it from code
One POST to /v1/runs with your looot token, the endpoint id openrouter-chat 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: openai/gpt-6-luna | openai/gpt-6-luna-pro | openai/gpt-5.4-mini | ... | placeholder |
| messages | array of object | placeholder |
| max_tokens | integer | 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-chat","input":{"model":"<one of: openai/gpt-6-luna | openai/gpt-6-luna-pro | openai/gpt-5.4-mini | ...>","messages":[{"role":"<one of: system | user | assistant>","content":"<string>"}],"max_tokens":"<integer>"},"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-chat",
"input": {
"model": "<one of: openai/gpt-6-luna | openai/gpt-6-luna-pro | openai/gpt-5.4-mini | ...>",
"messages": [
{
"role": "<one of: system | user | assistant>",
"content": "<string>",
},
],
"max_tokens": "<integer>",
},
"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-chat",
input: {
"model": "<one of: openai/gpt-6-luna | openai/gpt-6-luna-pro | openai/gpt-5.4-mini | ...>",
"messages": [
{
"role": "<one of: system | user | assistant>",
"content": "<string>"
}
],
"max_tokens": "<integer>"
},
idempotencyKey: crypto.randomUUID(),
}),
});
console.log(await response.json());Price and reliability
- Price formula
- $0.000006 per result
- Most one run can cost
- $0.024
- Success rate, 30 days
- 100%
- Runs, 30 days
- 2,655
- Median answer time
- 1.7 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
- Generate image
$1.50 per result
98% of 197 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.