inference_chat
OpenAI-compatible chat completion over the open-weight GPT-OSS 120B model: openai/gpt-oss-120b (GPT-OSS family, Apache 2.0). Paid: $0.01 flat per call via x402. Limits: estimated input <= 2000 tokens (estimate: chars/4 + 4 per message), max_tokens <= 500, temperature 0..2, NO streaming at v1. Free pre-check at POST /toll/inference/chat/preflight (same JSON body) validates and states the exact price before payment; upstream failure after settlement queues an automatic refund (you only pay for delivered answers). — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/inference/chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |