{"uid":"cap_CT3wEJYmUEjbO5V0RJklw","slug":"telnyx-inference-chat-completions-gemma-2b-c2ff19b5","name":"Telnyx Inference Chat Completions (Gemma 2B)","description":"Chat completions via Telnyx Inference (google/gemma-2b-it). OpenAI-compatible. $0.002 USDC per call.","url":"https://x402.telnyx.com/v1/chat/completions/_t/gemma-2b","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-2b-it","description":"Model identifier; fixed to google/gemma-2b-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":2000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":256,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.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_-Kk-4ZlLbPor7EfJZZCxP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a single OpenAI-compatible chat completion against Google's Gemma-2B-IT model via Telnyx Inference, billed at $0.002 USDC per call using the x402 payment protocol.","exampleAgentPrompt":"Ask Gemma 2B to summarize the following in one paragraph, keeping the tone professional: 'Our Q3 revenue grew 18% YoY driven by enterprise contracts, though operating costs rose due to headcount expansion.' Keep the response under 100 tokens.","exampleUseCases":[{"title":"Lightweight FAQ bot response","prompt":"Use the small Gemma model to answer this customer FAQ in under 80 tokens: 'How do I reset my password?' — keep it concise and friendly."},{"title":"Classify support ticket intent","prompt":"I need Gemma 2B to classify this support message into one of these categories — billing, technical, or general: 'My invoice shows a charge I don't recognize from last month.'"},{"title":"Draft a short product description","prompt":"Have Gemma 2B write a two-sentence product description for a wireless noise-cancelling headband called 'ZenBand Pro', aimed at remote workers."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing a single assistant message (n=1) with the model's generated text, finish reason, and token usage counts. The assistant message content is bounded by the max_tokens parameter (up to 256 tokens).","failureModes":["Payment failure: x402 payment not fulfilled or insufficient USDC balance causes rejection before inference runs","Content too long: messages exceeding 2000 characters per message or more than 32 messages returns a validation error","max_tokens out of range: values below 1 or above 256 are rejected","Temperature out of range: values outside 0-2 cause schema validation failure","Model mismatch: specifying any model other than google/gemma-2b-it returns an error since the route is fixed","Network timeout: inference latency spike causes request to time out with no completion returned"],"whenToPreferThis":"Choose this endpoint when you need a low-cost ($0.002/call), pay-per-use LLM inference call without a subscription, specifically against the Gemma-2B-IT instruction-tuned model. It is ideal for lightweight tasks like classification, short-form generation, or FAQ responses where a smaller model suffices. Prefer it over larger model endpoints when cost efficiency matters and you are already operating in an x402 micropayment environment. Not suitable when you need longer outputs (>256 tokens), larger context windows, or more capable models.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:35:51.586Z","isFirstParty":false}