{"uid":"cap_s6_UKW6106w0R1jAZZ69Q","slug":"primeapi-ai-completion-ad657e89","name":"PrimeAPI AI Completion","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://prime-api-seven.vercel.app/api/ai/completion?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.169561","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.169561/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.169561","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.169561","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RtPuUQdMkT0RrSvj73b4J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.169561","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI text completions from a natural language query input, payable per-call in USDC on Base with no API key required.","exampleAgentPrompt":"Can you use the PrimeAPI AI completion endpoint to generate a short explanation of how blockchain consensus mechanisms work — I'll pay per call in USDC, no API key needed.","exampleUseCases":null,"resultDescription":"Returns an AI-generated text completion or response to the submitted query string, wrapped in a generic API response object. The exact structure of the response is loosely typed, but will contain the generated output text.","failureModes":["Payment not received or insufficient USDC — 402 Payment Required response","Malformed or missing query field — likely 400 Bad Request","Upstream AI model timeout or unavailability — 500 or 503 error","Query too long or invalid type — schema validation error","Payment on wrong network (not Base) — payment rejected"],"whenToPreferThis":"Choose this endpoint when you need AI text completion without managing API keys or subscriptions, and you can pay per-call in USDC on the Base network using the x402 payment protocol. Ideal for agents that need occasional or bursty AI generation without a standing account.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:43:10.487Z","isFirstParty":false,"canonicalSlug":"primeapi-ai-completion-ad657e89"}