curl --request POST \
--url https://api.aurous-labs.com/v1/characters/uploads/init \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg"
}
'import requests
url = "https://api.aurous-labs.com/v1/characters/uploads/init"
payload = {
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: 'front-portrait.jpg', extension: 'jpg', content_type: 'image/jpeg'})
};
fetch('https://api.aurous-labs.com/v1/characters/uploads/init', 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.aurous-labs.com/v1/characters/uploads/init",
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([
'filename' => 'front-portrait.jpg',
'extension' => 'jpg',
'content_type' => 'image/jpeg'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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.aurous-labs.com/v1/characters/uploads/init"
payload := strings.NewReader("{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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.aurous-labs.com/v1/characters/uploads/init")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aurous-labs.com/v1/characters/uploads/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}"
response = http.request(request)
puts response.read_body{
"upload_id": "upl_01HXMQ7Z3K8Y2NABCDEFGHJKMR",
"upload_url": "https://aurous.storage/.../upload?signature=…",
"upload_headers": {
"Content-Type": "image/jpeg"
},
"expires_at": "2026-05-08T10:15:00Z"
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}Mint a character upload URL
Get a signed PUT URL for one character reference image.
curl --request POST \
--url https://api.aurous-labs.com/v1/characters/uploads/init \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg"
}
'import requests
url = "https://api.aurous-labs.com/v1/characters/uploads/init"
payload = {
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: 'front-portrait.jpg', extension: 'jpg', content_type: 'image/jpeg'})
};
fetch('https://api.aurous-labs.com/v1/characters/uploads/init', 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.aurous-labs.com/v1/characters/uploads/init",
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([
'filename' => 'front-portrait.jpg',
'extension' => 'jpg',
'content_type' => 'image/jpeg'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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.aurous-labs.com/v1/characters/uploads/init"
payload := strings.NewReader("{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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.aurous-labs.com/v1/characters/uploads/init")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aurous-labs.com/v1/characters/uploads/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"front-portrait.jpg\",\n \"extension\": \"jpg\",\n \"content_type\": \"image/jpeg\"\n}"
response = http.request(request)
puts response.read_body{
"upload_id": "upl_01HXMQ7Z3K8Y2NABCDEFGHJKMR",
"upload_url": "https://aurous.storage/.../upload?signature=…",
"upload_headers": {
"Content-Type": "image/jpeg"
},
"expires_at": "2026-05-08T10:15:00Z"
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}{
"error": {
"type": "invalid_request",
"code": "balance_too_low",
"message": "Team available balance is 1.5 credits, generation requires 2.0.",
"doc_url": "https://docs.aurous-labs.com/errors#balance_too_low",
"request_id": "req_01HXMQ7Z3K8Y2VNABCDEFGHJKM",
"param": "prompt"
}
}POST /v1/characters/uploads/init is the first step of the upload flow for creating a character. It returns a short-lived signed PUT URL plus an opaque upload_id. Upload your image bytes to that URL, then pass the upload_id to POST /v1/characters (or call POST /v1/characters/uploads/classify first to detect the pose).
You typically call this endpoint once per reference image. A character supports 1–6 refs.
When to use
- You already have ref images on disk or in your own storage and want to attach them to a new character without round-tripping bytes through your API.
- You want to capture pose metadata before committing the character (use
upload-classify).
generate: true + attributes to POST /v1/characters (the synthesize flow).
Lifecycle
POST /v1/characters/uploads/init→{ upload_id, upload_url, expires_at }.PUT <upload_url>with the image bytes (any well-formed PUT, no extra headers required).- Optional:
POST /v1/characters/uploads/classifywith the sameupload_idto detect the pose. POST /v1/characterswith{ upload_ids: [upl_..., ...] }to consume the uploads and create the character.
Example
# 1. Mint the URL
curl -X POST https://api.aurous-labs.com/v1/characters/uploads/init \
-H "X-Api-Key: $AUROUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg"
}'
# Response: {
# "upload_id": "upl_01H...",
# "upload_url": "https://...",
# "upload_headers": { "Content-Type": "image/jpeg" },
# "expires_at": "..."
# }
# 2. Upload the bytes (set every header from `upload_headers` on the PUT)
curl -X PUT "$UPLOAD_URL" \
-H "Content-Type: image/jpeg" \
--data-binary @ref-portrait.jpg
const init = await fetch("https://api.aurous-labs.com/v1/characters/uploads/init", {
method: "POST",
headers: {
"X-Api-Key": process.env.AUROUS_API_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
filename: "front-portrait.jpg",
extension: "jpg",
content_type: "image/jpeg",
}),
}).then((r) => r.json());
// Echo every header from `upload_headers` on the PUT so the storage
// layer accepts the upload without rewriting the Content-Type.
await fetch(init.upload_url, {
method: "PUT",
headers: init.upload_headers,
body: fs.readFileSync("./ref-portrait.jpg"),
});
console.log(init.upload_id); // pass to POST /v1/characters
import os, requests
init = requests.post(
"https://api.aurous-labs.com/v1/characters/uploads/init",
headers={"X-Api-Key": os.environ["AUROUS_API_KEY"]},
json={
"filename": "front-portrait.jpg",
"extension": "jpg",
"content_type": "image/jpeg",
},
).json()
# Echo every header from `upload_headers` on the PUT so the storage
# layer accepts the upload without rewriting the Content-Type.
with open("ref-portrait.jpg", "rb") as f:
requests.put(init["upload_url"], data=f.read(), headers=init["upload_headers"])
print(init["upload_id"])
Limits
- Rate limit: bucket
characters_post— 30 requests/min sustained, 60 burst per team. - Upload URL TTL: 15 minutes. Mint a fresh URL if the PUT lands later.
- Upload ticket TTL: 24 hours. After that the bytes are evicted and
upload_idis no longer accepted onPOST /v1/characters.
Common pitfalls
- The
upload_urlis not authenticated — the signature is in the query string. Do not addX-Api-Keyto the PUT. - One ticket = one image. Mint multiple tickets in parallel for multi-ref characters.
- Browsers may need a CORS-aware proxy in front of the PUT — the V1 surface targets server-side integrators and does not advertise CORS headers on the upload host.
Authorizations
Your team API key (starts with al_live_).
Headers
Optional API version pin (YYYY-MM-DD). Omit the header to receive the platform default, currently 2026-08-26.
^\d{4}-\d{2}-\d{2}$"2026-08-26"
Body
Original filename (used for Content-Disposition; not stored as the storage key).
1 - 120"front-portrait.jpg"
File extension. Must match content_type; mismatched combinations return 400.
jpeg, jpg, png, webp "jpg"
MIME type. Must match extension; mismatched combinations return 400.
image/jpeg, image/png, image/webp "image/jpeg"
Response
Upload ticket minted
Upload ticket ID. Use as upload_id on POST /v1/characters/uploads/classify and POST /v1/characters.
"upl_01HXMQ7Z3K8Y2NABCDEFGHJKMR"
Pre-signed PUT URL — upload bytes via HTTP PUT with the headers from upload_headers. The URL expires at expires_at.
"https://aurous.storage/.../upload?signature=…"
HTTP headers to include on the PUT request (Content-Type matches the request payload).
Show child attributes
Show child attributes
{ "Content-Type": "image/jpeg" }
Upload URL expiration (ISO 8601). Re-mint via /uploads/init if you need to retry past this point.
"2026-05-08T10:15:00Z"

