LLM chat completions
Call OpenAI-compatible chat completion models through a request-priced paid API.
Provider contract
- Call path
- /routes/blockrun/ai/chat-completions
- Method
- POST
- Selected provider
- blockrundefault
- Provider price
- Dynamic $0.00-$5.00; quote required
- Settlement
- Base USDC · x402 · 5% h402 fee
Quickstart
Both commands call the selected provider directly.
curl -X POST '/routes/blockrun/ai/chat-completions' \
-H 'content-type: application/json' \
-d '{"model":"openai/gpt-5.5","messages":[{"role":"user","content":"Summarize the benefits of API observability in one sentence."}]}'h402 call 'ai/chat-completions' --provider 'blockrun' --method POST --json '{"model":"openai/gpt-5.5","messages":[{"role":"user","content":"Summarize the benefits of API observability in one sentence."}]}'Parameters & live test
pays real USDCFill the request fields, quote the exact per-call total, then choose x402 or eligible bonus credit explicitly before sending. Only the selected provider's listed parameters are accepted.
modelstringrequiredOpenAI-compatible, provider-prefixed model id (vendor/model), e.g. openai/gpt-5.5. Use Load live values for the full BlockRun model list.
messagesarrayrequiredOpenAI-compatible chat messages.
max_tokensnumberoptional≥ 1Optional cap on completion tokens (e.g. 256-1024). No fixed maximum: bounded by the selected model's own context window.
{
"model": "openai/gpt-5.5",
"messages": [
{
"role": "user",
"content": "Summarize the benefits of API observability in one sentence."
}
]
}{ "data": { "id": "chatcmpl-E4TUpzbanFFNRY3CXz5JLLJNVOiKx", "object": "chat.completion", "created": 1784735403, "model": "openai/gpt-5.5", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "API observability helps teams monitor performance, detect and troubleshoot issues faster, improve reliability, understand usage patterns, and deliver better user experiences." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 19, "completion_tokens": 31, "total_tokens": 50, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 0 }, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0 } } }, "h402": { "routeId": "ai/chat-completions", "provider": "blockrun", "selectedCandidateId": "ai/chat-completions/blockrun", "routing": "manual", "paidBy": "x402-exact" } }
Providers
Choose a provider for this task. The catalog recommends the current default from quality, reliability, and price; your selected provider stays pinned. Listed prices are provider prices; settlement adds a 5% h402 fee.
- Success
- 100%
- p50
- 2.36s
- Calls
- 4