API reference · Bytedance

bytedance/seed/v2/mini

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

IMAGEAsyncOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDbytedance/seed/v2/mini
01

Input Schema

10 parameters · 1 required · 9 optional

ParameterTypeRequiredDescription
promptstringRequiredThe text prompt or question for the model.
top_pnumberOptionalNucleus sampling parameter. The model considers tokens with top_p cumulative probability mass. Lower values narrow the token selection. · Min: 0 · Max: 1 · Default: 0.7
imagesstring[]OptionalURLs of images for visual understanding. Supported formats: JPEG, PNG, WebP. A maximum of 6 images is supported. Any additional images will be ignored.
videosstring[]OptionalURLs of videos for video understanding. Supported formats: MP4, MOV. Audio comprehension is not supported. A maximum of 3 videos is supported. Any additional videos will be ignored.
messagesobject[]OptionalOptional prior conversation history for multi-turn conversations. Pass back the `messages` field from a previous response to provide context. The current `prompt`, `image_urls`, `video_urls`, and `system_prompt` are always appended as the latest user turn.
thinkingstringOptionalControls the model's chain-of-thought reasoning. `enabled` always includes reasoning, `disabled` never includes reasoning, `auto` lets the model decide based on the query. · Options: enabled, disabled, auto · Default: "enabled"
enableddisabledauto
temperaturenumberOptionalControls randomness in the response. Lower values make output more focused and deterministic, higher values make it more creative. · Min: 0 · Max: 2 · Default: 1
system_promptstringOptionalOptional system prompt to guide the model's behavior.
reasoning_effortstringOptionalControls the depth of reasoning before the model responds. Only applicable when `thinking` is `enabled` or `auto`. `minimal` for immediate response, `low` for faster response with light reasoning, `medium` for balanced speed and depth, `high` for deep analysis of complex issues. · Options: minimal, low, medium, high
minimallowmediumhigh
max_completion_tokensintegerOptionalControls the maximum length of the model's output, including both the model's response and its chain-of-thought content, measured in tokens. · Min: 1 · Max: 65536 · Default: 4096
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from the completed response
03

Code Examples

Ready-to-run snippets

# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "bytedance/seed/v2/mini",
  "top_p": 0.7,
  "prompt": "What can you do?",
  "thinking": "enabled",
  "temperature": 1,
  "max_completion_tokens": 4096
}'

# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
  -H "Authorization: Bearer YOUR_API_KEY"