curl https://www.anyfast.ai/volc/asset/CreateAsset \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "volc-asset-video",
"GroupId": "group-20260319072926-rrnmg",
"Name": "scene-clip",
"AssetType": "Video",
"URL": "https://example.com/video.mp4",
"ProjectName": "default"
}'
import requests
url = "https://www.anyfast.ai/volc/asset/CreateAsset"
payload = {
"model": "volc-asset-video",
"GroupId": "group-20260319072926-rrnmg",
"AssetType": "Video",
"URL": "https://example.com/video.mp4",
"Name": "scene-clip",
"ProjectName": "default"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'volc-asset-video',
GroupId: 'group-20260319072926-rrnmg',
AssetType: 'Video',
URL: 'https://example.com/video.mp4',
Name: 'scene-clip',
ProjectName: 'default'
})
};
fetch('https://www.anyfast.ai/volc/asset/CreateAsset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.anyfast.ai/volc/asset/CreateAsset",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'volc-asset-video',
'GroupId' => 'group-20260319072926-rrnmg',
'AssetType' => 'Video',
'URL' => 'https://example.com/video.mp4',
'Name' => 'scene-clip',
'ProjectName' => 'default'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.anyfast.ai/volc/asset/CreateAsset"
payload := strings.NewReader("{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\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))
}HttpResponse<String> response = Unirest.post("https://www.anyfast.ai/volc/asset/CreateAsset")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.anyfast.ai/volc/asset/CreateAsset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\n}"
response = http.request(request)
puts response.read_body{
"Id": "asset-20260320120147-pqwhc"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}创建视频素材
上传视频到已有素材组。处理完成后,可在支持的 Seedance 请求中使用返回的素材 ID。
curl https://www.anyfast.ai/volc/asset/CreateAsset \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "volc-asset-video",
"GroupId": "group-20260319072926-rrnmg",
"Name": "scene-clip",
"AssetType": "Video",
"URL": "https://example.com/video.mp4",
"ProjectName": "default"
}'
import requests
url = "https://www.anyfast.ai/volc/asset/CreateAsset"
payload = {
"model": "volc-asset-video",
"GroupId": "group-20260319072926-rrnmg",
"AssetType": "Video",
"URL": "https://example.com/video.mp4",
"Name": "scene-clip",
"ProjectName": "default"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'volc-asset-video',
GroupId: 'group-20260319072926-rrnmg',
AssetType: 'Video',
URL: 'https://example.com/video.mp4',
Name: 'scene-clip',
ProjectName: 'default'
})
};
fetch('https://www.anyfast.ai/volc/asset/CreateAsset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.anyfast.ai/volc/asset/CreateAsset",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'volc-asset-video',
'GroupId' => 'group-20260319072926-rrnmg',
'AssetType' => 'Video',
'URL' => 'https://example.com/video.mp4',
'Name' => 'scene-clip',
'ProjectName' => 'default'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.anyfast.ai/volc/asset/CreateAsset"
payload := strings.NewReader("{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\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))
}HttpResponse<String> response = Unirest.post("https://www.anyfast.ai/volc/asset/CreateAsset")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.anyfast.ai/volc/asset/CreateAsset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"volc-asset-video\",\n \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Video\",\n \"URL\": \"https://example.com/video.mp4\",\n \"Name\": \"scene-clip\",\n \"ProjectName\": \"default\"\n}"
response = http.request(request)
puts response.read_body{
"Id": "asset-20260320120147-pqwhc"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}授权
请求头鉴权,格式为 Bearer <token>,其中 <token> 为您的 API Key。
请求体
标准请求使用 volc-asset-video;对于特定内容请求,请选择 Direct 资源下的 volc-asset-video-nsfw。
volc-asset-video, volc-asset-video-nsfw "volc-asset-video"
素材组 ID。
"group-20260319072926-rrnmg"
素材类型,视频固定传 Video。支持 MP4、MOV;分辨率为 480p、720p、1080p 或 4K;时长 2–30 秒;宽高比 0.4–2.5;宽和高均为 300–6000 px;总像素数为 407696–2086876;单个视频不超过 200 MB;帧率 24–60 FPS。以上限制需同时满足。
Video "Video"
公共可访问的视频 URL,不支持视频 Base64。引用的视频文件必须满足 AssetType 中列出的视频限制。
"https://example.com/video.mp4"
素材名称,最长 64 个字符。仅用于 ListAssets 模糊搜索,不会带入模型推理。
64"scene-clip"
素材所属项目,必须与目标素材组的 ProjectName 一致;默认项目可省略。
"default"
响应
视频已进入异步处理流程。请轮询 GetAsset,直到 Status 变为 Active 或 Failed;接口不承诺上传时间 SLA。理想情况下视频通常需要 9–12 秒,审核队列拥塞时可能延迟约 10 秒到 2 分钟。
素材 ID。Status 变为 Active 后,在 Seedance 请求中使用 asset://<ID>,不要使用临时的 GetAsset URL。
"asset-20260320120147-pqwhc"
此页面对您有帮助吗?