blockrun_chat
Chat with AI models using routing modes including GLM, coding, reasoning, or free NVIDIA models. Pay per call with no API keys required.
Instructions
Get a second opinion from another AI model, or use a specialized model for a specific task.
Notable modes:
mode:"glm" → Zhipu GLM-5 / GLM-5-Turbo ($0.001/call, excellent for coding tasks, pays via USDC on BlockRun)
mode:"coding" → GLM-5 first, then code-specialized models
mode:"cheap" → GLM-5, NVIDIA free, DeepSeek
mode:"reasoning" → o3, o1, DeepSeek-R1
mode:"free" → NVIDIA models (no cost)
routing:"smart" → auto-select via ClawRouter
Pick directly: model:"zai/glm-5", model:"openai/o3", model:"nvidia/deepseek-v3.2" (free).
Run blockrun_models to see all 41+ models with pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Your message to the AI | |
| model | No | Specific model ID (e.g., 'zai/glm-5', 'openai/o3') | |
| mode | No | Routing mode: glm = Zhipu GLM-5/GLM-5-Turbo ($0.001/call, great for coding), coding = GLM-5 + code models, cheap = GLM-5 + budget, free = NVIDIA only (ignored if model specified) | |
| routing | No | Set to "smart" to auto-select the optimal model via ClawRouter (14-dimension AI routing) | |
| routing_profile | No | Cost/quality profile for ClawRouter: "free" (zero cost NVIDIA), "eco" (budget), "auto" (balanced, default), "premium" (best quality) (only applies when routing: "smart") | auto |
| system | No | Optional system prompt | |
| max_tokens | No | Max tokens in response | |
| temperature | No | Creativity 0-2 | |
| agent_id | No | Agent identifier. If a budget was delegated for this agent_id via blockrun_wallet action:'delegate', spending is tracked and enforced. The agent is hard-stopped when its budget is exhausted. | |
| messages | No | Conversation history for multi-turn context. When provided, 'message' is appended as the final user turn. Use with explicit 'model' param (defaults to 'openai/gpt-5.4' if not specified). Note: if you include a role:'system' entry in messages[], do not also pass the system param to avoid duplicate system messages. |