chat_completion
Send and receive AI-generated responses using a variety of models for conversational tasks. Integrate with OpenRouter.ai to process messages and retrieve outputs efficiently.
Instructions
Send a message to OpenRouter.ai and get a response
Input Schema
Name | Required | Description | Default |
---|---|---|---|
messages | Yes | An array of conversation messages with roles and content | |
model | No | The model to use (e.g., "google/gemini-2.0-flash-thinking-exp:free", "undi95/toppy-m-7b:free"). If not provided, uses the default model if set. | |
temperature | No | Sampling temperature (0-2) |