Api Endpoint

chat-completions-api

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.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Api
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/v1/chat/completions
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
chat completions, ai inference, llm api, pay per token llm, openai compatible

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.202752 USDC
Atomic price: 202752 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "202752",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Reachable
Latest latency
1121 ms
Average latency
1028 ms
HTTP status
405
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "model": {
          "type": "string",
          "description": "OpenRouter model id from GET /v1/models, e.g. \"openai/gpt-4o-mini\"."
        },
        "messages": {
          "type": "array",
          "description": "OpenAI-format chat messages: [{role, content}, ...].",
          "items": {
            "type": "object"
          },
          "minItems": 1
        },
        "max_tokens": {
          "type": "integer",
          "description": "Max completion tokens, capped at 4096 - also bounds the x402 upto price ceiling."
        }
      },
      "required": [
        "model",
        "messages"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$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"
}