{"uid":"cap_jzGauluG7PVl5JM1AGwgd","slug":"agentrxi-ibm-granite-4-0-micro-chat-completion-ce5e937f","name":"AgentRXI IBM Granite 4.0 Micro Chat Completion","description":"OpenAI-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, ","url":"https://agentrxi.com/v1/granite/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":"granite-4.0-micro","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.002346","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.002346/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002346","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002346","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UnTlyvwfgsxJXLFnZE5de","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002346","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-call LLM chat completion using IBM Granite 4.0 Micro, returning OpenAI-compatible responses with no API key required","exampleAgentPrompt":"Use Granite 4.0 Micro to answer this question with a system prompt of 'You are a concise assistant' and a max of 200 tokens: 'What are three benefits of containerized deployments?'","exampleUseCases":[{"title":"Lightweight agent reasoning step","prompt":"Run this through Granite 4.0 Micro with up to 150 tokens: 'Given the user said they want a vegetarian meal, which of these three restaurant options fits best: pizza, sushi, or a salad bar?' Use the system message 'You are a helpful decision assistant.'"},{"title":"Multilingual quick translation","prompt":"Ask Granite 4.0 Micro to translate 'Good morning, how are you?' into French — keep max_tokens at 50 and temperature at 0.2."},{"title":"Structured output generation for pipeline","prompt":"Have Granite 4.0 Micro generate a one-sentence product description for 'noise-cancelling wireless headphones' with temperature 0.7 and max 100 tokens, using a system prompt of 'You write marketing copy.'"}],"resultDescription":"An OpenAI-compatible JSON chat completion object containing the assistant's reply text, finish reason (e.g. 'stop'), model name ('granite-4.0-micro'), and token usage breakdown (prompt, completion, and total tokens).","failureModes":["Missing required 'prompt' query parameter returns a 400 error","Payment not attached or insufficient USDC balance causes a 402 Payment Required response","Temperature or max_tokens out of acceptable range may cause a 400 validation error","Model overload or upstream IBM service outage returns a 503","Prompt too long for model context window triggers a 400 or truncation"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, fast, and cheap LLM call without managing API keys or subscriptions — ideal for simple reasoning steps, translation, classification, or text generation in an agent pipeline. Prefer it over larger Granite or Llama 70B endpoints when the task is straightforward and latency or cost is a concern. Best for agents already using x402 micropayment flows on AgentRXI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:17.420Z","isFirstParty":false,"canonicalSlug":"agentrxi-ibm-granite-4-0-micro-chat-completion-ce5e937f"}