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.5",
"content": [
{"type": "text", "text": "黄昏霓虹屋顶上的电影感无人机镜头,10 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 4
}'import os
import requests
payload = {
"model": "seedance-2.5",
"content": [
{"type": "text", "text": "黄昏霓虹屋顶上的电影感无人机镜头,10 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 4,
}
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.5\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"黄昏霓虹屋顶上的电影感无人机镜头,10 秒。\"\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.5',
content: [{type: 'text', text: '黄昏霓虹屋顶上的电影感无人机镜头,10 秒。'}]
})
};
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.5"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Seedance 2.5 折扣版
Seedance 2.5(兼容官方接口)
通过火山方舟兼容端点 /api/v3/contents/generations/tasks 创建 Seedance 2.5 视频任务,场景由 content 内容自动推断。
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.5",
"content": [
{"type": "text", "text": "黄昏霓虹屋顶上的电影感无人机镜头,10 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 4
}'import os
import requests
payload = {
"model": "seedance-2.5",
"content": [
{"type": "text", "text": "黄昏霓虹屋顶上的电影感无人机镜头,10 秒。"}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 4,
}
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.5\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"黄昏霓虹屋顶上的电影感无人机镜头,10 秒。\"\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.5',
content: [{type: 'text', text: '黄昏霓虹屋顶上的电影感无人机镜头,10 秒。'}]
})
};
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.5"
}{
"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.5"输入内容列表。文本即提示词;无 role 或 role 为 first_frame/last_frame 的图片(最多 2 张)走图生视频;role 为 reference_image 的图片、参考视频与参考音频走全模态参考生视频。三种场景互斥,不可混用。参考素材上限:图 30 / 视频 10 / 音频 10。
Show child attributes
Show child attributes
视频分辨率。可选值随模型而定。
可用选项:
480p, 720p, 1080p 生成视频的宽高比。
可用选项:
16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive 视频时长(秒),4 到 30,默认 4。
可用选项:
4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 是否生成与画面同步的音频。
此页面对您有帮助吗?