Are you sure you want to delete this access key?
sidebar_label | description |
---|---|
OpenRouter | Access 100+ LLM providers through OpenRouter's unified API gateway with automatic routing and cost optimization features |
OpenRouter provides a unified interface for accessing various LLM APIs, including models from OpenAI, Meta, Perplexity, and others. It follows the OpenAI API format - see our OpenAI provider documentation for base API details.
OPENROUTER_API_KEY
environment variable or specify apiKey
in your configLatest releases:
For a complete list of 300+ models and detailed pricing, visit OpenRouter Models.
# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
providers:
- id: openrouter:meta-llama/llama-4-scout:free
config:
temperature: 0.7
max_tokens: 1000
- id: openrouter:meta-llama/llama-4-maverick:free
config:
temperature: 0.5
max_tokens: 2000
- id: openrouter:google/gemini-2.5-pro-preview
config:
temperature: 0.7
max_tokens: 4000
Some models like Gemini 2.5 Pro include thinking tokens in their responses. You can control whether these are shown using the showThinking
parameter:
providers:
- id: openrouter:google/gemini-2.5-pro
config:
showThinking: false # Hide thinking content from output (default: true)
When showThinking
is true (default), the output includes thinking content:
Thinking: <reasoning process>
<actual response>
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?