Catalog
aiPOSTlive

LLM chat completions

Call OpenAI-compatible chat completion models through a request-priced paid API.

h402 score
$0.00 – $2.00
per call
Success
100%
p50 latency
1ms
p95 latency
1.89s
Calls (30d)
2

Canonical contract

Proxy path
/api/proxy/ai/chat-completions
Method
POST
Selected provider
blockrun
Settlement
Base USDC · x402

Quickstart

cURL
curl -X POST https://h402-test.hunt.town/api/proxy/ai/chat-completions
CLI
h402 call ai/chat-completions --json '{ ... }'

Sample input

requiredoptional
{
  "model": "gpt-4.1-mini",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the benefits of API observability in one sentence."
    }
  ],
  "max_tokens": 80
}

Sample output

Redacted, from a paid call
{
  "id": "chatcmpl_example",
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "API observability helps teams track usage, latency, errors, and cost so they can improve reliability and routing decisions."
      }
    }
  ],
  "usage": {
    "prompt_tokens": 16,
    "completion_tokens": 18,
    "total_tokens": 34
  }
}

Providers

Candidates competing behind this task. h402 routes each call to the best quality-adjusted option.

blockrunselected
x402
Success
100%
p50
1ms
Calls
2
100%
Dynamic $0.00-$2.00; quote required$0.0055/call
tempo-openai
mpptempo
Success
p50
Calls
Dynamic $0.00-$2.00; quote required
Last successful call: 7d ago· Aggregated by h402 — not the source provider