PageSpace supports 7 AI providers with 100+ models through a unified interface built on the Vercel AI SDK.
The built-in provider uses OpenRouter with PageSpace's API key. No configuration required.
Access 200+ models from multiple providers through a single API key.
Settings > AI > OpenRouter > Enter API key
Models include Claude, GPT, Gemini, Llama, Mixtral, and many more. OpenRouter handles routing, rate limiting, and fallbacks.
Direct access to Google's Gemini models.
Settings > AI > Google AI > Enter API key
| Model | Context | Vision | Tools |
|---|---|---|---|
| Gemini 2.5 Pro | 1M tokens | Yes | Yes |
| Gemini 2.5 Flash | 1M tokens | Yes | Yes |
| Gemini 2.0 Flash | 1M tokens | Yes | Yes |
Direct access to OpenAI models.
Settings > AI > OpenAI > Enter API key
| Model | Context | Vision | Tools |
|---|---|---|---|
| GPT-5 | 128K tokens | Yes | Yes |
| GPT-4.1 | 1M tokens | Yes | Yes |
| GPT-4.1 mini | 1M tokens | Yes | Yes |
| o3 | 200K tokens | Yes | Yes |
| o4-mini | 200K tokens | Yes | Yes |
Direct access to Anthropic's Claude models.
Settings > AI > Anthropic > Enter API key
| Model | Context | Vision | Tools |
|---|---|---|---|
| Claude Opus 4.6 | 200K tokens | Yes | Yes |
| Claude Sonnet 4.6 | 200K tokens | Yes | Yes |
| Claude Haiku 4.5 | 200K tokens | Yes | Yes |
Direct access to xAI's Grok models.
Settings > AI > xAI > Enter API key
| Model | Context | Vision | Tools |
|---|---|---|---|
| Grok 4 | 256K tokens | Yes | Yes |
Run AI models locally on your own hardware. Requires a running Ollama instance.
Settings > AI > Ollama > Configure base URL (default: http://localhost:11434)
Any model available in your Ollama installation is automatically discovered. Popular choices: Llama 3, CodeLlama, Mistral, Phi-3.
AI settings can be configured at three levels, with the most specific level winning:
// User default
Settings > AI > Default Provider: "anthropic"
Settings > AI > Default Model: "claude-sonnet-4-20250514"
// Drive override
Drive Settings > AI > Provider: "google"
Drive Settings > AI > Model: "gemini-2.5-pro-preview"
// Page override (AI_CHAT pages only)
Page Settings > AI Provider: "openai"
Page Settings > AI Model: "gpt-4.1"
API keys are stored encrypted in the user_ai_settings table:
PageSpace automatically detects whether models support:
When a model doesn't support tools, PageSpace:
The PageSpace provider includes several free models via OpenRouter:
Free models have usage limits based on your subscription plan. All free models support tool calling.
Search docs, blog posts, and more.