Chat with an AI model (query, prompt, test any LLM)
send_messageChat with or query any AI model on this account: send a prompt and get the model's reply (a chat completion). Use it when the person asks for a model's answer, or to test or compare models — no API key needed. Calls a model and is billed to this account like an API call. Model ids come from list_models. Send message for one question, or messages for a conversation (the call keeps no history, so resend earlier turns). Replies stop at max_tokens (default 4000, at most 16000). The result carries the reply, model, token counts and request id as separate fields; list_requests shows what the call cost. If the result asks which project to bill, ask the person and call again with projectId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | A model id from list_models | |
| system | No | Optional system prompt | |
| message | No | The prompt. Send this OR `messages`. | |
| messages | No | A conversation, oldest first. Send this OR `message`. | |
| projectId | No | Only when a previous result asked which project to bill | |
| max_tokens | No | Longest reply allowed (default 4000) | |
| reasoning_effort | No | For reasoning models: 'low', 'medium' or 'high' |