SandBase Official Native API
Provider-native model protocols, currently ByteDance Seedance content-generation tasks
Provider-native model protocols, currently ByteDance Seedance content-generation tasks
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sandbase-ai:sandbase-ai-official-native-api-api"
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.
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: 3.2.0
info:
title: SandBase Official Native 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: Official Native API
description: Provider-native model protocols, currently ByteDance Seedance content-generation tasks
paths:
/api/v3/contents/generations/tasks:
post:
operationId: createVolcengineContentsGenerationTask
tags:
- Official Native API
summary: Create a content generation task
description: Creates an asynchronous Seedance video generation task using the Volcengine Ark native request shape.
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineContentsGenerationRequest'
responses:
'200':
description: Task accepted
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineTaskCreated'
'400':
description: Invalid JSON, unsupported model or content mode, or rejected generation parameters
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'401':
description: Missing, invalid, revoked, or expired API key
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'402':
description: Organization balance and credit are exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'403':
description: API Key spending limit reached, organization disabled, or upstream permission rejected
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'404':
description: Model or upstream resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'429':
description: Provider rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'500':
description: Prediction lifecycle or provider error
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
/api/v3/contents/generations/tasks/{task_id}:
parameters:
- name: task_id
in: path
required: true
schema:
type: string
minLength: 1
description: Task ID returned by the create operation.
get:
operationId: getVolcengineContentsGenerationTask
tags:
- Official Native API
summary: Get a content generation task
security:
- BearerAuth: []
responses:
'200':
description: Current task state
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineTask'
'401':
description: Missing, invalid, revoked, or expired API key
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'402':
description: Organization balance and credit are exhausted
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'403':
description: API Key spending limit reached or organization disabled
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'404':
description: Task is unknown, deleted, not native, or not owned by the current API key
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
'500':
description: Task lookup failed
content:
application/json:
schema:
$ref: '#/components/schemas/VolcengineError'
components:
schemas:
VolcengineError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- type
properties:
code:
type: string
description: InvalidParameter, AuthenticationError, PermissionDenied, ResourceNotFound, RateLimitExceeded, or InternalServiceError.
message:
type: string
type:
type: string
description: HTTP-style Volcengine error type.
VolcengineTaskFailure:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
VolcengineTaskCreated:
type: object
required:
- id
properties:
id:
type: string
VolcengineContentsGenerationRequest:
type: object
required:
- model
- content
additionalProperties: true
properties:
model:
type: string
enum:
- doubao-seedance-2-0-260128
- doubao-seedance-2-0-fast-260128
- doubao-seedance-2-5-260628
content:
type: array
minItems: 1
description: Must include text. Media items select image-to-video or reference-to-video mode according to role.
items:
$ref: '#/components/schemas/VolcengineContentItem'
callback_url:
type: string
minLength: 1
description: Receives the terminal task response.
duration:
type: integer
resolution:
type: string
ratio:
type: string
generate_audio:
type: boolean
seed:
type: integer
camera_fixed:
type: boolean
watermark:
type: boolean
draft:
type: boolean
return_last_frame:
type: boolean
service_tier:
type: string
execution_expires_after:
type: integer
frames:
type: integer
framespersecond:
type: integer
tools:
type: array
items:
type: object
additionalProperties: true
VolcengineTask:
type: object
required:
- id
- model
- status
- created_at
- updated_at
- content
- usage
additionalProperties: true
properties:
id:
type: string
model:
type: string
status:
type: string
enum:
- queued
- running
- cancelled
- succeeded
- failed
- expired
created_at:
type: integer
format: int64
description: Unix timestamp in seconds.
updated_at:
type: integer
format: int64
description: Unix timestamp in seconds.
content:
type: object
properties:
video_url:
type: string
last_frame_url:
type: string
file_url:
type: string
usage:
type: object
required:
- prompt_tokens
- completion_tokens
- total_tokens
- prompt_tokens_details
- completion_tokens_details
properties:
prompt_tokens:
type: integer
minimum: 0
completion_tokens:
type: integer
minimum: 0
total_tokens:
type: integer
minimum: 0
prompt_tokens_details:
type: object
additionalProperties: true
completion_tokens_details:
type: object
additionalProperties: true
error:
$ref: '#/components/schemas/VolcengineTaskFailure'
failure_reason:
$ref: '#/components/schemas/VolcengineTaskFailure'
VolcengineContentItem:
type: object
required:
- type
additionalProperties: true
properties:
type:
type: string
enum:
- text
- image_url
- video_url
- audio_url
text:
type: string
image_url:
oneOf:
- type: string
- type: object
required:
- url
properties:
url:
type: string
video_url:
oneOf:
- type: string
- type: object
required:
- url
properties:
url:
type: string
audio_url:
oneOf:
- type: string
- type: object
required:
- url
properties:
url:
type: string
role:
type: string
enum:
- first_frame
- last_frame
- reference_image
- reference_video
- reference_audio
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.