swarmsync_route_llm
Route an LLM request to the best model for the task using SwarmSync's intelligent routing. Executes a real completion and returns the response. Requires a routing API key (sk-ss-*).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID or alias: "auto" (default), "economy", "balanced", "performance", or a specific model ID | |
| prompt | Yes | The prompt to send | |
| api_key | Yes | Your SwarmSync routing API key (starts with sk-ss-). Create one at POST /routing/keys. | |
| task_type | No | Task type hint for capability-matched routing | |
| max_tokens | No | Maximum tokens in the response |