{"uid":"cap_FtlVw9SFgo3dPVUGqH3HZ","slug":"synap-gemma-4-26b-chat-completions-via-linkrra-6a5d7f24","name":"Synap Gemma-4-26B Chat Completions (via Linkrra)","description":"Explore open models with Synap's OpenAI-compatible API. Start with a free API key or try a model in chat. Compare models, pricing and free-tier limits.","url":"https://synap.linkrra.com/api/billing/x402/models/gemma-4-26b-a4b-it/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gemma-4-26b-a4b-it"],"type":"string","description":"Optional: this endpoint always runs gemma-4-26b-a4b-it."},"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":""}]],"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-...","model":"gemma-4-26b-a4b-it","usage":{"total_tokens":28,"prompt_tokens":16,"completion_tokens":12},"object":"chat.completion","choices":[{"message":{"role":"assistant","content":"def reverse(s):\n    return s[::-1]"}}],"payment":{"network":"eip155:8453","paidUsd":0.001,"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_7jTCF93nvqtNQiffBUl49","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 a chat completion request against the Gemma-4-26B-A4B-IT open model via an OpenAI-compatible API, billed per call with USDC micropayment.","exampleAgentPrompt":"Using the Gemma-4-26B model on Synap, ask it to write a Python function that reverses a string — keep the response under 500 tokens and don't stream it.","exampleUseCases":[{"title":"Open-model coding assistant","prompt":"Use the Gemma-4-26B model on Synap to write me a Python class that implements a binary search tree with insert and search methods — cap the response at 1000 tokens."},{"title":"Cheap per-call summarization","prompt":"Send this article text to Gemma-4-26B on Synap and have it summarize the key points in three bullet points: [article text here]. Keep it under 300 tokens."},{"title":"System-prompted chatbot for a specific persona","prompt":"Set up a Gemma-4-26B chat on Synap with a system prompt that says 'You are a helpful travel agent' and then ask it: 'What are the top 5 things to do in Kyoto in spring?' Limit the reply to 512 tokens."}],"resultDescription":"Returns an OpenAI-format chat.completion JSON object containing the assistant's reply message, token usage breakdown (prompt, completion, total), model name, a unique completion ID, and a payment receipt with the transaction hash and amount paid in USD on the Base network.","failureModes":["Payment failure or insufficient USDC balance — payment not processed, request rejected","messages array empty or missing required role/content fields — 400 validation error","max_tokens exceeds 4096 — capped or rejected","Model identifier mismatch — only 'gemma-4-26b-a4b-it' accepted","Rate limiting or quota exceeded on the Synap platform","Network timeout during inference for very long prompts"],"whenToPreferThis":"Choose this endpoint when you need a cost-effective, pay-per-call open model inference API with OpenAI-compatible request/response format, and you want to use the Gemma-4-26B-A4B-IT model specifically. It is ideal for agents that need to avoid OpenAI vendor lock-in, want USDC micropayment billing (no monthly subscription), or are exploring open model alternatives at low cost per call ($0.001 USDC). Prefer it over proprietary model APIs when open weights and cost transparency matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:30:28.534Z","isFirstParty":false,"canonicalSlug":"synap-gemma-4-26b-chat-completions-via-linkrra-6a5d7f24"}