{"uid":"cap_f8OWgdiON_hrm3mIGYkpY","slug":"synap-chat-completions-openai-compatible-inference-api-4bbaf4a2","name":"Synap Chat Completions — OpenAI-compatible Inference API","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/v1/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_AOZ1zpl1iDVGCn8QNz4s2","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":"Runs LLM chat completions using Qwen3-Coder-30B via an OpenAI-compatible endpoint with zero data retention and per-call micropayment via x402","exampleAgentPrompt":"Send this conversation to the Synap community inference API using Qwen3-Coder-30B and get a response — my system prompt is 'You are a helpful coding assistant' and the user message is 'Write a Python function to parse JSON from a string.'","exampleUseCases":[{"title":"Code generation via community GPU inference","prompt":"Use the Synap community inference API to generate a TypeScript function that validates an email address — system prompt is 'You are an expert TypeScript developer', user message is 'Write a regex-based email validator function with tests.'"},{"title":"Privacy-first AI assistant response","prompt":"I need a zero-data-retention LLM response from Synap — system prompt is 'You are a confidential legal summarizer', user message is 'Summarize the key obligations in this contract clause: The licensee shall not sublicense...'"},{"title":"Low-cost automated text pipeline","prompt":"Hit the Synap inference endpoint to classify the sentiment of this customer review and return a JSON label — system prompt is 'You are a sentiment classifier. Respond only in JSON.', user message is 'The product arrived late and the packaging was damaged, though the item itself works fine.'"}],"resultDescription":"Returns an OpenAI-style chat.completion JSON object including the assistant's reply message, token usage breakdown (prompt, completion, total), and a payment confirmation object with the Base network transaction hash and amount paid in USD.","failureModes":["Payment failure if insufficient USDC balance — returns 402 Payment Required","Model overload or GPU unavailability from community network — may return 503 or timeout","Malformed request body not matching OpenAI schema — returns 400 with validation error","Network latency spikes due to distributed GPU sourcing","Rate limiting if too many concurrent requests"],"whenToPreferThis":"Choose this endpoint when you need a low-cost, OpenAI-compatible LLM inference API with strict zero data retention guarantees, are comfortable with micropayment-per-call billing via x402 on Base, and want to leverage a community GPU network running Qwen3-Coder-30B — particularly suited for code generation, reasoning tasks, or privacy-sensitive workloads where retaining user data on a provider's servers is unacceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:30:18.719Z","isFirstParty":false,"canonicalSlug":"synap-chat-completions-openai-compatible-inference-api-4bbaf4a2"}