{"uid":"cap_49lK-DtT-_hkS11D_3p9l","slug":"agentrxi-gemma-chat-completions-8f6881be","name":"AgentRXI Gemma Chat Completions","description":"OpenAI-compatible chat completions on Google Gemma 4 26B, reasoning and tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/gemma and pay per token with x402 instead of an API key: $0.3 per million input and $0.9 per million output tokens, minimum $0.002 a call, at most $0.0078. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 409","url":"https://agentrxi.com/v1/gemma/chat/completions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","model":"gemma-4-26b","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00385","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.00385/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00385","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00385","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FuQNTeyrxIYMn6fTskKSr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00385","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Run a chat completion against Google's Gemma 4 26B model via a pay-per-call API, returning an OpenAI-compatible response.","exampleAgentPrompt":"Ask Gemma 4 26B to explain the difference between supervised and unsupervised learning in two sentences, using a system message that says 'You are a concise ML tutor' and keep it to 150 tokens max.","exampleUseCases":[{"title":"No-signup LLM for agent pipeline","prompt":"I need to call a Gemma model to classify customer sentiment from a support message — use 'You are a sentiment classifier, respond with only Positive, Negative, or Neutral' as the system prompt and the message text as the user prompt, capped at 10 tokens."},{"title":"Cheap per-call text summarization","prompt":"Summarize this paragraph in one sentence using Gemma 4: 'Quantum computing leverages the principles of superposition and entanglement to process information in ways classical computers cannot, potentially solving problems in cryptography and drug discovery exponentially faster.' Use no more than 80 tokens."},{"title":"Multilingual translation for an agent","prompt":"Translate 'Good morning, how are you?' into French using Gemma — set the system message to 'You are a professional translator. Respond only with the translation.' and limit the response to 30 tokens."}],"resultDescription":"An OpenAI-compatible JSON chat completion object containing the assistant's reply text, the model name ('gemma-4-26b'), finish reason ('stop'), and token usage breakdown (prompt tokens, completion tokens, total tokens).","failureModes":["Missing required 'prompt' query parameter returns a 400 error","Payment not provided or insufficient USDC balance returns a 402 Payment Required","Temperature out of valid range may cause a 422 validation error","Very large prompts may exceed model context window and return an error","Network timeout for long generation requests"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call LLM with no API key or account setup, especially when cost per call matters (under $0.004 USDC) or when you want an OpenAI-compatible interface powered by Google's Gemma 4 open-weight model without committing to a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:19.560Z","isFirstParty":false,"canonicalSlug":"agentrxi-gemma-chat-completions-8f6881be"}