granite chat completions
granite_chat_completionsOpenAI-compatible chat completions on IBM Granite 4.0 Micro, the lowest-cost chat here, with tool calling (131K context). Set your OpenAI SDK base URL to https://agentrxi.com/v1/granite and pay per token with x402 instead of an API key: $0.051 per million input and $0.336 per million output tokens, minimum $0.002 a call, at most $0.0049. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, streaming supported), up to 4096 output tokens. Costs $0.0049 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored; always granite-4.0-micro | |
| tools | No | OpenAI function tools | |
| stream | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |