curl https://www.anyfast.ai/volc/asset/CreateAsset \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "volc-asset",
"GroupId": "group-20260319072926-rrnmg",
"Name": "character-reference",
"AssetType": "Image",
"URL": "https://example.com/image.jpg",
"ProjectName": "default"
}'import requests
url = "https://www.anyfast.ai/volc/asset/CreateAsset"
payload = {
"GroupId": "group-20260319072926-rrnmg",
"AssetType": "Image",
"URL": "https://example.com/image.jpg",
"model": "volc-asset",
"Name": "character-reference",
"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({
GroupId: 'group-20260319072926-rrnmg',
AssetType: 'Image',
URL: 'https://example.com/image.jpg',
model: 'volc-asset',
Name: 'character-reference',
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([
'GroupId' => 'group-20260319072926-rrnmg',
'AssetType' => 'Image',
'URL' => 'https://example.com/image.jpg',
'model' => 'volc-asset',
'Name' => 'character-reference',
'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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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>"
}
}Create Image Asset
Upload an image to an existing asset group. Use the returned asset ID in supported Seedance requests after processing completes.
curl https://www.anyfast.ai/volc/asset/CreateAsset \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "volc-asset",
"GroupId": "group-20260319072926-rrnmg",
"Name": "character-reference",
"AssetType": "Image",
"URL": "https://example.com/image.jpg",
"ProjectName": "default"
}'import requests
url = "https://www.anyfast.ai/volc/asset/CreateAsset"
payload = {
"GroupId": "group-20260319072926-rrnmg",
"AssetType": "Image",
"URL": "https://example.com/image.jpg",
"model": "volc-asset",
"Name": "character-reference",
"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({
GroupId: 'group-20260319072926-rrnmg',
AssetType: 'Image',
URL: 'https://example.com/image.jpg',
model: 'volc-asset',
Name: 'character-reference',
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([
'GroupId' => 'group-20260319072926-rrnmg',
'AssetType' => 'Image',
'URL' => 'https://example.com/image.jpg',
'model' => 'volc-asset',
'Name' => 'character-reference',
'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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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 \"GroupId\": \"group-20260319072926-rrnmg\",\n \"AssetType\": \"Image\",\n \"URL\": \"https://example.com/image.jpg\",\n \"model\": \"volc-asset\",\n \"Name\": \"character-reference\",\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>"
}
}Authorizations
Bearer token authentication. Format Bearer <token> where <token> is your API Key.
Body
Asset group ID.
"group-20260319072926-rrnmg"
Asset type. Fixed value Image. Supported formats: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, and HEIF. Each image must be smaller than 30 MB, have an aspect ratio from 0.4 to 2.5, and have width and height from 300 to 6000 px.
Image "Image"
Image source. AnyFast accepts a publicly accessible URL, Data URI, or raw Base64 string. Avoid Base64 for large files.
"https://example.com/image.jpg"
Use volc-asset. For specific content requests, select volc-asset-nsfw under the Direct resource group.
volc-asset, volc-asset-nsfw "volc-asset"
Asset name, up to 64 characters. Used only for fuzzy search in ListAssets and not passed to model inference.
64"character-reference"
Project that owns the asset. Must match the ProjectName of the target asset group; omit it for the default project.
"default"
Response
The image was accepted for asynchronous processing. Poll GetAsset until Status becomes Active or Failed; upload-time SLA is not guaranteed. Image activation is typically 6–9 seconds in ideal conditions and may take about 10 seconds to 2 minutes when the review queue is congested.
Asset ID. After Status becomes Active, use asset://<ID> in Seedance requests instead of the temporary GetAsset URL.
"asset-20260320120147-pqwhc"
Was this page helpful?