OpenAI-compatible chat completions (non-streaming) for any OpenRouter model
OpenAI-compatible chat completions (non-streaming) for any OpenRouter model - GET /v1/models lists them free, with pricing (upstream cost x 1.10). Pay only for what you use: sign a ceiling based on your max_tokens, settle for real usage x 1.10 (min $0.001) once the call completes. Try GET /v1/chat/completions/sample.
Answeringour last check, 2026-09-28
1 of 1checks answered this week
882 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.agentindex.world/v1/chat/completions
| Category | Everything else |
|---|---|
| Provider host | x402.agentindex.world |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.001 | 882 ms |
Example input (from the provider)
{
"body": {
"max_tokens": 5,
"messages": [
{
"content": "Say OK.",
"role": "user"
}
],
"model": "openai/gpt-4o-mini"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"max_tokens": {
"description": "Max completion tokens, capped at 4096 - also bounds the x402 upto price ceiling.",
"type": "integer"
},
"messages": {
"description": "OpenAI-format chat messages: [{role, content}, ...].",
"items": {
"type": "object"
},
"minItems": 1,
"type": "array"
},
"model": {
"description": "OpenRouter model id from GET /v1/models, e.g. \"openai/gpt-4o-mini\".",
"type": "string"
}
},
"required": [
"model",
"messages"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"choices": {
"items": {
"type": "object"
},
"type": "array"
},
"id": {
"type": "string"
},
"model": {
"type": "string"
},
"usage": {
"type": "object"
},
"x402_receipt": {
"type": "object"
}
},
"required": [
"choices",
"usage"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}