Manage Bring Your Own API Keys
Store and validate your own API keys across eleven supported AI providers. Keys remain exclusively in your browser local storage and are never logged, cached, or persisted on any server.
All API keys are stored strictly in your browser's localStorage. They are never saved to any database, logged, or cached. Anthropic keys call Anthropic directly from your browser; other providers pass through our stateless proxy header-to-header.
Cloudflare Workers AI
Transport: Stateless proxy · Key setup guide
OpenAI
Transport: Stateless proxy · Key setup guide
Anthropic
Transport: Direct browser CORS · Key setup guide
Google AI Studio (Gemini)
Transport: Stateless proxy · Key setup guide
Groq
Transport: Stateless proxy · Key setup guide
Mistral
Transport: Stateless proxy · Key setup guide
DeepSeek
Transport: Stateless proxy · Key setup guide
xAI
Transport: Stateless proxy · Key setup guide
Cerebras
Transport: Stateless proxy · Key setup guide
Cohere
Transport: Stateless proxy · Key setup guide
Perplexity
Transport: Stateless proxy · Key setup guide
How Browser Key Storage Works
Your keys remain under your full control inside your browser.
Every key save, update, and deletion is wrapped in safe try/catch storage helpers so restricted browsing modes fail gracefully. Deleting a key immediately removes it from localStorage.
Direct Browser Calls Versus Stateless Proxy
Each provider uses the most direct officially documented transport path.
Anthropic explicitly permits direct browser CORS requests via the anthropic-dangerous-direct-browser-access: true header. All other providers block browser CORS preflights, so TextGeneration.dev forwards those requests header-to-header through /api/proxy/:provider without logging, storing, or caching credentials, prompts, or responses.
Frequently Asked Questions
Does This Site Ever Store My API Keys on a Server?
No. Keys are saved exclusively in your browser local storage using safe try/catch wrappers. When a provider requires our stateless proxy for CORS, the key travels in a request header and is immediately discarded after forwarding.
Why Do Some Providers Require Both an Account ID and an API Token?
Certain inference providers embed your account identifier in their REST endpoint URL alongside a Bearer API token. The key form above prompts for both fields automatically whenever a provider requires them.