OpenRouterResponse
Response from OpenRouter API for AI generation requests
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The response ID from OpenRouter |
The response ID from OpenRouter | ||
| choices | array of OpenRouterChoice | List of completion choices returned by the AI model |
List of completion choices returned by the AI model | ||
| usage | OpenRouterUsage | |
| error | OpenRouterError | |
JSON Example
{
"id": "string",
"choices": [
{
"message": "..."
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0
},
"error": {
"message": "string",
"type": "string"
}
}