{"uid":"cap_YNfKpgi5TZg75KLAogEAn","slug":"clervo-ai-chat-completions-6275231e","name":"Clervo AI Chat Completions","description":"Clervo lets software use AI models and agent tools with pay-per-use x402 payments, without managing separate provider accounts or API keys.","url":"https://api.clervo.dev/v1/chat/completions","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"id":"chatcmpl-example","model":"clervo/allam-2-7b","usage":{"total_tokens":2,"prompt_tokens":1,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Idempotency prevents a retry from becoming a second logical operation or charge.","refusal":null},"logprobs":null,"finish_reason":"stop"}],"created":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","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_l4JLepkOf9ct6mu1yjelE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions via pay-per-use x402 micropayments, with no separate provider account or API key management required.","exampleAgentPrompt":"Ask the allam-2-7b model what idempotency means in the context of payments — I want a concise answer and I'm fine paying the per-call fee via my x402 wallet.","exampleUseCases":[{"title":"Autonomous agent LLM reasoning step","prompt":"Have the Clervo allam-2-7b model reason through this planning problem for me: 'Given three tasks with overlapping deadlines, which should I prioritize first?' — pay per call from my x402 balance, no API key needed."},{"title":"Serverless app without provider accounts","prompt":"My serverless function needs to generate a short product description for 'wireless noise-cancelling headphones' — use Clervo's chat completions endpoint and charge the micropayment automatically, I don't want to manage any LLM provider credentials."},{"title":"Multi-model comparison on a single question","prompt":"Ask Clervo's allam-2-7b model to explain the difference between supervised and unsupervised learning in two sentences, paying per call — I want to compare its answer against another model's response."}],"resultDescription":"Returns a JSON object conforming to the OpenAI chat completion format, including: a unique completion ID, the model used (e.g. clervo/allam-2-7b), the assistant's reply message, finish reason (e.g. 'stop'), and token usage breakdown (prompt, completion, and total tokens).","failureModes":["Insufficient USDC balance or failed x402 payment — returns 402 Payment Required","Invalid or missing messages array — returns 400 Bad Request","Unsupported model identifier — returns 400 or 404","Rate limiting or capacity issues — returns 429 Too Many Requests","Model inference timeout — returns 504 or truncated response"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions with pay-per-use micropayments and no upfront API key or subscription setup. It is ideal for autonomous agents, serverless functions, or applications that want to pay fractionally per call in USDC via x402 rather than managing separate provider accounts. Prefer it over direct OpenAI or Anthropic APIs when you want a single aggregated gateway, minimal credential overhead, and crypto-native billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:25:36.098Z","isFirstParty":false}