chat_completion
Send messages to an OpenRouter model and retrieve responses. Supports system, user, assistant roles with optional model, temperature, and token limits.
Instructions
Send messages to an OpenRouter model and get a response
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID (optional, uses default) | |
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |