{"uid":"cap_XfeSHM097jVAnizZBnAle","slug":"synap-ai-chat-completions-x402-bc52c44c","name":"Synap AI Chat Completions (x402)","description":"AI powered by the people, for the people. OpenAI-compatible inference API with zero data retention — qwen3-coder-30b at $0.0675/1M in, $0.27/1M out. Contribute your GPU, earn credits.","url":"https://synap.linkrra.com/api/billing/x402/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["auto","qwen/qwen3-vl-30b-a3b-instruct","qwen/qwen3-30b-a3b","qwen3-coder-30b","gpt-oss-20b","gemma-4-26b-a4b-it"],"type":"string","description":"\"auto\" = cheapest of our self-hosted models that fits, or name one."},"stream":{"type":"boolean","default":false,"description":"true = stream OpenAI-format Server-Sent Events."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"description":"Text, or an array of OpenAI content parts."}}},"examples":[[{"role":"user","content":"Write a Python function that reverses a string"}]],"minItems":1,"description":"OpenAI-format chat history, oldest first: [{role, content}]."},"max_tokens":{"type":"integer","default":4096,"maximum":4096,"minimum":1,"description":"Completion token cap. The price is quoted for the prompt plus this cap."}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","usage":{"total_tokens":0,"prompt_tokens":0,"completion_tokens":0},"object":"chat.completion","choices":[{"message":{"role":"assistant","content":"..."}}],"payment":{"network":"eip155:8453","paidUsd":0,"transaction":"0x..."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RZeMsMlyECKjueicKu4bX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions using qwen3-coder-30b with pay-per-call micropayments via x402 and zero data retention","exampleAgentPrompt":"Ask Synap to write me a Python function that parses a JSON file and filters entries where the 'status' field equals 'active' — use the qwen3-coder model and make sure nothing is stored.","exampleUseCases":[{"title":"Privacy-first code generation for developers","prompt":"I need a function written in TypeScript that validates an email address using a regex — use Synap's zero-retention AI so my code never gets logged anywhere."},{"title":"Automated coding assistant in a CI pipeline","prompt":"Have Synap review this diff and suggest fixes for any bugs: the function is supposed to debounce API calls but it's firing twice on the first keystroke."},{"title":"Per-request AI inference with crypto billing","prompt":"Send my chat message to Synap and pay for it with USDC — I want to ask the AI to explain how Merkle trees work in simple terms, and I only want to pay for what I use."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object with the assistant's message content, token usage counts (prompt, completion, total), a unique completion ID, and a payment receipt containing the Base network transaction hash and USD amount paid.","failureModes":["Insufficient USDC balance or failed x402 payment results in 402 Payment Required","Malformed request body missing required messages field returns 400 Bad Request","Model overload or GPU contributor unavailability may cause 503 or timeout","Invalid OpenAI-compatible parameters (e.g. bad model name) return 400 or 422","Network issues on Base blockchain may delay payment confirmation"],"whenToPreferThis":"Prefer this endpoint when you need OpenAI-compatible LLM inference with no subscription, pay-per-call USDC micropayments via x402, strict zero data retention, and specifically the qwen3-coder-30b model. Ideal for privacy-sensitive workloads, coding tasks, or agents that need to self-fund inference without managing API key subscriptions. Choose alternatives (e.g. OpenAI, Anthropic) if you need GPT-4/Claude models, higher throughput guarantees, or traditional API key billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:33:16.201Z","isFirstParty":false,"canonicalSlug":"synap-ai-chat-completions-x402-bc52c44c"}