{"uid":"cap_7HqKZ0IiKGS7L1wWu58s-","slug":"farout-pay-per-call-llm-inference-via-x402-45e906a3","name":"FarOut Pay-Per-Call LLM Inference via x402","description":"Fixed-price chat completions for gpt-5.4 on FarOut: flat $0.001 per call (includes up to 4,000 input + 1,000 output tokens). Rate: $0.090/1M input tokens, $0.540/1M output tokens. Pay with USDC on Base using x402. No API key, no account, no prepaid balance.","url":"https://farouter.tech/v1/models/gpt-5.4/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id from GET /v1/models, e.g. glm-5.3. No provider prefix."},"stream":{"type":"boolean","description":"SSE streaming."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","developer","user","assistant","tool"],"type":"string"},"content":{}},"additionalProperties":true},"minItems":1,"description":"Chat messages, [OI]-compatible {role, content}."},"max_tokens":{"type":"integer","minimum":1,"description":"Output token budget. Drives the quote directly."},"temperature":{"type":"number","maximum":2,"minimum":0,"description":"Sampling temperature."},"max_completion_tokens":{"type":"integer","minimum":1,"description":"Alias of max_tokens (gpt-5.x models)."}}},"responseSchema":{"type":"json","example":{"usage":{"prompt_tokens":6,"completion_tokens":8},"choices":[{"message":{"role":"assistant","content":"Hello! How can I help?"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JudRtrUW5YpYTeerpwZuU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs chat completions against frontier LLMs (GPT, Gemini, DeepSeek, GLM, Kimi, MiniMax) with per-request USDC micropayment on Base — no API key or account required","exampleAgentPrompt":"Using FarOut's pay-per-call gateway, send this conversation to DeepSeek V4 — system prompt: 'You are a helpful coding assistant', user message: 'Explain tail recursion with a Python example', max 512 tokens, temperature 0.7.","exampleUseCases":[{"title":"Autonomous agent LLM calls without accounts","prompt":"My on-chain agent needs to call a frontier LLM for every task it processes — use FarOut to send this message to Gemini 3.1 with no API key, paying per request in USDC: 'Summarize the following contract clause in plain English: ...' with up to 300 output tokens."},{"title":"Coding assistance via DeepSeek on demand","prompt":"I want to ask DeepSeek V4 to review this Python function for bugs and suggest improvements — use FarOut so I only pay for this one call in USDC, no subscription needed. Max 1024 tokens, temperature 0.2."},{"title":"Multi-model reasoning comparison","prompt":"Run the same question through both GLM 5.3 and Kimi K3 using FarOut's pay-per-call API and show me both answers — question is: 'What are the trade-offs between proof-of-work and proof-of-stake?', limit each to 400 tokens."}],"resultDescription":"Returns an OpenAI-compatible JSON response containing choices[].message.content with the assistant's reply, finish_reason (e.g. 'stop'), and a usage object with prompt_tokens and completion_tokens counts.","failureModes":["Payment rejected — insufficient USDC balance or x402 payment not attached; returns 402 Payment Required","Invalid model ID — model not found in /v1/models list; returns 400 or 404","max_tokens too large for selected model context window; returns 400 with token limit error","Messages array empty or malformed role/content; returns 400 validation error","Upstream model provider outage causing 502 or 503 from farouter.tech","Streaming SSE dropped mid-response if network connection interrupted"],"whenToPreferThis":"Choose this endpoint when your agent needs to call frontier LLMs without pre-registering an account or holding an API key — ideal for autonomous agents that need pay-as-you-go USDC micropayments per inference call. Prefer it over OpenAI or Anthropic direct APIs when you want keyless, on-chain-friendly access, or when you need to switch between multiple frontier models (GPT, Gemini, DeepSeek, GLM, Kimi, MiniMax) through a single OpenAI-compatible interface. Particularly well-suited for agent frameworks that already handle x402 payment headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:41:42.807Z","isFirstParty":false}