{"uid":"cap_uEl43TBxfk9bW_7dKSUZU","slug":"telnyx-x402-gemma-4-26b-chat-completions-4839ffbe","name":"Telnyx x402 Gemma-4-26B Chat Completions","description":"Chat completions via Telnyx Inference (google/gemma-4-26B-A4B-it). OpenAI-compatible. $0.003139 USDC per call.","url":"https://x402.telnyx.com/v1/chat/completions/_t/gemma-4-26b?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Fixed to one completion per paid call."},"model":{"type":"string","const":"google/gemma-4-26B-A4B-it","description":"Model identifier; fixed to google/gemma-4-26B-A4B-it on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string","maxLength":12000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":1024,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-xxx","usage":{"total_tokens":16,"prompt_tokens":12,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003139","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.003139/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003139","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003139","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jCcdfDWlo0UxhK0NXbHDW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003139","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates chat completions using Google Gemma 4 26B via Telnyx, billed per-request at $0.003139 USDC through the x402 micropayment protocol.","exampleAgentPrompt":"Ask Gemma 4 26B to explain the differences between supervised and unsupervised learning in plain English — use up to 512 tokens and a temperature of 0.7, paying per request with USDC.","exampleUseCases":[{"title":"One-off LLM answer without subscription","prompt":"I just need a single smart response from a powerful AI model — use Gemma 4 26B to answer 'What are the main trade-offs between microservices and monoliths?' in about 300 tokens, paying per request so I don't have to sign up for anything."},{"title":"Agentic tool-using chatbot step","prompt":"My agent needs to call Gemma 4 26B with a system prompt saying 'You are a helpful coding assistant' and a user message 'Write a Python function to parse a CSV file', with tool definitions for file operations, using a temperature of 0.2 and max 800 tokens."},{"title":"Cost-controlled content drafting","prompt":"Draft a short product description for a noise-cancelling headphone using Gemma 4 26B — keep it under 200 tokens, temperature 0.8, and bill it per call in USDC so I only pay for what I use."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object with the assistant's generated message, finish reason (e.g. 'stop'), and token usage breakdown (prompt tokens, completion tokens, total tokens). The model field is fixed to google/gemma-4-26B-A4B-it.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 Payment Required","Invalid or missing messages array — returns 400 Bad Request","max_tokens exceeds 1024 — schema validation error","Content length exceeds 12000 characters per message — validation failure","Model field set to anything other than google/gemma-4-26B-A4B-it — rejected by fixed const constraint","More than 16 tools provided — validation error","More than 32 messages in conversation — validation error","Network timeout if inference takes too long under load"],"whenToPreferThis":"Choose this endpoint when you need pay-per-request LLM inference with Google Gemma 4 26B without committing to a subscription or managing API keys — ideal for low-volume, sporadic, or agent-driven workloads where USDC micropayments via x402 are acceptable. Prefer it over OpenAI or Anthropic endpoints when you specifically want the Gemma 4 26B model or need Telnyx's infrastructure with per-call billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T21:39:15.486Z","isFirstParty":false,"canonicalSlug":"telnyx-x402-gemma-4-26b-chat-completions-4839ffbe"}