{"uid":"cap_WsbffEHMdpCe7E5Jye1hV","slug":"payperwork-ai-chat-completions-d74afbb9","name":"PayPerWork AI Chat Completions","description":"OpenAI-compatible chat completions on frontier models: GPT-6.1 Sol and Terra, GPT-5.5, Claude Sonnet 5.5 and Haiku 5.5, Gemini 3.8 Flash, Grok 4.7, GPT-6 Luna.","url":"https://payperwork.app/ai/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CtfJRskcpgNqTZAmY-mqd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 a pay-per-call API across multiple frontier LLMs including GPT, Claude, Gemini, and Grok models.","exampleAgentPrompt":"Send this conversation history to Claude Sonnet 5.5 and get a response: the system prompt is 'You are a helpful assistant' and the user asked 'What are the top 3 causes of the French Revolution?'","exampleUseCases":[{"title":"Agentic reasoning with frontier model","prompt":"Run this multi-turn conversation through GPT-6 Luna to get a high-quality answer — the user asked me to explain how transformer attention works in simple terms, and I want the best model available."},{"title":"Cost-controlled LLM call in automation","prompt":"Use Gemini 3.8 Flash to classify these 5 customer support tickets by urgency — I want cheap, fast responses and I'm okay with a lighter model for this task."},{"title":"Drop-in Claude access for coding task","prompt":"Ask Claude Haiku 5.5 to review this Python function and suggest performance improvements — here's the code snippet I want analyzed."}],"resultDescription":"Returns an OpenAI-compatible chat completion response object containing the assistant's message content, model used, finish reason, and token usage statistics (prompt tokens, completion tokens, total tokens).","failureModes":["Insufficient USDC balance or x402 payment failure returns 402 Payment Required","Invalid or unsupported model name returns 400 Bad Request","Malformed messages array or missing required fields returns 422 Unprocessable Entity","Model provider outage causes 503 or timeout","Rate limiting from upstream provider may cause 429 errors","Max token limit exceeded returns an error or truncated response"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions but want to pay per call in USDC via x402 rather than managing API keys or subscriptions across multiple providers. It is especially useful for agent workflows that need access to multiple frontier model families (GPT, Claude, Gemini, Grok) through a single unified interface, or when building cost-controlled pipelines that only pay for actual usage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:51.180Z","isFirstParty":false,"canonicalSlug":"payperwork-ai-chat-completions-d74afbb9"}