curl --request POST \
--url https://mvp.tryunsora.com/api/v1/catalog/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5",
"mode": "omni",
"inputs": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 8,
"generate_audio": true
},
"expectedCredits": 123
}
'import requests
url = "https://mvp.tryunsora.com/api/v1/catalog/generate"
payload = {
"model": "seedance-2.5",
"mode": "omni",
"inputs": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 8,
"generate_audio": True
},
"expectedCredits": 123
}
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: 'seedance-2.5',
mode: 'omni',
inputs: {
prompt: 'A red fox running through fresh snow at sunrise',
aspect_ratio: '9:16',
resolution: '720p',
duration: 8,
generate_audio: true
},
expectedCredits: 123
})
};
fetch('https://mvp.tryunsora.com/api/v1/catalog/generate', 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://mvp.tryunsora.com/api/v1/catalog/generate",
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' => 'seedance-2.5',
'mode' => 'omni',
'inputs' => [
'prompt' => 'A red fox running through fresh snow at sunrise',
'aspect_ratio' => '9:16',
'resolution' => '720p',
'duration' => 8,
'generate_audio' => true
],
'expectedCredits' => 123
]),
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://mvp.tryunsora.com/api/v1/catalog/generate"
payload := strings.NewReader("{\n \"model\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\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://mvp.tryunsora.com/api/v1/catalog/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/catalog/generate")
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\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"generation": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"mode": "<string>",
"modelId": "<string>"
},
"model": "<string>",
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}Generate
Start a video, image or motion-control generation with any model and every input it takes, priced live and charged when it’s queued.
curl --request POST \
--url https://mvp.tryunsora.com/api/v1/catalog/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5",
"mode": "omni",
"inputs": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 8,
"generate_audio": true
},
"expectedCredits": 123
}
'import requests
url = "https://mvp.tryunsora.com/api/v1/catalog/generate"
payload = {
"model": "seedance-2.5",
"mode": "omni",
"inputs": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 8,
"generate_audio": True
},
"expectedCredits": 123
}
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: 'seedance-2.5',
mode: 'omni',
inputs: {
prompt: 'A red fox running through fresh snow at sunrise',
aspect_ratio: '9:16',
resolution: '720p',
duration: 8,
generate_audio: true
},
expectedCredits: 123
})
};
fetch('https://mvp.tryunsora.com/api/v1/catalog/generate', 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://mvp.tryunsora.com/api/v1/catalog/generate",
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' => 'seedance-2.5',
'mode' => 'omni',
'inputs' => [
'prompt' => 'A red fox running through fresh snow at sunrise',
'aspect_ratio' => '9:16',
'resolution' => '720p',
'duration' => 8,
'generate_audio' => true
],
'expectedCredits' => 123
]),
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://mvp.tryunsora.com/api/v1/catalog/generate"
payload := strings.NewReader("{\n \"model\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\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://mvp.tryunsora.com/api/v1/catalog/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/catalog/generate")
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\": \"seedance-2.5\",\n \"mode\": \"omni\",\n \"inputs\": {\n \"prompt\": \"A red fox running through fresh snow at sunrise\",\n \"aspect_ratio\": \"9:16\",\n \"resolution\": \"720p\",\n \"duration\": 8,\n \"generate_audio\": true\n },\n \"expectedCredits\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"generation": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"mode": "<string>",
"modelId": "<string>"
},
"model": "<string>",
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}generation.id.
- Price guard: send
expectedCredits(for example the quote’scredits). If the live price is higher, nothing is charged and the response is409with codePRICE_CHANGEDand the new price incredits. - Outside media: URLs hosted outside Unsora are copied into your library first, up to 12 per request.
- Retries: send an
Idempotency-Keyheader so a retried request isn’t charged twice.
curl -X POST "https://mvp.tryunsora.com/api/v1/catalog/generate" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5",
"inputs": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"duration": 8,
"generate_audio": true
},
"expectedCredits": 64
}'
Authorizations
An Unsora API key (uns_…). A Clerk session token also works.
Headers
API key requests only. Retrying with the same key within 24 hours replays the first response (with the Idempotent-Replayed: true header) instead of charging again. The body isn't compared; reusing the key on a different endpoint returns 409 IDEMPOTENCY_CONFLICT. Keys over 128 characters are ignored.
128Body
Model key from GET /catalog. Older names listed in the model's legacyDbModels (e.g. veo, kling-pro, seedance_2.0) also work. Retired names such as wan, wan_2.6, gpt-image-1.5 and seedream-v5-lite are rejected here; only POST /videos/create and POST /image-generations/create translate them.
"seedance-2.5"
Optional guard: reject the request if the model is from another category.
video, image, motion-control Mode key from GET /catalog. Omit to pick it from the attached media.
"omni"
Inputs in the provider's field names, as listed by GET /catalog. Media fields take URLs; files hosted outside Unsora are imported into your library first. Omitted fields use the model's defaults.
{
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 8,
"generate_audio": true
}
The most credits you agree to spend (e.g. the quote's credits). If the live price is higher, nothing is charged and the API answers 409 PRICE_CHANGED.

