{"uid":"cap_xa0RZomeqdXge_WpEAW-P","slug":"toll402-llm-chat-completion-gateway-4f4ff8a5","name":"Toll402 LLM Chat Completion Gateway","description":"The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.","url":"https://toll402.dev/v1/x/2dc439e9109c","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array"},"max_tokens":{"type":"integer"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00115","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.00115/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00115","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00115","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dU2OaEkx0AMolb43swwJK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00115","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat completion request to an LLM via the Toll402 pay-per-call gateway, billed in USDC via x402 with no signup or API key required.","exampleAgentPrompt":"Use Toll402 to send these messages to gpt-4o with a max of 512 tokens and pay per call in USDC — no API key needed: system: 'You are a helpful assistant.', user: 'Summarize the key points of the Paris Agreement.'","exampleUseCases":[{"title":"Permissionless LLM call for an agent","prompt":"Call the Toll402 gateway with model claude-3-haiku, max 256 tokens, and these messages — system: 'You are a concise summarizer.', user: 'What are the three main causes of World War I?' — pay per call, no account needed."},{"title":"Crypto-native chatbot backend","prompt":"I'm building a crypto-native chatbot that pays per inference. Route this conversation to gpt-4o-mini via Toll402, limit to 1024 tokens: system 'You are a customer support agent for a DeFi protocol', user 'How do I connect my wallet?'"},{"title":"Agent pipeline LLM step with micropayments","prompt":"In my agent pipeline, I need an LLM reasoning step — send these messages to a model of your choice via Toll402 and cap it at 512 tokens: user 'Given sales data Q1-Q4, identify the trend and recommend a strategy for next year.'"}],"resultDescription":"Returns a standard LLM chat completion response containing the assistant's generated message, along with token usage metadata and the model used, matching the OpenAI-compatible chat completion response format.","failureModes":["Insufficient USDC balance triggers 402 Payment Required before the LLM call is made","Invalid or unsupported model name returns an error from the gateway","Malformed messages array (missing role or content fields) causes a validation error","max_tokens set too low may result in truncated or incomplete responses","Network timeout if the upstream LLM provider is slow to respond","x402 payment protocol not supported by the calling client causes payment failure"],"whenToPreferThis":"Choose Toll402 when you need a permissionless, no-signup LLM chat completion endpoint that bills per call in USDC via the x402 protocol — ideal for AI agents operating with a crypto wallet, pipelines that need to avoid API key management, or applications requiring micropayment-native LLM access. Prefer this over OpenAI or Anthropic direct APIs when you want a single gateway that aggregates multiple models without credential overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:41.047Z","isFirstParty":false}