Register Provider Asset
curl --request POST \
--url https://api.modellix.ai/api/v1/media/providers/{provider}/assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://cdn.example.com/hero.png",
"type": "image"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://cdn.example.com/hero.png', type: 'image'})
};
fetch('https://api.modellix.ai/api/v1/media/providers/{provider}/assets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/media/providers/{provider}/assets"
payload = {
"url": "https://cdn.example.com/hero.png",
"type": "image"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/media/providers/{provider}/assets"
payload := strings.NewReader("{\n \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\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://api.modellix.ai/api/v1/media/providers/{provider}/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/media/providers/{provider}/assets';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://cdn.example.com/hero.png', type: 'image'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/media/providers/{provider}/assets",
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([
'url' => 'https://cdn.example.com/hero.png',
'type' => 'image'
]),
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;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/media/providers/{provider}/assets")
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 \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"url": "https://cdn.example.com/hero.png",
"type": "image"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/media/providers/{provider}/assets")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/media/providers/{provider}/assets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"url": "https://cdn.example.com/hero.png",
"type": "image"
}'{
"code": 0,
"message": "success",
"data": {
"provider": "bytedance",
"asset_id": "asset-20260624152850-mftbb",
"type": "image",
"name": "hero",
"status": "active"
}
}Register Provider Asset
Register a public HTTPS URL for the authenticated team. Only bytedance is supported. The call returns asset_id and status without waiting for moderation. When status is active, pass asset://<asset_id> in Seedance image and video fields. url may be a URL returned by the Media Files API. One request registers one asset.
Image and video files outside these limits are rejected by the provider.
- Image: jpeg, png, webp, tiff, gif, heic, or heif. Aspect ratio greater than 0.4 and less than 2.5. Width and height greater than 300 px and less than 6000 px. Smaller than 30 MB.
- Video: mp4 or mov. 480p, 720p, 1080p, or 4K. 2–30 seconds. Aspect ratio 0.4–2.5. Width and height 300–6000 px. Width × height 407,696–8,295,044. Up to 200 MB.
POST
/
api
/
v1
/
media
/
providers
/
{provider}
/
assets
Register Provider Asset
curl --request POST \
--url https://api.modellix.ai/api/v1/media/providers/{provider}/assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://cdn.example.com/hero.png",
"type": "image"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://cdn.example.com/hero.png', type: 'image'})
};
fetch('https://api.modellix.ai/api/v1/media/providers/{provider}/assets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/media/providers/{provider}/assets"
payload = {
"url": "https://cdn.example.com/hero.png",
"type": "image"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/media/providers/{provider}/assets"
payload := strings.NewReader("{\n \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\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://api.modellix.ai/api/v1/media/providers/{provider}/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/media/providers/{provider}/assets';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://cdn.example.com/hero.png', type: 'image'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/media/providers/{provider}/assets",
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([
'url' => 'https://cdn.example.com/hero.png',
'type' => 'image'
]),
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;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/media/providers/{provider}/assets")
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 \"url\": \"https://cdn.example.com/hero.png\",\n \"type\": \"image\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"url": "https://cdn.example.com/hero.png",
"type": "image"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/media/providers/{provider}/assets")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/media/providers/{provider}/assets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"url": "https://cdn.example.com/hero.png",
"type": "image"
}'{
"code": 0,
"message": "success",
"data": {
"provider": "bytedance",
"asset_id": "asset-20260624152850-mftbb",
"type": "image",
"name": "hero",
"status": "active"
}
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Path Parameters
Provider that owns the asset library. Only bytedance is supported.
Available options:
bytedance Example:
"bytedance"
Body
application/json
One public HTTPS URL with no userinfo. Maximum 2048 characters.
Maximum string length:
2048Example:
"https://cdn.example.com/hero.png"
Asset type. Case-sensitive.
Available options:
image, video, audio Optional display name. Maximum 64 characters. Blank is treated as omitted.
Maximum string length:
64