cURL
curl https://api.apipod.ai/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $APIPOD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-mini",
"content": [
{"type": "text", "text": "分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5
}'import os
import requests
payload = {
"model": "seedance-2.0-mini",
"content": [
{"type": "text", "text": "分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5,
}
response = requests.post(
"https://api.apipod.ai/api/v3/contents/generations/tasks",
headers={
"Authorization": f"Bearer {os.environ['APIPOD_API_KEY']}",
"Content-Type": "application/json",
},
json=payload,
timeout=60,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apipod.ai/api/v3/contents/generations/tasks"
payload := strings.NewReader("{\n \"model\": \"seedance-2.0-mini\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}falseconst options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2.0-mini',
content: [{type: 'text', text: '分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。'}]
})
};
fetch('https://api.apipod.ai/api/v3/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "0f4c9f6e-1111-4c1d-8c2f-2b7b9a1c4d55",
"model": "seedance-2.0-mini"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Seedance 2.0 Mini
Seedance 2.0 Mini(兼容官方接口)
通过火山方舟兼容端点 /api/v3/contents/generations/tasks 创建 Seedance 2.0 Mini 视频任务。
POST
https://api.apipod.ai
/
api
/
v3
/
contents
/
generations
/
tasks
cURL
curl https://api.apipod.ai/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $APIPOD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-mini",
"content": [
{"type": "text", "text": "分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5
}'import os
import requests
payload = {
"model": "seedance-2.0-mini",
"content": [
{"type": "text", "text": "分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5,
}
response = requests.post(
"https://api.apipod.ai/api/v3/contents/generations/tasks",
headers={
"Authorization": f"Bearer {os.environ['APIPOD_API_KEY']}",
"Content-Type": "application/json",
},
json=payload,
timeout=60,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apipod.ai/api/v3/contents/generations/tasks"
payload := strings.NewReader("{\n \"model\": \"seedance-2.0-mini\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}falseconst options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2.0-mini',
content: [{type: 'text', text: '分镜草稿:小猫对着镜头打哈欠,自然光,5 秒。'}]
})
};
fetch('https://api.apipod.ai/api/v3/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "0f4c9f6e-1111-4c1d-8c2f-2b7b9a1c4d55",
"model": "seedance-2.0-mini"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}把方舟 SDK 或客户端的 base URL 指向
https://api.apipod.ai/api/v3,即可用与火山官方完全一致的请求体创建本模型的任务。任务查询使用与官方同构的兼容查询接口。授权
Use your APIPod API key as a Bearer token in the Authorization header.
请求体
application/json
APIPod 公开模型 ID(all-in-one,场景由 content 推断)。
Allowed value:
"seedance-2.0-mini"输入内容列表。文本即提示词;无 role 或 role 为 first_frame/last_frame 的图片(最多 2 张)走图生视频;role 为 reference_image 的图片、参考视频与参考音频走全模态参考生视频。三种场景互斥,不可混用。参考素材上限:图 9 / 视频 3 / 音频 3。
Show child attributes
Show child attributes
视频分辨率。可选值随模型而定。
可用选项:
480p, 720p 生成视频的宽高比。
可用选项:
16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive 视频时长(秒),4 到 15,默认 5。
可用选项:
4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 是否生成与画面同步的音频。
工具配置。当前仅识别 web_search。
Show child attributes
Show child attributes
此页面对您有帮助吗?