{"uid":"cap_6hNInmqJ3CpVD7WzJnGjH","slug":"animica-chat-completions-api-x402-538ed743","name":"Animica Chat Completions API (x402)","description":"OpenAI-compatible chat completions with capacity-gated admission, no per-IP rate limit, direct upstream routing and a 180 s timeout. Only sold while enough workers are live-serving; disabled by default.","url":"https://animica.dev/x402/v1/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"model id (see the free /v1/models)"},"stream":{"type":"boolean","description":"must be false/absent — streaming is not yet supported on the paid path"},"messages":{"type":"array","description":"OpenAI-style chat messages"},"max_tokens":{"type":"integer","description":"completion budget"}}},"responseSchema":{"type":"json","example":{"error":"priority_inference_unavailable","detail":"priority inference is disabled by the operator (PRIORITY_INFERENCE_ENABLED=0)","enabled":false,"required":2,"serving_workers":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00287","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.00287/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00287","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00287","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R9oKcfqek3uv-xXPoebLn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00287","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions via a pay-per-call x402 endpoint, returning structured completion objects without requiring an API key.","exampleAgentPrompt":"Ask Animica's pay-per-call AI endpoint to answer this question using gpt-4o-mini with a 512-token budget: 'What are three creative names for a coffee shop that specializes in cold brew?'","exampleUseCases":[{"title":"Agent pipeline LLM inference","prompt":"I need you to send this list of customer reviews to Animica's chat completions API using the default free model and ask it to summarize the sentiment in one sentence each — keep the response under 200 tokens per call."},{"title":"Keyless LLM for a hackathon prototype","prompt":"I'm building a quick demo and don't have an OpenAI key set up — can you call Animica's x402 chat endpoint with gpt-4o-mini and ask it to generate a short product description for a smart water bottle, max 300 tokens?"},{"title":"Autonomous agent decision-making step","prompt":"For this task-planning agent, send the current task context as a message to Animica's paid chat completions endpoint with a 1024-token limit and get back the next recommended action."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the generated assistant message, finish reason, model used, and token usage counts (prompt, completion, total). The response is non-streaming (stream must be false or absent).","failureModes":["Payment failure or insufficient USDC balance causes 402 Payment Required with no completion returned","Streaming requested (stream: true) is unsupported on this paid path and will return an error","Invalid or unavailable model ID returns an error — check /v1/models for valid options","Exceeding max_tokens or malformed messages array causes a 400 Bad Request","Network timeout if the model inference takes too long for the given token budget"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions without managing an API key subscription, want pay-per-call billing in USDC via x402, or are building an AI agent that requires metered LLM access with no upfront commitment. It is especially suitable for autonomous agent pipelines, hackathon prototypes, or any workflow where per-call micropayments are preferred over flat-rate API subscriptions. Avoid if streaming responses are required, as that is not supported on this paid path.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:38.646Z","isFirstParty":false}