{"uid":"cap_gHHdLPDl6Hgh8_CG5nr72","slug":"agent-hub-gemma-4-26b-chat-completions-x402-957585f5","name":"Agent Hub – Gemma 4 26B Chat Completions (x402)","description":"OpenAI-compatible chat completions on Google Gemma 4 26B, reasoning and tool calling. Set your OpenAI SDK base URL to https://agents.torbrooknews.com/v1/gemma and pay $0.002 per request with x402 instead of an API key. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 4096 output tokens. Also callable as GET with the same fields as query parameters.","url":"https://agents.torbrooknews.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":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_V38bao6m2wQgxbB4czJhD","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 OpenAI-compatible chat completions on Google Gemma 4 26B with reasoning and tool calling, billed at $0.002 USDC per request via x402 instead of an API key.","exampleAgentPrompt":"Ask the Gemma 4 26B model on Agent Hub: 'What are three creative marketing taglines for a sustainable coffee brand?' — pay $0.002 per call, no API key needed, just point the OpenAI SDK at agents.torbrooknews.com/v1/gemma.","exampleUseCases":[{"title":"Reasoning through a multi-step problem","prompt":"Use the Gemma 4 26B model to reason through this logic puzzle step by step and show your thinking: 'If all bloops are razzles and all razzles are lazzles, are all bloops definitely lazzles?'"},{"title":"Agentic tool-calling workflow","prompt":"I need Gemma 4 to decide which tool to call — search or calculator — to answer 'What is the square root of the current population of France?' Set max_tokens to 512 and use tool calling."},{"title":"Drafting structured content with a system prompt","prompt":"Send a chat completion to the Gemma 26B model with the system message 'You are a concise legal summarizer' and the user prompt 'Summarize the key obligations in a standard NDA in 5 bullet points', with temperature 0.3."}],"resultDescription":"Returns an OpenAI-format chat completion object containing the assistant's message, optional tool call specifications, optional reasoning traces, and token usage metadata. Streaming is supported for incremental token delivery. Up to 4096 output tokens per response.","failureModes":["Payment failure: x402 payment not accepted or insufficient USDC balance returns a 402 error","Prompt too long: exceeds model context window returns a 400 or truncation error","Invalid parameters: non-numeric temperature or max_tokens returns a 400 bad request","Tool schema malformed: incorrectly formatted tool definitions may cause tool calling to fail silently or error","Model unavailability: upstream Gemma inference service down returns a 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need OpenAI SDK-compatible chat completions on Google Gemma 4 26B — especially if you want pay-per-request micropayments via x402 with no API key management, or need reasoning and tool calling on an open-weight model at low per-call cost ($0.002 USDC). Prefer it over proprietary OpenAI/Anthropic endpoints when open-weight model provenance matters, or when integrating into x402-native payment workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:46:45.947Z","isFirstParty":false,"canonicalSlug":"agent-hub-gemma-4-26b-chat-completions-x402-957585f5"}