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-responses-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 Responses 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: Responses
description: OpenAI-compatible Responses API
paths:
/v1/responses:
post:
operationId: createResponse
tags:
- Responses
summary: Create a model response
description: 'OpenAI-compatible Responses API endpoint. SandBase validates model and stream for routing, rewrites model to the selected provider mapping, and preserves other request fields. Responses are rebuilt from public OpenAI fields: unknown provider, routing, account, and billing extensions are removed. Unsafe responses fail closed instead of being forwarded.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ResponsesRequest'
responses:
'200':
description: OpenAI-compatible response object or event stream from the selected provider.
content:
application/json:
schema:
$ref: '#/components/schemas/ResponsesResponse'
text/event-stream:
schema:
type: string
description: Sanitized OpenAI Responses events. Public response.* and error events are forwarded; unknown private events and non-public event fields are removed. A malformed stream closes without forwarding unsafe data.
'400':
description: Invalid JSON, missing model, no provider, or upstream request rejected
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionError'
'401':
description: Missing or invalid API key, or upstream authentication rejection
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TaskCostError'
- $ref: '#/components/schemas/ChatCompletionError'
'402':
description: Organization or API Key spending limit reached
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TaskCostError'
- $ref: '#/components/schemas/ChatCompletionError'
'403':
description: API key scope or upstream permission rejection
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TaskCostError'
- $ref: '#/components/schemas/APIKeyScopeError'
- $ref: '#/components/schemas/ChatCompletionError'
'413':
description: Upstream provider rejected the request as too large
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionError'
'500':
description: Prediction lifecycle or organization lookup failed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ChatCompletionError'
- $ref: '#/components/schemas/TaskCostError'
'502':
description: Upstream response could not be safely parsed and sanitized
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionError'
'503':
description: Routing failed or every provider candidate was exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionError'
components:
schemas:
ResponsesRequest:
type: object
required:
- model
additionalProperties: true
description: OpenAI-compatible request. SandBase rewrites model for the selected provider and preserves other fields.
properties:
model:
type: string
description: Model identifier from the Models API.
input:
description: Text, message items, or other input supported by the selected model and provider.
instructions:
type: string
stream:
type: boolean
default: false
description: Return sanitized OpenAI Responses Server-Sent Events.
background:
type: boolean
include:
type: array
items:
type: string
max_output_tokens:
type: integer
minimum: 1
max_tool_calls:
type: integer
minimum: 1
metadata:
type: object
additionalProperties: true
parallel_tool_calls:
type: boolean
previous_response_id:
type: string
reasoning:
type: object
additionalProperties: true
service_tier:
type: string
store:
type: boolean
temperature:
type: number
text:
type: object
additionalProperties: true
tool_choice:
oneOf:
- type: string
- type: object
additionalProperties: true
tools:
type: array
items:
type: object
additionalProperties: true
top_logprobs:
type: integer
top_p:
type: number
truncation:
type: string
user:
type: string
APIKeyScopeError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
const: insufficient_scope
message:
type: string
request_id:
type: string
ResponsesResponse:
type: object
additionalProperties: false
description: Public OpenAI Responses fields retained by SandBase. Provider-specific top-level fields are removed; output items remain provider-compatible free-form objects.
properties:
id:
type: string
object:
type: string
created_at:
type: integer
status:
type: string
error:
type:
- object
- 'null'
additionalProperties: true
incomplete_details:
type:
- object
- 'null'
additionalProperties: true
instructions:
type:
- string
- 'null'
max_output_tokens:
type:
- integer
- 'null'
max_tool_calls:
type:
- integer
- 'null'
model:
type: string
output:
type: array
items:
type: object
additionalProperties: true
parallel_tool_calls:
type: boolean
previous_response_id:
type:
- string
- 'null'
reasoning:
type:
- object
- 'null'
additionalProperties: true
store:
type: boolean
temperature:
type:
- number
- 'null'
text:
type: object
additionalProperties: true
tool_choice: {}
tools:
type: array
items:
type: object
additionalProperties: true
top_logprobs:
type: integer
top_p:
type:
- number
- 'null'
truncation:
type: string
usage:
type: object
additionalProperties: false
required:
- input_tokens
- output_tokens
- total_tokens
- input_tokens_details
- output_tokens_details
properties:
input_tokens:
type: integer
minimum: 0
output_tokens:
type: integer
minimum: 0
total_tokens:
type: integer
minimum: 0
input_tokens_details:
type: object
additionalProperties: false
required:
- cached_tokens
properties:
cached_tokens:
type: integer
minimum: 0
output_tokens_details:
type: object
additionalProperties: false
required:
- reasoning_tokens
properties:
reasoning_tokens:
type: integer
minimum: 0
metadata:
type: object
additionalProperties: true
service_tier:
type: string
user:
type: string
background:
type: boolean
TaskCostError:
type: object
required:
- error
properties:
error:
type: string
ChatCompletionError:
type: object
required:
- error
properties:
error:
type: object
required:
- message
- type
- code
- param
properties:
message:
type: string
type:
type: string
code:
type:
- 'null'
- string
param:
type:
- 'null'
- 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.