Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/sandbase-ai:sandbase-ai-messages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: SandBase Messages API
description: 'SandBase is an agent-native platform for connecting Agents to the real world.
Use one account and one key to call Models, ready-made APIs, and Agents.
## Authentication
Public API requests require a SandBase API key. Use `Authorization: Bearer sk-YOUR_KEY` by default.
Anthropic Messages and Google Gemini-compatible operations also document their native SDK-compatible key locations.
## SDK Compatibility
- **LLM Gateway** (`/v1/chat/completions`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Embeddings** (`/v1/embeddings`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Images** (`/v1/images/generations`, `/v1/images/edits`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Anthropic Messages** (`/v1/messages`): Use Anthropic SDK with `base_url="https://api.sandbase.ai"`
- **Google Gemini GenerateContent** (`/v1beta/models/{model}:generateContent`): Configure the Google Gen AI SDK to use `https://api.sandbase.ai`
- **Agents and Sessions** (`/v1/agents`, `/v1/agents/sessions`): Follow the OpenAI Agents protocol (`OpenAI-Beta: agents=v1` is optional) plus the documented SandBase extensions
- **Agents platform resources** (`/v1/agents*`, `/v1/mcp-connections*`, `/v1/secrets*`, `/v1/skills*`): Accept `Authorization: Bearer` or `X-API-Key` and return the `AgentsError` envelope'
version: 1.0.0
x-sandbase-session-contract:
status: active
feature: Agents platform Sessions
description: A Session (ses_*) runs one saved Agent version in a SandBase-hosted environment. Sessions are created directly with POST /v1/agents/sessions. Internal runtime identities are never exposed.
contact:
name: SandBase
url: https://www.sandbase.ai
license:
name: Proprietary
servers:
- url: https://api.sandbase.ai
description: Production
security:
- BearerAuth: []
tags:
- name: Messages
description: Anthropic-compatible Messages API
paths:
/v1/messages:
post:
operationId: createMessage
tags:
- Messages
summary: Create message (Anthropic compatible)
description: Anthropic Messages-compatible endpoint. SandBase uses model and stream for routing, maps the public model name to the selected provider, and otherwise preserves the compatible request and response protocol. Provider compatibility rules may remove or reject unsupported beta fields before an upstream attempt.
security:
- BearerAuth: []
- AnthropicApiKey: []
parameters:
- name: anthropic-version
in: header
required: false
description: Anthropic API version. Defaults to 2023-06-01 when omitted.
schema:
type: string
default: '2023-06-01'
example: '2023-06-01'
- name: anthropic-beta
in: header
required: false
description: Comma-separated Anthropic beta feature identifiers. Availability is provider-specific.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- max_tokens
- messages
additionalProperties: true
description: Anthropic-compatible request. Additional fields are preserved unless a selected provider's compatibility rules remove or reject them.
properties:
model:
type: string
example: claude-sonnet-5
max_tokens:
type: integer
example: 4096
messages:
type: array
items:
type: object
required:
- role
- content
additionalProperties: true
properties:
role:
type: string
enum:
- user
- assistant
content:
oneOf:
- type: string
- type: array
items:
type: object
additionalProperties: true
system:
oneOf:
- type: string
- type: array
items:
type: object
additionalProperties: true
temperature:
type: number
minimum: 0
maximum: 1
top_p:
type: number
minimum: 0
maximum: 1
top_k:
type: integer
minimum: 0
stop_sequences:
type: array
items:
type: string
stream:
type: boolean
default: false
metadata:
type: object
additionalProperties: true
tools:
type: array
items:
type: object
additionalProperties: true
tool_choice:
type: object
additionalProperties: true
thinking:
type: object
description: Extended thinking configuration when supported by the selected model.
additionalProperties: true
responses:
'200':
description: Anthropic message response or event stream from the selected provider
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicMessageResponse'
text/event-stream:
schema:
type: string
description: Anthropic SSE events, including provider-defined beta events and possible in-stream error events.
'400':
description: Invalid JSON, missing model, unsupported feature, or invalid provider request
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'401':
description: Missing, invalid, revoked, or expired API key
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'402':
description: Organization balance and credit are exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'403':
description: API Key spending limit reached, organization disabled, or upstream permission rejected
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'404':
description: Model or upstream resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'413':
description: Provider rejected the request as too large
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'429':
description: Provider rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'500':
description: Prediction lifecycle or provider error
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'502':
description: Upstream stream ended before usable content
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
'503':
description: Routing failed or all provider candidates were unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicError'
components:
schemas:
AnthropicMessageResponse:
type: object
additionalProperties: true
description: Anthropic-compatible response forwarded from the selected provider. Fields can vary with beta features.
properties:
id:
type: string
type:
type: string
const: message
role:
type: string
const: assistant
model:
type: string
content:
type: array
items:
type: object
additionalProperties: true
stop_reason:
type:
- string
- 'null'
stop_sequence:
type:
- string
- 'null'
usage:
type: object
additionalProperties: true
properties:
input_tokens:
type: integer
minimum: 0
output_tokens:
type: integer
minimum: 0
cache_read_input_tokens:
type: integer
minimum: 0
cache_creation_input_tokens:
type: integer
minimum: 0
cache_creation:
type: object
additionalProperties: true
properties:
ephemeral_5m_input_tokens:
type: integer
minimum: 0
ephemeral_1h_input_tokens:
type: integer
minimum: 0
AnthropicError:
type: object
required:
- type
- error
properties:
type:
type: string
const: error
error:
type: object
required:
- type
- message
additionalProperties: true
properties:
type:
type: string
description: Anthropic error type, such as invalid_request_error, authentication_error, permission_error, request_too_large, rate_limit_error, or api_error.
message:
type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: SandBase API key. Treat the complete credential as an opaque secret.
AnthropicApiKey:
type: apiKey
in: header
name: x-api-key
description: Supported only by `POST /v1/messages` for Anthropic SDK compatibility
GoogleApiKey:
type: apiKey
in: header
name: x-goog-api-key
description: Supported by Google Gemini-compatible endpoints. Takes precedence over the other key locations.
GoogleQueryApiKey:
type: apiKey
in: query
name: key
description: Google SDK compatibility fallback. Prefer x-goog-api-key or Authorization because URLs can be logged.
WebhookApiKey:
type: apiKey
in: header
name: X-API-Key
description: Accepted by the webhook Events API (/events/webhooks*). Authorization Bearer takes precedence when both are sent.
AgentsApiKey:
type: apiKey
in: header
name: X-API-Key
description: Accepted only by Agents platform resources (/v1/agents*, /v1/mcp-connections*, /v1/secrets*, /v1/skills*). If Authorization is also sent, both must carry the same key.