Call Mirai model
call_modelSend chat messages to Mirai and receive an AI assistant reply. Uses guest quota without a key or paid API with a key.
Instructions
Send a chat completion to Mirai and return the assistant text. Use this only to generate a reply. Do not use this to look up prices or remaining quota; use list_models or account_status. Works without MIRAI_API_KEY while daily guest quota remains. With a key, uses the paid chat completions API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model id such as mirai-1 or mirai-2. Guest calls default to mirai-1. | |
| messages | Yes | Conversation messages, oldest first | |
| max_tokens | No | Optional output token cap |