{"uid":"cap_D09UtHKacCHfOR8GEzoqr","slug":"cheapestinference-text-completions-ba1fec4a","name":"CheapestInference Text 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/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":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RfUMdqgNlOuiplfiqT-od","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate text completions using 200+ open-source AI models via a flat-rate, OpenAI-compatible completions endpoint","exampleAgentPrompt":"Use CheapestInference to run a text completion with mistralai/Mistral-7B-Instruct — the prompt is: 'Explain the difference between supervised and unsupervised learning in two sentences.' Set max_tokens to 200 and temperature to 0.7.","exampleUseCases":null,"resultDescription":"Returns an object with a 'choices' array, where each choice contains the generated text completion, finish reason, and index, following the OpenAI completions response format.","failureModes":["Payment not received or insufficient — 402 Payment Required","Invalid or unsupported model identifier — 400 Bad Request or model not found error","Prompt too long for model context window — 400 or context length exceeded error","Malformed request body missing required fields like 'prompt' or 'model' — 422 Unprocessable Entity","Rate limiting or server overload — 429 Too Many Requests or 503 Service Unavailable","USDC payment on wrong network (not Base) — payment rejected"],"whenToPreferThis":"Choose this endpoint when you need access to 200+ open-source models (Mistral, Llama, etc.) through a single OpenAI-compatible interface with flat-rate pricing and no per-token cost surprises, especially when paying via USDC on Base blockchain. Ideal for agents that want predictable costs and broad model selection without managing multiple provider keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:37:16.007Z","isFirstParty":false}