{"uid":"cap_u9WoewaOZ4ptPA3knFgfa","slug":"cheapestinference-chat-completions-c7cd52fd","name":"CheapestInference Chat Completions","description":"Access 200+ open-source AI models through a single OpenAI-compatible API. Flat-rate pricing with no per-token charges. Pay with card or USDC on Base.","url":"https://api.cheapestinference.com/v1/chat/completions","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"choices":{"type":"array"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","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":"$20/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YOUp9WhYdAjEF20MbI8el","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"20","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Run chat completions against 200+ open-source AI models via an OpenAI-compatible API at a flat per-call rate","exampleAgentPrompt":"Use CheapestInference to run this conversation through mistralai/Mistral-7B-Instruct: system prompt 'You are a helpful assistant', user message 'Summarize the key differences between REST and GraphQL in three bullet points' — flat rate, no token charges.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible JSON object with a 'choices' array containing the generated message content, finish reason, and model metadata for the selected open-source model.","failureModes":["Payment not received or invalid USDC transaction — 402 Payment Required","Invalid or unsupported model identifier — 400 Bad Request","Malformed messages array or missing required fields — 422 Unprocessable Entity","Model temporarily unavailable — 503 Service Unavailable","Rate limit exceeded — 429 Too Many Requests"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions from open-source models (Llama, Mistral, etc.) at a predictable flat per-call cost rather than variable per-token pricing, especially when paying with USDC on Base via x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:54.488Z","isFirstParty":false}