LLM chat completion API, OpenAI-compatible LLM inference
LLM chat completion API, OpenAI-compatible LLM inference. 437 models, no account, no API key, pay per call in USDC - OpenAI-compatible chat completions and AI inference gateway (Claude, GPT, Gemini, Llama, Mistral and more in one endpoint). Price: from $0.001, computed from your max_tokens × model rate × 1.10 (you sign a ceiling; unused tokens are not refunded). 20s server-side timeout - never charged if it fires; set your client timeout to 30s. Try GET /v1/chat/completions/sample.
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 | Market data |
|---|---|
| Provider host | x402.agentindex.world |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.001 | 1171 ms |
| 2026-11-25 | valid payment request | 402 | $0.001 | 1116 ms |
| 2026-11-24 | valid payment request | 402 | $0.001 | 1070 ms |
| 2026-11-23 | valid payment request | 402 | $0.001 | 1046 ms |
| 2026-11-22 | valid payment request | 402 | $0.001 | 1015 ms |
| 2026-11-21 | valid payment request | 402 | $0.001 | 1072 ms |
| 2026-11-20 | valid payment request | 402 | $0.001 | 930 ms |
| 2026-11-19 | valid payment request | 402 | $0.001 | 1011 ms |
| 2026-11-18 | valid payment request | 402 | $0.001 | 1450 ms |
| 2026-11-17 | valid payment request | 402 | $0.001 | 977 ms |
| 2026-11-16 | valid payment request | 402 | $0.001 | 961 ms |
| 2026-11-15 | valid payment request | 402 | $0.001 | 976 ms |
| 2026-11-14 | valid payment request | 402 | $0.001 | 1186 ms |
| 2026-11-13 | valid payment request | 402 | $0.001 | 955 ms |
| 2026-11-06 | valid payment request | 402 | $0.001 | 876 ms |
| 2026-11-05 | valid payment request | 402 | $0.001 | 1129 ms |
| 2026-11-04 | valid payment request | 402 | $0.001 | 888 ms |
| 2026-11-03 | valid payment request | 402 | $0.001 | 955 ms |
| 2026-11-02 | valid payment request | 402 | $0.001 | 869 ms |
| 2026-11-01 | valid payment request | 402 | $0.001 | 898 ms |
| 2026-10-31 | valid payment request | 402 | $0.001 | 902 ms |
| 2026-10-29 | valid payment request | 402 | $0.001 | 1145 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"
}