← Back to all APIs

Llm Chat

$0.002

Chat with a language model. OpenAI-compatible /v1/chat/completions interface. Supports 50+ models. Free models (auto, eco, premium) are $0 — paid models (gpt-5.2, claude-opus-5, deepseek-v4-pro, ...) are charged at cost. See /tools/llm_chat/models for the full model list and rates.

POST https://x402.freeq.one/tools/llm_chat
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/llm_chat \ -H "Content-Type: application/json" \ -d '{"messages":[{"role":"user","content":"Say hello in one short sentence."}],"model":"auto","temperature":0.7,"max_tokens":256}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.