{"uid":"cap_D0pwiknwQyCwjWjvWdSPl","slug":"x402-pay-per-call-llm-chat-completion-bec30d9e","name":"x402 Pay-Per-Call LLM Chat Completion","description":"LLM chat completion via x402 - no accounts, no API keys. Fast models (gpt-4o-mini, gemini-2.0-flash, llama-3.3-70b, mistral-small, deepseek-chat). OpenAI-compatible: send { messages:[{role,content}...], model?, maxTokens?, temperature? }. Payable in USDG on Robinhood Chain or USDC anywhere. Caps: 8k chars in / 1024 tokens out.","url":"https://x402-services-production.up.railway.app/api/ai/chat","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_9OFMIqJnRR4Wp6MZ89dsU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible LLM chat completion via multiple fast models, payable per-call in USDC/USDG with no accounts or API keys required.","exampleAgentPrompt":"Ask the AI to summarize the following text using gpt-4o-mini — no API key needed, just pay per call: 'The Amazon rainforest is the world's largest tropical rainforest, covering over 5.5 million square kilometers.'","exampleUseCases":[{"title":"Agent reasoning without API credentials","prompt":"I need you to answer a quick reasoning question using Gemini 2.0 Flash — I don't want to set up any accounts, just pay per call: 'What are three pros and cons of solar energy?'"},{"title":"Multilingual content generation on demand","prompt":"Use Llama 3.3 70B to translate this sentence into Spanish and explain the grammar: 'The early bird catches the worm.' Keep it under 200 words."},{"title":"Low-cost AI summarization in automated pipeline","prompt":"Run this customer support message through DeepSeek Chat and give me a one-sentence summary of what the customer wants: 'I ordered a laptop two weeks ago and it still hasn't arrived, the tracking page hasn't updated in 5 days, and nobody is responding to my emails.'"}],"resultDescription":"Returns an OpenAI-compatible chat completion response containing the assistant's generated text, up to 1024 tokens, produced by the selected model based on the input messages array.","failureModes":["Payment not received or insufficient — request rejected before processing","Input exceeds 8,000 character limit — truncation or rejection error","Invalid model name specified — defaults to fallback or returns error","Temperature or maxTokens out of acceptable range — validation error","Model provider temporarily unavailable — upstream timeout or 5xx error","Malformed messages array — missing required role or content fields"],"whenToPreferThis":"Prefer this endpoint when your agent needs LLM chat completion without managing API keys or accounts, especially in automated or pay-per-use pipelines where micropayment-per-call is preferable to subscription billing. Ideal for multi-model flexibility (GPT-4o-mini, Gemini, Llama, Mistral, DeepSeek) via a single OpenAI-compatible interface, and when paying with USDC or USDG stablecoins is convenient or required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:09.928Z","isFirstParty":false}