OpenRouter
Overview
Section titled “Overview”OpenRouter is an OpenAI-compatible provider routing service that accesses models from multiple providers (OpenAI, Anthropic, Google, Meta, etc.) through a unified interface. Use it through DeepIntShield with the standard OpenAI-compatible request format, plus reasoning support on compatible models. Key features:
- Provider aggregation - Access 100+ models from multiple vendors
- Reasoning support - Extended thinking for supported models
- Parameter compatibility - Intelligent reasoning effort conversion
- Streaming support - Full SSE support with usage tracking
- Tool calling - Complete function definition and execution
Supported Operations
Section titled “Supported Operations”| Operation | Non-Streaming | Streaming | Endpoint |
|---|---|---|---|
| Chat Completions | ✅ | ✅ | /v1/chat/completions |
| Responses API | ✅ | ✅ | /v1/responses |
| Text Completions | ✅ | ✅ | /v1/completions |
| List Models | ✅ | - | /v1/models |
| Embeddings | ❌ | ❌ | - |
| Image Generation | ❌ | ❌ | - |
| Speech (TTS) | ❌ | ❌ | - |
| Transcriptions (STT) | ❌ | ❌ | - |
| Files | ❌ | ❌ | - |
| Batch | ❌ | ❌ | - |
1. Chat Completions
Section titled “1. Chat Completions”Request Parameters
Section titled “Request Parameters”OpenRouter supports all standard OpenAI chat completion parameters. For full parameter reference and behavior, see OpenAI Chat Completions.
Reasoning Parameter Handling
Section titled “Reasoning Parameter Handling”OpenRouter supports extended thinking on compatible models via the standard reasoning object:
{ "reasoning": { "effort": "high", "max_tokens": 10000 }}Reasoning Models: gpt-oss-120b and other compatible models.
Unsupported Parameters
Section titled “Unsupported Parameters”The following parameters are not supported by OpenRouter and are ignored: prompt_cache_key, verbosity, store, service_tier, and Anthropic-specific cache_control directives.
OpenRouter supports all standard OpenAI message types, tools, responses, and streaming formats. For details on message handling, tools, responses, and streaming, refer to OpenAI Chat Completions.
2. Responses API
Section titled “2. Responses API”OpenRouter exposes a Responses API at /v1/responses. This API is currently in beta on OpenRouter.
It offers the same parameter support as Chat Completions. For more on the Responses API, see the OpenAI Responses API documentation.
3. Text Completions
Section titled “3. Text Completions”OpenRouter supports legacy text completion format:
| Parameter | Mapping |
|---|---|
prompt | Direct pass-through |
max_tokens | max_tokens |
temperature, top_p | Direct pass-through |
stop | Stop sequences |
4. List Models
Section titled “4. List Models”Lists 100+ models available through OpenRouter, including:
- OpenAI (GPT-4, GPT-4 Turbo, etc.)
- Anthropic (Claude 3 family)
- Google (Gemini)
- Meta (Llama)
- Mistral
- And many more
Unsupported Features
Section titled “Unsupported Features”| Feature | Reason |
|---|---|
| Embedding | Not offered by OpenRouter API |
| Image Generation | Not offered by OpenRouter API |
| Speech/TTS | Not offered by OpenRouter API |
| Transcription/STT | Not offered by OpenRouter API |
| Batch Operations | Not offered by OpenRouter API |
| File Management | Not offered by OpenRouter API |
Caveats
Section titled “Caveats”Cache Control Stripped
Severity: Medium Behavior: Anthropic cache control directives are removed Impact: Prompt caching features unavailable
Parameter Filtering
Severity: Low Behavior: OpenAI-specific parameters filtered Impact: prompt_cache_key, verbosity, store removed
User Field Size Limit
Severity: Low Behavior: User field > 64 characters silently dropped Impact: Longer user identifiers are lost