Skip to content

SandBase

One API. 2,000+ Models. 2,000+ APIs. Zero integration headaches.

Docs · Platform · Dashboard · CLI

GitHub starsApache-2.0 licenseDocumentation

If SandBase saves you integration time, please star the repository — it helps more builders discover the project.


The Problem ​

Building AI applications means juggling dozens of API keys, learning different SDKs, handling auth flows, managing rate limits, and paying for 10+ subscriptions just to get basic capabilities.

Need Twitter data? One API. Web scraping? Another. Image generation? A third. LLM inference? Yet another. Each with its own pricing, auth, error handling, and documentation.

What if one API key could access all of them?

The Solution ​

SandBase is a unified gateway to 2,000+ AI models and 2,000+ APIs through a single interface:

sh
# Call any LLM — GPT-4o, Claude, Gemini, DeepSeek, Qwen...
curl https://sandbase.ai/v1/run -d '{"model": "openai/gpt-4o", "messages": [...]}'

# Search Twitter
curl https://sandbase.ai/v1/run -d '{"model": "twitter/search", "query": "AI agents"}'

# Generate an image with Flux
curl https://sandbase.ai/v1/run -d '{"model": "flux/schnell", "prompt": "A startup logo"}'

# Scrape any webpage
curl https://sandbase.ai/v1/run -d '{"model": "firecrawl/scrape", "url": "https://..."}'

# Generate a video with Kling
curl https://sandbase.ai/v1/run -d '{"model": "kling/video", "prompt": "Product demo"}'

One endpoint. One API key. One billing dashboard. That's it.


2,000+ Models ​

TypeCountProviders
LLM500+OpenAI (GPT-4o, o1, o3), Anthropic (Claude 4, Sonnet), Google (Gemini 2.5), DeepSeek (V3, R1), Qwen (3), Meta (Llama 4), Mistral, Cohere, Yi...
Image Generation200+Flux (Schnell, Pro, Dev), DALL-E 3, Ideogram 3, Recraft V3, Stable Diffusion 3.5, Midjourney...
Video Generation100+Kling 2.0, MiniMax, Runway Gen-4, Luma Dream Machine, Pika, Hailuo...
Audio100+ElevenLabs (TTS/clone), OpenAI Whisper, Fish Audio, Suno, Udio...
Embeddings50+OpenAI (text-3-large), Voyage 3, Cohere Embed V4, Jina V3...
Multimodal200+GPT-4o vision, Gemini Pro Vision, Claude vision, Qwen-VL...

2,000+ APIs ​

CategoryCountExamples
Web Search50+Google, Exa, Tavily, Serper, Scholar, Brave, DuckDuckGo
Social Media300+Twitter/X (search, timeline, user), YouTube (transcript, search), Reddit, Instagram, TikTok, LinkedIn, Xiaohongshu, Weibo, Bilibili, Douyin
Web Scraping100+Firecrawl (crawl, scrape, map), Exa contents, Jina Reader, URL extract
E-commerce200+Taobao (search, detail), Amazon, AliExpress, JD, Pinduoduo
Finance100+Stock quotes, company fundamentals, SEC filings, forex rates
Maps & Weather50+Google Maps, weather forecasts, geocoding, places
Translation50+DeepL, Google Translate, specialized domain translation
News50+Google News, Bing News, RSS aggregation, media monitoring
Developer Tools100+GitHub, code search, package info, DNS/WHOIS, SSL check
And more500+Travel, food, sports, education, government data, academic papers...

See It In Action ​

Your AI agent searches the web in real-time ​

You: "What happened with OpenAI this week?"

Agent → sandbase_discover("web search") → sandbase_run("exa/search")
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ 10 results from the past 7 days:
  1. "OpenAI Announces GPT-5 Preview" — The Verge (2 days ago)
  2. "New API Pricing for o3-mini" — OpenAI Blog (3 days ago)
  ...

Generate images on demand ​

You: "Create a logo for my app called 'Moonshot' — dark theme, minimal"

Agent → sandbase_run("flux/schnell", {prompt: "..."})
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Generated: moonshot-logo.png (1024x1024)
  Cost: $0.003 | Time: 1.8s

Pull live social media data ​

You: "Find what people are saying about our competitor on Twitter"

Agent → sandbase_run("twitter/search", {query: "CompetitorName"})
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ 25 recent posts mentioning CompetitorName:
  Sentiment: 60% positive, 25% neutral, 15% negative
  Top complaint: "pricing increased 40%"
  Top praise: "new AI features are solid"

Scrape and analyze any website ​

You: "Get the pricing from linear.app and compare with our plans"

Agent → sandbase_run("firecrawl/scrape", {url: "https://linear.app/pricing"})
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Extracted 3 plans:
  Free: $0/mo — 250 issues
  Standard: $8/user/mo — unlimited
  Plus: $14/user/mo — advanced analytics

Three Ways to Use SandBase ​

1. Direct API — Full control ​

python
import requests

# Call any model with one unified API
response = requests.post("https://sandbase.ai/v1/run",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"model": "openai/gpt-4o", "messages": [...]}
)

# Or use OpenAI-compatible endpoint (drop-in replacement)
response = requests.post("https://sandbase.ai/v1/chat/completions",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"model": "openai/gpt-4o", "messages": [...]}
)

2. CLI — Connect any AI coding agent in 30 seconds ​

sh
npx -y @sandbaseai/cli connect

Your Cursor / Claude Code / Codex / Kiro / Windsurf instantly gets access to all 2,000+ models and 2,000+ APIs through MCP. Just ask naturally.

Supports 17+ clients: Cursor, Claude Code, Codex, Kiro IDE, Kiro CLI, Windsurf, Gemini CLI, Amp, Warp, OpenCode, Qwen Code, Kimi CLI, Hermes, OpenClaw, ChatGPT, Claude Desktop, and more.

3. Managed Agents — Reusable AI workflows ​

json
{
  "name": "daily-market-report",
  "model": "openai/gpt-4o",
  "instructions": "Research market trends, analyze competitor moves, summarize findings",
  "tools": ["twitter/search", "exa/search", "firecrawl/scrape"],
  "schedule": "0 9 * * 1-5"
}

Define once, run on schedule, invoke via API, or trigger by webhook.


Getting Started (under 2 minutes) ​

  1. Sign up at sandbase.ai — free tier included
  2. Get your API key from the Dashboard
  3. Make your first call:
sh
curl https://sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-4o", "messages": [{"role": "user", "content": "Hello!"}]}'

Or connect your AI tool:

sh
npx -y @sandbaseai/cli connect --client cursor

Why SandBase? ​

Without SandBaseWith SandBase
20+ API keys to manage1 API key for everything
Different SDKs per serviceOne unified REST API
$500+/mo in separate subscriptionsPay only for what you use
Weeks of integration per serviceWorking in 2 minutes
Each provider has different errorsConsistent error format
Separate billing per providerOne dashboard, one invoice
Manual rate limit handlingBuilt-in retry and fallback
No visibility across providersUnified logs, costs, and analytics

Documentation ​

This repository contains the full SandBase documentation site, built with VitePress.

SectionWhat's Inside
Getting StartedAccount setup, API keys, first call
Models2,000+ models — capabilities, pricing
API ReferenceComplete REST API docs
AgentsBuild and deploy managed agents
GuidesStreaming, errors, rate limits, billing
For AI ToolsMCP integration for coding agents
StoreBrowse all available models & APIs

Run locally ​

sh
npm ci
npm run dev      # Dev server at localhost:5173
npm run build    # Production build
npm run preview  # Preview build locally

Deploy ​

sh
docker build -t sandbase-docs .
docker run -p 80:80 sandbase-docs

License ​

Apache-2.0

Contributing ​

Found a missing model, unclear example, or documentation bug? Open an issue or send a pull request. Small fixes are welcome.