{"uid":"cap_bF4t3hb7HwC3G-1VoMsld","slug":"x402-llm-gateway-long-form-tier-fe7a5d99","name":"x402 LLM Gateway — Long-Form Tier","description":"Long-form tier of the x402 LLM gateway: same self-hosted 27B open-weight LLM with an 8,192-token output ceiling for summarization, drafting and multi-paragraph answers. Pay per call in USDC on Base via x402 - no API key or account. OpenAI-compatible: send a messages array, receive standard chat.completion JSON. Use the cheaper /v1/chat/completions tier (4,096 tokens) for short answers and tool calls.","url":"https://api.erb-llm.com/v1/long","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model ID from the free GET /v1/models endpoint (e.g. qwen/qwen3.8-27b). Optional - a default chat model is chosen if omitted."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"minItems":1,"description":"OpenAI chat messages (system/user/assistant)."},"max_tokens":{"type":"integer","minimum":1,"description":"Optional output token ceiling. This tier caps output at 8192 tokens - higher values are clamped to 8192, not rejected. Use the long/extended tiers for bigger outputs."},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qUaeW86x3FHM8vnidIxms","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs long-form chat completions (up to 8,192 output tokens) on a self-hosted 27B open-weight LLM, billed at $0.05 USDC per call via x402 on Base with no API key required.","exampleAgentPrompt":"Write me a detailed 2,000-word analysis of the pros and cons of renewable energy adoption for developing economies — use a neutral tone and organize it into clear sections; pay for the call in USDC.","exampleUseCases":[{"title":"Long-form research report drafting","prompt":"Draft a thorough 5-section report on the competitive landscape of electric vehicles in 2024, covering market share, key players, technology trends, regulatory environment, and outlook — I need at least 1,500 words and a balanced tone."},{"title":"Detailed document summarization","prompt":"I have a 10-page contract I pasted below — summarize it in detail, covering all major clauses, obligations, and risk factors, and give me at least 800 words so nothing important gets dropped."},{"title":"Multi-step technical explanation","prompt":"Explain how transformer attention mechanisms work, including self-attention, multi-head attention, and positional encoding, with concrete examples — give me a thorough answer, I'm trying to really understand it deeply."}],"resultDescription":"Returns a standard OpenAI-format chat.completion JSON object containing the assistant's generated message, finish reason, token usage counts (prompt and completion), and model identifier. Output text can be up to 8,192 tokens; requests specifying higher max_tokens values are silently clamped to 8,192.","failureModes":["Payment not included or insufficient USDC — request rejected with 402 Payment Required","messages array missing or empty (minItems:1 violated) — 422 Unprocessable Entity","max_tokens exceeds 8,192 — clamped silently to 8,192, not an error","Model ID not found in /v1/models — may fall back to default or return 400","Network or inference timeout on very long generations — 504 or partial response","Malformed message roles (not system/user/assistant) — 422 validation error"],"whenToPreferThis":"Choose this endpoint when you need outputs longer than 1,024 tokens — such as full articles, detailed summaries, multi-section reports, or thorough explanations — and want to pay per call in USDC without an API key or account. Prefer the cheaper /v1/chat/completions (1,024-token) tier for short answers, tool calls, and classification tasks. Use the extended tier if you need outputs beyond 8,192 tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:33:58.211Z","isFirstParty":false}