{"uid":"cap_bd9nCpNm5OVN8E2bhvj4I","slug":"losbeto-llm-chat-completions-x402-openai-compatible-9243a2ee","name":"Losbeto LLM Chat Completions (x402, OpenAI-compatible)","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.","url":"https://losbeto-production-dd7c.up.railway.app/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","properties":{"method":{"type":"string","description":"POST"},"bodyParams":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","default":"losbeto-fast","description":"Model alias; any string accepted (failover chain picks the live provider)."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"description":"OpenAI chat messages, oldest first."},"max_tokens":{"type":"integer","default":1024,"description":"Completion cap, 16-2048."},"temperature":{"type":"number","default":0.4,"description":"Sampling temperature, 0.0-1.5."}},"additionalProperties":false}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"OpenAI-compatible chat completions over x402: POST the standard {model, messages, max_tokens} body and receive a standard chat.completion response — any OpenAI SDK works by changing only base_url. Payment is the x402 challenge (USDC on Base, Solana, Algorand or Polygon), so an agent needs no provider account, no credit card, no API key. Failover chain behind the door: Groq first for..."}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IIql-OwHdv7TN9d5aXFKt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible LLM chat completions gateway paid per-call in USDC via x402, requiring no API key or account","exampleAgentPrompt":"Using the Losbeto x402 LLM gateway — no API key needed, just USDC on Base — send a chat message asking 'What are the top 3 risks of DeFi yield farming?' with model losbeto-fast, max 512 tokens, temperature 0.4.","exampleUseCases":[{"title":"Accountless LLM inference for autonomous agent","prompt":"My trading agent needs to call an LLM to summarize a market report without me setting up any provider accounts — use the Losbeto gateway with losbeto-fast, pay in USDC, send the message 'Summarize the key points of this report: [report text]' with max 1024 tokens."},{"title":"OpenAI SDK migration to crypto payments","prompt":"I want to point my existing OpenAI SDK app to the Losbeto base URL instead, use the losbeto-fast model, and have it pay $0.005 USDC per call on Solana instead of a monthly subscription — can you send a test message 'Hello, are you working?' with temperature 0.3?"},{"title":"Embedded LLM step in multi-chain AI workflow","prompt":"In my automated workflow, I need an LLM step that asks 'Given BTC is up 5% today, what trading signals should I watch?' — use Losbeto's chat completions with 800 max tokens and temperature 0.5, paying from my Base USDC wallet."}],"resultDescription":"An OpenAI-compatible chat.completion JSON object containing the assistant's generated message, finish reason, model name, usage token counts (prompt, completion, total), and an ID. Fully compatible with OpenAI SDK response parsers.","failureModes":["Payment challenge fails if USDC balance insufficient on the specified chain — returns x402 payment required response","Model alias not resolving if all failover providers are down — returns 503 or error body","messages array missing or malformed — returns 400 validation error","max_tokens out of range (must be 16-2048) — may return error or be clamped","High latency or timeout if upstream Groq or failover provider is slow"],"whenToPreferThis":"Choose this endpoint when your AI agent needs LLM inference without a pre-registered API key or credit card, especially in autonomous or multi-agent workflows that hold USDC on Base, Solana, Algorand, or Polygon. Ideal for pay-as-you-go agent pipelines where subscription overhead is undesirable. Prefer this over direct OpenAI when you want crypto-native micropayment billing compatible with the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:39:20.810Z","isFirstParty":false,"canonicalSlug":"losbeto-llm-chat-completions-x402-openai-compatible-9243a2ee"}