Authorizations
API key authentication using Bearer token
Body
application/json
AI provider (currently only 'openrouter' supported)
Available options:
openrouter
Model identifier (e.g., 'openai/gpt-4o', 'anthropic/claude-3.5-sonnet')
Example:
"openai/gpt-4o"
Conversation messages in OpenAI format
Enable streaming response
Sampling temperature
Required range:
0 <= x <= 2
Top-p sampling
Required range:
0 <= x <= 1
Maximum tokens to generate
Stop sequences
Frequency penalty
Required range:
-2 <= x <= 2
Presence penalty
Required range:
-2 <= x <= 2