Skip to content

Commit 6c0b93f

Browse files
docs: surface OpenRouter as recommended starting point (TanStack#357)
docs: surface OpenRouter as recommended starting point across getting started docs
1 parent a411436 commit 6c0b93f

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

docs/adapters/openrouter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: OpenRouter Adapter
33
id: openrouter-adapter
44
---
55

6-
The OpenRouter adapter provides access to 300+ AI models from various providers through a single unified API, including models from OpenAI, Anthropic, Google, Meta, Mistral, and many more.
6+
OpenRouter is TanStack AI's first official AI partner and the recommended starting point for most projects. It provides access to 300+ models from OpenAI, Anthropic, Google, Meta, Mistral, and many more — all through a single API key and unified interface.
77

88
## Installation
99

docs/getting-started/overview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TanStack AI is a lightweight, type-safe SDK for building production-ready AI exp
1212
-**Streaming** - Built-in streaming support for real-time responses
1313
-**Isomorphic Tools** - Define once with `toolDefinition()`, implement with `.server()` or `.client()`
1414
-**Framework Agnostic** - Core library works anywhere
15-
-**Multiple Providers** - OpenAI, Anthropic, Gemini, Ollama, and more
15+
-**Multiple Providers** - OpenRouter, OpenAI, Anthropic, Gemini, Ollama, and more
1616
-**Approval Flow** - Built-in support for tool approval workflows
1717
-**Automatic Execution** - Both server and client tools execute automatically
1818

@@ -92,10 +92,14 @@ Solid hooks for TanStack AI:
9292

9393
With the help of adapters, TanStack AI can connect to various LLM providers. Available adapters include:
9494

95-
- **@tanstack/ai-openai** - OpenAI (GPT-4, GPT-3.5, etc.)
95+
- **@tanstack/ai-openrouter** - OpenRouter (300+ models via a single API key — recommended)
96+
- **@tanstack/ai-openai** - OpenAI (GPT series)
9697
- **@tanstack/ai-anthropic** - Anthropic (Claude)
9798
- **@tanstack/ai-gemini** - Google Gemini
9899
- **@tanstack/ai-ollama** - Ollama (local models)
100+
- **@tanstack/ai-groq** - Groq
101+
- **@tanstack/ai-grok** - xAI Grok
102+
- **@tanstack/ai-fal** - fal (image & video generation)
99103

100104
## Next Steps
101105

docs/getting-started/quick-start.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 2
66

77
Get started with TanStack AI in minutes. This guide will walk you through creating a simple chat application using the React integration and OpenAI adapter.
88

9+
> **Tip:** If you'd prefer not to sign up with individual AI providers, [OpenRouter](../adapters/openrouter) gives you access to 300+ models with a single API key and is the easiest way to get started.
10+
911
## Installation
1012

1113
```bash
@@ -209,6 +211,9 @@ export function Chat() {
209211

210212
To connect to AI providers, set your API keys in your environment variables. Create a `.env.local` file (or `.env` depending on your setup):
211213
```bash
214+
# OpenRouter (recommended — access 300+ models with one key)
215+
OPENROUTER_API_KEY=sk-or-...
216+
212217
# OpenAI
213218
OPENAI_API_KEY=your-openai-api-key
214219

0 commit comments

Comments
 (0)