Skip to content

Commit daa5763

Browse files
authored
docs(openrouter): add documentation for OpenRouter API (#3705)
* docs(openrouter): add documentation for OpenRouter API and supported models * docs(openrouter): remove outdated model list from OpenRouter API documentation
1 parent ec331ef commit daa5763

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# OpenRouter
2+
3+
[OpenRouter](https://openrouter.ai/) provides unified access to multiple AI models through an OpenAI API compatible RESTful endpoint, including models from OpenAI, Anthropic, Google, and Meta.
4+
5+
## Chat Model
6+
7+
OpenRouter provides an OpenAI-compatible chat API interface.
8+
9+
```toml title="~/.tabby/config.toml"
10+
[model.chat.http]
11+
kind = "openai/chat"
12+
model_name = "openai/gpt-4" # Can be any model from https://openrouter.ai/models
13+
api_endpoint = "https://openrouter.ai/api/v1"
14+
api_key = "your-api-key"
15+
```
16+
17+
## Completion Model
18+
19+
OpenRouter does not offer completion models (FIM) through their API.
20+
21+
## Embeddings Model
22+
23+
OpenRouter does not offer embeddings models through their API.
24+
25+
## Supported Models
26+
27+
For a complete list of supported models, visit [OpenRouter's Model List](https://openrouter.ai/models).

0 commit comments

Comments
 (0)