API reference · Bytedance
bytedance/seed/v2/mini
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
bytedance/seed/v2/mini01
Input Schema
10 parameters · 1 required · 9 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The text prompt or question for the model. |
top_p | number | Optional | Nucleus 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 |
images | string[] | Optional | URLs of images for visual understanding. Supported formats: JPEG, PNG, WebP. A maximum of 6 images is supported. Any additional images will be ignored. |
videos | string[] | Optional | URLs 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. |
messages | object[] | Optional | Optional 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. |
thinking | string | Optional | Controls 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 |
temperature | number | Optional | Controls 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_prompt | string | Optional | Optional system prompt to guide the model's behavior. |
reasoning_effort | string | Optional | Controls 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_tokens | integer | Optional | Controls 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
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom 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"
