LLM Chat

$0.002

Chat with a language model via an OpenAI-compatible /v1/chat/completions interface. Supports 50+ models. Free models are $0 (bypass the paywall entirely) — paid models are charged at cost.

FREE models: auto, eco, premium PAID models: gpt-5.2, claude-opus-5, deepseek-v4-pro, ...

Pricing

ModelPrice / callNotes
auto$0.00Free tier — bypasses the paywall, no USDC transfer
premium$0.00Free tier — bypasses the paywall, no USDC transfer
eco$0.00Free tier — bypasses the paywall, no USDC transfer
free$0.00Free tier — bypasses the paywall, no USDC transfer
anthropic/claude-fable-5.1$0.078Per request, scales with tokens (in $10/1M · out $50/1M)
anthropic/claude-fable-5$0.078Per request, scales with tokens (in $10/1M · out $50/1M)
anthropic/claude-opus-5.5$0.031Per request, scales with tokens (in $4/1M · out $20/1M)
anthropic/claude-opus-5$0.039Per request, scales with tokens (in $5/1M · out $25/1M)
anthropic/claude-opus-4.8$0.039Per request, scales with tokens (in $5/1M · out $25/1M)
anthropic/claude-opus-4.7$0.039Per request, scales with tokens (in $5/1M · out $25/1M)
anthropic/claude-sonnet-5.5$0.016Per request, scales with tokens (in $2/1M · out $10/1M)
anthropic/claude-sonnet-5$0.016Per request, scales with tokens (in $2/1M · out $10/1M)
anthropic/claude-sonnet-4.6$0.023Per request, scales with tokens (in $3/1M · out $15/1M)
anthropic/claude-haiku-4.5$0.008Per request, scales with tokens (in $1/1M · out $5/1M)
openai/gpt-6-astra$0.078Per request, scales with tokens (in $10/1M · out $50/1M)
openai/gpt-6-sol$0.016Per request, scales with tokens (in $2/1M · out $10/1M)
openai/gpt-6-luna$0.002Per request, scales with tokens (in $0.1/1M · out $0.5/1M)
openai/gpt-5.6-terra$0.018Per request, scales with tokens (in $2/1M · out $12/1M)
openai/gpt-5.6-sol$0.031Per request, scales with tokens (in $4/1M · out $20/1M)
openai/gpt-5.6-luna$0.002Per request, scales with tokens (in $0.2/1M · out $1.2/1M)
openai/gpt-5.5$0.045Per request, scales with tokens (in $5/1M · out $30/1M)
openai/gpt-5.5-pro$0.273Per request, scales with tokens (in $30/1M · out $180/1M)
openai/gpt-5.4-pro$0.273Per request, scales with tokens (in $30/1M · out $180/1M)
openai/gpt-5.4$0.023Per request, scales with tokens (in $2.5/1M · out $15/1M)
openai/gpt-5.4-mini$0.007Per request, scales with tokens (in $0.75/1M · out $4.5/1M)
openai/gpt-5.4-nano$0.002Per request, scales with tokens (in $0.2/1M · out $1.25/1M)
openai/gpt-5.1$0.015Per request, scales with tokens (in $1.25/1M · out $10/1M)
openai/gpt-5.3-codex$0.020Per request, scales with tokens (in $1.75/1M · out $14/1M)
google/gemini-3.1-pro$0.018Per request, scales with tokens (in $2/1M · out $12/1M)
google/gemini-3.8-flash$0.006Per request, scales with tokens (in $0.75/1M · out $3.75/1M)
google/gemini-3.6-flash$0.006Per request, scales with tokens (in $0.75/1M · out $3.75/1M)
google/gemini-3.5-flash$0.014Per request, scales with tokens (in $1.5/1M · out $9/1M)
google/gemini-3.5-flash-lite$0.004Per request, scales with tokens (in $0.3/1M · out $2.5/1M)
google/gemini-3.1-flash-lite$0.002Per request, scales with tokens (in $0.25/1M · out $1.5/1M)
google/gemini-3-flash-preview$0.005Per request, scales with tokens (in $0.5/1M · out $3/1M)
xai/grok-4.7$0.010Per request, scales with tokens (in $2/1M · out $6/1M)
xai/grok-4.6$0.010Per request, scales with tokens (in $2/1M · out $6/1M)
xai/grok-4.5$0.010Per request, scales with tokens (in $2/1M · out $6/1M)
xai/grok-4.3$0.005Per request, scales with tokens (in $1.25/1M · out $2.5/1M)
xai/grok-build-0.1$0.004Per request, scales with tokens (in $1/1M · out $2/1M)
zai/glm-5.3$0.008Per request, scales with tokens (in $1.4/1M · out $4.4/1M)
zai/glm-5.3-flash$0.002Per request, scales with tokens (in $0.15/1M · out $0.5/1M)
zai/glm-5.2$0.008Per request, scales with tokens (in $1.4/1M · out $4.4/1M)
zai/glm-5.1$0.008Per request, scales with tokens (in $1.4/1M · out $4.4/1M)
zai/glm-5-turbo$0.007Per request, scales with tokens (in $1.2/1M · out $4/1M)
zai/glm-5$0.005Per request, scales with tokens (in $1/1M · out $3.2/1M)
xiaomi/mimo-v2.5$0.002Per request, scales with tokens (in $0.14/1M · out $0.28/1M)
xiaomi/mimo-v2.5-pro$0.002Per request, scales with tokens (in $0.435/1M · out $0.87/1M)
minimax/minimax-m3$0.002Per request, scales with tokens (in $0.3/1M · out $1.2/1M)
minimax/minimax-m2.7$0.002Per request, scales with tokens (in $0.3/1M · out $1.2/1M)
moonshot/kimi-k3$0.023Per request, scales with tokens (in $3/1M · out $15/1M)
qwen/qwen3.7-max$0.008Per request, scales with tokens (in $1.475/1M · out $4.425/1M)
qwen/qwen3.8-flash$0.002Per request, scales with tokens (in $0.15/1M · out $0.47/1M)
deepseek/deepseek-v4-flash-vision-exp$0.002Per request, scales with tokens (in $0.3/1M · out $1.2/1M)
deepseek/deepseek-v4-pro$0.007Per request, scales with tokens (in $1.32/1M · out $3.96/1M)
deepseek/deepseek-chat$0.002Per request, scales with tokens (in $0.14/1M · out $0.28/1M)
deepseek/deepseek-reasoner$0.002Per request, scales with tokens (in $0.14/1M · out $0.28/1M)
free/nemotron-3.5-lightning$0.00Free tier — bypasses the paywall, no USDC transfer
free/laguna-xs-2.1$0.00Free tier — bypasses the paywall, no USDC transfer
free/north-mini-code$0.00Free tier — bypasses the paywall, no USDC transfer
free/nemotron-3-nano-omni-30b-a3b-reasoning$0.00Free tier — bypasses the paywall, no USDC transfer
free/nemotron-3-ultra-550b$0.00Free tier — bypasses the paywall, no USDC transfer
free/llama-3.2-11b-vision$0.00Free tier — bypasses the paywall, no USDC transfer
anthropic/claude-opus-4.5$0.039Per request, scales with tokens (in $5/1M · out $25/1M)
anthropic/claude-opus-4.6$0.039Per request, scales with tokens (in $5/1M · out $25/1M)
anthropic/claude-sonnet-4.5$0.023Per request, scales with tokens (in $3/1M · out $15/1M)
free/deepseek-v4-flash$0.00Free tier — bypasses the paywall, no USDC transfer
free/glm-4.7$0.00Free tier — bypasses the paywall, no USDC transfer
free/gpt-oss-120b$0.00Free tier — bypasses the paywall, no USDC transfer
free/gpt-oss-20b$0.00Free tier — bypasses the paywall, no USDC transfer
free/llama-4-maverick$0.00Free tier — bypasses the paywall, no USDC transfer
free/mistral-large-3-675b$0.00Free tier — bypasses the paywall, no USDC transfer
free/mistral-nemotron$0.00Free tier — bypasses the paywall, no USDC transfer
free/nemotron-3-nano-30b$0.00Free tier — bypasses the paywall, no USDC transfer
free/nemotron-nano-12b-v2-vl$0.00Free tier — bypasses the paywall, no USDC transfer
free/nemotron-nano-9b-v2$0.00Free tier — bypasses the paywall, no USDC transfer
free/qwen3-coder-480b$0.00Free tier — bypasses the paywall, no USDC transfer
free/qwen3-next-80b-a3b-instruct$0.00Free tier — bypasses the paywall, no USDC transfer
free/qwen3.5-122b-a10b$0.00Free tier — bypasses the paywall, no USDC transfer
free/seed-oss-36b$0.00Free tier — bypasses the paywall, no USDC transfer
free/step-3.7-flash$0.00Free tier — bypasses the paywall, no USDC transfer
google/gemini-2.5-flash$0.004Per request, scales with tokens (in $0.3/1M · out $2.5/1M)
google/gemini-2.5-flash-lite$0.002Per request, scales with tokens (in $0.1/1M · out $0.4/1M)
google/gemini-2.5-pro$0.015Per request, scales with tokens (in $1.25/1M · out $10/1M)
google/gemini-3-pro-preview$0.018Per request, scales with tokens (in $2/1M · out $12/1M)
moonshot/kimi-k2.5$0.005Per request, scales with tokens (in $0.6/1M · out $3/1M)
moonshot/kimi-k2.6$0.006Per request, scales with tokens (in $0.95/1M · out $4/1M)
moonshot/kimi-k2.7$0.006Per request, scales with tokens (in $0.95/1M · out $4/1M)
openai/chat-latest$0.045Per request, scales with tokens (in $5/1M · out $30/1M)
openai/gpt-4.1$0.013Per request, scales with tokens (in $2/1M · out $8/1M)
openai/gpt-4.1-mini$0.003Per request, scales with tokens (in $0.4/1M · out $1.6/1M)
openai/gpt-4.1-nano$0.002Per request, scales with tokens (in $0.1/1M · out $0.4/1M)
openai/gpt-4o$0.016Per request, scales with tokens (in $2.5/1M · out $10/1M)
openai/gpt-4o-mini$0.002Per request, scales with tokens (in $0.15/1M · out $0.6/1M)
openai/gpt-5-mini$0.003Per request, scales with tokens (in $0.25/1M · out $2/1M)
openai/gpt-5.2$0.020Per request, scales with tokens (in $1.75/1M · out $14/1M)
openai/gpt-5.2-pro$0.246Per request, scales with tokens (in $21/1M · out $168/1M)
openai/gpt-5.3$0.020Per request, scales with tokens (in $1.75/1M · out $14/1M)
openai/gpt-5.6-luna-pro$0.002Per request, scales with tokens (in $0.2/1M · out $1.2/1M)
openai/gpt-5.6-sol-pro$0.031Per request, scales with tokens (in $4/1M · out $20/1M)
openai/gpt-5.6-terra-pro$0.018Per request, scales with tokens (in $2/1M · out $12/1M)
openai/o1$0.098Per request, scales with tokens (in $15/1M · out $60/1M)
openai/o1-mini$0.007Per request, scales with tokens (in $1.1/1M · out $4.4/1M)
openai/o3$0.013Per request, scales with tokens (in $2/1M · out $8/1M)
openai/o3-mini$0.007Per request, scales with tokens (in $1.1/1M · out $4.4/1M)
openai/o4-mini$0.007Per request, scales with tokens (in $1.1/1M · out $4.4/1M)
qwen/qwen3.7-flash$0.002Per request, scales with tokens (in $0.03/1M · out $0.13/1M)
qwen/qwen3.7-plus$0.002Per request, scales with tokens (in $0.32/1M · out $1.28/1M)
xai/grok-2-vision$0.016Per request, scales with tokens (in $2/1M · out $10/1M)
xai/grok-3$0.023Per request, scales with tokens (in $3/1M · out $15/1M)
xai/grok-3-mini$0.002Per request, scales with tokens (in $0.3/1M · out $0.5/1M)
xai/grok-4-0709$0.023Per request, scales with tokens (in $3/1M · out $15/1M)
xai/grok-4-1-fast-non-reasoning$0.002Per request, scales with tokens (in $0.2/1M · out $0.5/1M)
xai/grok-4-1-fast-reasoning$0.002Per request, scales with tokens (in $0.2/1M · out $0.5/1M)
xai/grok-4-fast-non-reasoning$0.002Per request, scales with tokens (in $0.2/1M · out $0.5/1M)
xai/grok-4-fast-reasoning$0.002Per request, scales with tokens (in $0.2/1M · out $0.5/1M)
xai/grok-4.20-multi-agent$0.010Per request, scales with tokens (in $2/1M · out $6/1M)
xai/grok-4.20-non-reasoning$0.010Per request, scales with tokens (in $2/1M · out $6/1M)
xai/grok-4.20-reasoning$0.010Per request, scales with tokens (in $2/1M · out $6/1M)

Prices shown are for a typical request (≈1K prompt + 1K output tokens); long prompts or large max_tokens cost more. The exact amount is always quoted in the 402 challenge before you sign. Free models (auto, eco, premium) are $0 — no on-chain payment. Catalog refreshes automatically; query GET /tools/llm_chat/models for the machine-readable list.

Request

POST /tools/llm_chat
Content-Type: application/json

{
  "model": "auto",
  "messages": [
    { "role": "user", "content": "Say hello in 3 words" }
  ],
  "max_tokens": 1024,
  "temperature": 0.7
}

Parameters

FieldTypeDescription
modelstringModel ID. Short names accepted: gpt-5.2, claude-opus-5, deepseek-v4-pro. Free aliases: auto, eco, premium.
messagesarrayRequired. Conversation messages with role (system/user/assistant) and content.
max_tokensintegerMax tokens to generate (default 1024, max 4096). Lower values reduce cost for paid models.
temperaturenumberSampling temperature 0–2 (default 0.7).

Response

{
  "id": "chatcmpl-...",
  "object": "chat.completion",
  "model": "free/gpt-oss-120b",
  "choices": [{
    "index": 0,
    "message": { "role": "assistant", "content": "Hello there! 👋" },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 66,
    "completion_tokens": 38,
    "total_tokens": 104
  }
}

Model Catalog

Fetch the full list of supported models and their rates dynamically:

GET /tools/llm_chat/models

Returns a JSON array of all models with id, name, upstreamCost, and whether the model is free (free: true).

Free-model bypass: When model is auto, eco, or premium, the paywall short-circuits before any on-chain challenge — the call completes with no USDC transfer. Paid models trigger the standard x402 payment flow.

⚡ Try with your wallet — live payment

Try it

curl -s 'https://x402.freeq.one/tools/llm_chat' \
  -H 'Content-Type: application/json' \
  -d '{"model":"auto","messages":[{"role":"user","content":"hi"}]}'

# Paid model (triggers x402 challenge):
curl -s 'https://x402.freeq.one/tools/llm_chat' \
  -H 'Content-Type: application/json' \
  -d '{"model":"gpt-5.2","messages":[{"role":"user","content":"hi"}]}'