IBM Granite Chat ($0.02)
ibm_granite_chatSend conversation messages and receive assistant replies with token usage. Powered by IBM Granite models with pay-per-use billing via x402.
Instructions
Chat completion powered by IBM Granite foundation models (default: ibm/granite-3-8b-instruct). Send a conversation as role/content message pairs and receive the assistant reply with token usage. No IBM Cloud account required — pay $0.02 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override the Granite model id (e.g. ibm/granite-3-2b-instruct). Defaults to ibm/granite-3-8b-instruct. | |
| messages | Yes | Conversation history. Must include at least one user message. | |
| temperature | No | Sampling temperature (0 = deterministic). Defaults to 0.7. | |
| max_new_tokens | No | Maximum tokens to generate. Defaults to 1024. |