Create an asset
curl --request POST \
--url https://api.bitstudio.ai/v1/assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001"
}
'import requests
url = "https://api.bitstudio.ai/v1/assets"
payload = {
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001"
}
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({type: 'outfit', alias: 'Linen shirt', sku: 'SHIRT-001'})
};
fetch('https://api.bitstudio.ai/v1/assets', 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://api.bitstudio.ai/v1/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([
'type' => 'outfit',
'alias' => 'Linen shirt',
'sku' => 'SHIRT-001'
]),
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://api.bitstudio.ai/v1/assets"
payload := strings.NewReader("{\n \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\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.bitstudio.ai/v1/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitstudio.ai/v1/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 \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-4111-8111-111111111111",
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001",
"class": null,
"characteristics": null,
"description": null,
"display_image": null,
"created_at": "2026-09-15T12:00:00Z"
}{
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"cta": true,
"next_action": "<string>"
}Reusable assets
Create an asset
Set type and a human-readable alias.
POST
/
v1
/
assets
Create an asset
curl --request POST \
--url https://api.bitstudio.ai/v1/assets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001"
}
'import requests
url = "https://api.bitstudio.ai/v1/assets"
payload = {
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001"
}
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({type: 'outfit', alias: 'Linen shirt', sku: 'SHIRT-001'})
};
fetch('https://api.bitstudio.ai/v1/assets', 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://api.bitstudio.ai/v1/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([
'type' => 'outfit',
'alias' => 'Linen shirt',
'sku' => 'SHIRT-001'
]),
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://api.bitstudio.ai/v1/assets"
payload := strings.NewReader("{\n \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\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.bitstudio.ai/v1/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitstudio.ai/v1/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 \"type\": \"outfit\",\n \"alias\": \"Linen shirt\",\n \"sku\": \"SHIRT-001\"\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-4111-8111-111111111111",
"type": "outfit",
"alias": "Linen shirt",
"sku": "SHIRT-001",
"class": null,
"characteristics": null,
"description": null,
"display_image": null,
"created_at": "2026-09-15T12:00:00Z"
}{
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"cta": true,
"next_action": "<string>"
}Set
type and a human-readable alias. Use outfit for a product, model for an avatar, or another supported reusable reference type. Upload photos after creating the asset; display_image only sets its thumbnail.
Reusable asset workflow →Authorizations
Create an API key in Studio → account menu → API Keys. Keep it on your server.
Body
application/json
Reusable asset type. Required when creating; omit when updating.
Available options:
model, outfit, preset, pose, set, style Human-readable name.
Maximum string length:
50Product identifier for wardrobe items.
For presets: human_studio, human_location, ghost_mannequin, flat_lay, or product_packshot.
Description or reusable prompt.
Optional descriptive text.
Thumbnail URL only. Also upload or link reference images before generating.
Existing tag IDs.
Resource ID.