Documentation Index
Fetch the complete documentation index at: https://docs.samuraiapi.in/llms.txt
Use this file to discover all available pages before exploring further.
One API, Unlimited Possibilities: Access GPT-4.1, Claude Opus 4, Gemini 2.5 Pro, and 400+ models without juggling multiple providers.
What is Samurai AI?
Samurai AI is your “super-API” for AI. Instead of integrating with OpenAI, Anthropic, Google, and other providers separately, you get access to all their models through one unified interface — at 50% of the original provider price.Why Samurai AI?
- 50% Cheaper: Pay half the provider price on every model, every time
- Instant Model Switching: Change models with one parameter — no code rewrites
- OpenAI Compatible: Drop-in replacement — just change
base_urland go - 400+ Models: Chat, audio, embeddings — all in one API
- Unified Billing: One invoice for all your AI usage
Quick Start
Quick Start
Get your API key and make your first request in minutes.
Authentication
Get your API key and start building.
Browse Models
GPT-4.1, Claude Opus 4, Gemini 2.5 Pro, and 400+ more.
API Playground
Test every endpoint live in your browser.
Core Features
50% Cheaper
gpt-4o for **2.50 direct. claude-3-5-sonnet for **3.00. Every model, every time.OpenAI Compatible
Change
base_url and your API key. SDKs, streaming, function calling, vision — all work exactly the same.400+ Models
Chat, audio, embeddings — all in one API. New models added as they launch from providers.
Base URL
Who Uses Samurai AI?
Developers
- Experiment with 400+ models without rewriting code
- Reduce integration complexity from weeks to minutes
- Build faster with one API key, one SDK, one invoice
Businesses
- Cut AI costs by 50% immediately across every model
- Ensure high availability for customer-facing AI features
- Future-proof AI investments with provider flexibility
Researchers
- Access cutting-edge models as they’re released
- Run evaluations across GPT, Claude, Gemini, and more from one endpoint
- Test model performance across different tasks without managing multiple accounts
Example: Switching Models
Popular Model Combinations
| Use Case | Primary Model | Why |
|---|---|---|
| Chatbots | gpt-4o-mini | Fast, cost-effective |
| Code Generation | gpt-4.1 | Best code quality |
| Complex Analysis | claude-opus-4-5 | Superior reasoning |
| Creative Writing | claude-opus-4-5 | Creative excellence |
| Large Context | gemini-2.5-pro | 1M+ token context |
| Embeddings | text-embedding-3-small | Fast, cheap vectors |
Getting Started
Get API Key
Sign up for a Samurai AI account and get your API key from the dashboard.
Need Help?
- Browse our guides: Comprehensive documentation for every feature
- Check the FAQ: Common questions and answers
- Contact support: support@samuraiapi.in for technical assistance
- Discord: Join our community
- Use search: Press
Cmd+K/Ctrl+Kto search all documentation