Skip to content

Getting Started with SandBase

What is SandBase?

SandBase is an AI model routing platform that provides a unified API for accessing 1400+ large language models from providers like OpenAI, Anthropic, Google, DeepSeek, Meta, and more. Instead of integrating with each provider separately, you make a single API call to SandBase and it routes your request to the right model.

SandBase is fully compatible with the OpenAI and Anthropic SDKs — you can switch to SandBase by changing just one line of code (the base_url).

Key Features

Unified API Access

Access all major LLM providers through a single endpoint. No need to manage multiple API keys, handle different request formats, or deal with provider-specific quirks.

OpenAI & Anthropic API Compatibility

SandBase exposes two API-compatible endpoints:

  • OpenAI-compatible: POST /v1/chat/completions — works with the OpenAI Python and JavaScript SDKs
  • Anthropic-compatible: POST /v1/messages — works with the Anthropic Python and JavaScript SDKs

Smart Model Routing

SandBase intelligently routes requests based on model availability, provider health, and pricing. If one provider is down, your request automatically falls back to an alternative.

Agent Sandboxes

Spin up isolated execution environments for AI agents. SandBase provides an E2B-compatible sandbox API for running code, managing files, and executing commands in secure containers.

Pay-As-You-Go Pricing

No subscriptions or commitments. You pay only for the tokens you use, with transparent per-model pricing. Top up credits and start making requests immediately.

Prerequisites

Before you begin, you'll need:

  1. A SandBase account — Sign up at www.sandbase.ai
  2. An API key — Create one from the Console → API Keys page

Next Steps

Ready to make your first API call? Follow the quickstart guide to get up and running in under 5 minutes.
  • Quickstart — Make your first API call in 5 minutes
  • API Keys — Learn how to create and manage API keys
  • First API Call — Deep dive into request/response anatomy