modelradar_run
Selects a model matching your task and runs a chat completion via OpenRouter. Returns the answer, the model used, and an estimated cost.
Instructions
Route + execute: pick the best model for the need (or use model if given) and run a chat completion through OpenRouter. Returns the answer, the model it routed to, and an estimated cost. Requires OPENROUTER_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | coding | reasoning | multimodal | general (used to auto-route) | |
| model | No | force a model: ModelRadar id/name or an OpenRouter id (lab/model) | |
| query | No | ||
| prefer | No | ||
| prompt | Yes | ||
| system | No | ||
| max_tokens | No | ||
| multimodal | No | ||
| min_context | No | ||
| temperature | No | ||
| open_weights | No | ||
| max_input_price | No |