gemma chat completions
gemma_chat_completionsOpenAI-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 4096 output tokens. Costs $0.0078 USDC per call (x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "gemma_chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored; always gemma-4-26b | |
| tools | No | OpenAI function tools | |
| stream | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |