OpenRouter
API actions for the OpenRouter integration.
OpenRouter
Connect to OpenRouter to generate responses from your selected hosted models.
Generate a response with OpenRouter
Sends a prompt to an OpenRouter-hosted model and returns the generated response text.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | The prompt to send to the selected OpenRouter model |
model | string | No | Optional OpenRouter model id to target (defaults to a recommended OpenRouter model) |
Response
{
"model": "mock_value",
"response_text": "mock_value",
"status": "mock_value"
}