Run inference on Surplus
chatSend a prompt or full conversation to an open or frontier LLM and get its reply, billed to your configured API key. Call list_models first to pick a model id.
Instructions
Send a prompt to a model on Surplus and return its reply. Billed to the configured API key. Pass prompt for a single turn, or messages for a full conversation. Call list_models to pick a model id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id, e.g. "qwen/qwen3.8-flash" | |
| prompt | No | User message for a single-turn request | |
| system | No | Optional system prompt, used with `prompt` | |
| messages | No | Full conversation; overrides prompt/system | |
| max_tokens | No | ||
| temperature | No |