curl --request GET \
--url https://api.moda.app/v1/media/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.moda.app/v1/media/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moda.app/v1/media/models', 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.moda.app/v1/media/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moda.app/v1/media/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moda.app/v1/media/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/media/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"image_models": [
{}
],
"video_models": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"supports_generate_audio": true,
"generate_audio_default": true,
"generate_audio_controllable": true,
"supports_seed": true,
"modes": {
"text_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"image_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"reference_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"audio_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"video_extend": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"video_lipsync": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
}
},
"model_params": [
{
"id": "<string>",
"description": "<string>",
"type": "<string>",
"allowed_values": [
"<string>"
],
"minimum": 123,
"maximum": 123,
"max_length": 123,
"max_bytes": 123,
"modes": [
"<string>"
]
}
],
"max_prompt_chars": 123,
"max_prompt_bytes": 123
}
],
"video_model_ids": [
"<string>"
],
"audio_models": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"modes": {
"text_to_speech": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
},
"text_to_music": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
},
"text_to_sfx": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
}
},
"model_params": [
{
"id": "<string>",
"description": "<string>",
"type": "<string>",
"allowed_values": [
"<string>"
],
"allowed_integers": [
123
],
"minimum": 123,
"maximum": 123,
"default": "<string>",
"max_length": 123,
"modes": [
"<string>"
]
}
]
}
]
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}List Models
The model registry the model parameters validate against.
curl --request GET \
--url https://api.moda.app/v1/media/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.moda.app/v1/media/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moda.app/v1/media/models', 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.moda.app/v1/media/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moda.app/v1/media/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moda.app/v1/media/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/media/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"image_models": [
{}
],
"video_models": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"supports_generate_audio": true,
"generate_audio_default": true,
"generate_audio_controllable": true,
"supports_seed": true,
"modes": {
"text_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"image_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"reference_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"audio_to_video": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"video_extend": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
},
"video_lipsync": {
"aspect_ratios": [
"<string>"
],
"default_aspect_ratio": "<string>",
"resolutions": [
"<string>"
],
"default_resolution": "<string>",
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"supports_end_image": true,
"max_reference_images": 123,
"reference_videos": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"input_duration_billed": true,
"price_multiplier": 123,
"input_duration_price_multiplier": 123
},
"reference_audios": {
"max_count": 123,
"min_seconds_each": 123,
"max_seconds_each": 123,
"max_total_seconds": 123,
"requires_visual_reference": true,
"accepted_container_types": [
"<string>"
]
},
"max_reference_inputs_total": 123,
"generate_audio_controllable": true,
"billing": {
"basis": "<string>",
"duration_quantity": "<string>",
"audio_priced_separately": true,
"higher_rate_resolutions": [
"<string>"
],
"input_seconds_priced_separately": true,
"higher_rate_durations": [
123
],
"reference_images_priced_separately": true,
"reference_images_included_before_surcharge": 123
},
"end_image_aspect_ratios": [
"<string>"
],
"end_image_default_aspect_ratio": "<string>",
"fixed_output_resolution": "<string>",
"end_image_duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"supports_auto": true,
"allowed_seconds": [
123
],
"controllable": true
},
"source_video": {
"min_seconds": 123,
"max_seconds": 123,
"max_area_pixels": 123,
"accepted_formats": [
"<string>"
],
"input_seconds_priced_separately": true,
"output_includes_source": true
},
"image_requirements": [
{
"roles": [
"<string>"
],
"accepted_formats": [
"<string>"
],
"max_bytes": 123,
"min_width": 123,
"min_height": 123,
"max_pixels": 123,
"min_aspect_ratio": 123,
"max_aspect_ratio": 123
}
]
}
},
"model_params": [
{
"id": "<string>",
"description": "<string>",
"type": "<string>",
"allowed_values": [
"<string>"
],
"minimum": 123,
"maximum": 123,
"max_length": 123,
"max_bytes": 123,
"modes": [
"<string>"
]
}
],
"max_prompt_chars": 123,
"max_prompt_bytes": 123
}
],
"video_model_ids": [
"<string>"
],
"audio_models": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"modes": {
"text_to_speech": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
},
"text_to_music": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
},
"text_to_sfx": {
"duration_seconds": {
"min_seconds": 123,
"max_seconds": 123,
"default": 123,
"billing_floor_seconds": 123,
"billing_granularity_seconds": 123,
"bills_measured_output": true
},
"voices": [
"<string>"
],
"voice_is_free_form": true,
"default_voice": "<string>",
"max_prompt_chars": 123,
"max_samples": 123,
"output_mime_types": [
"<string>"
],
"billing": {
"basis": "<string>"
}
}
},
"model_params": [
{
"id": "<string>",
"description": "<string>",
"type": "<string>",
"allowed_values": [
"<string>"
],
"allowed_integers": [
123
],
"minimum": 123,
"maximum": 123,
"default": "<string>",
"max_length": 123,
"modes": [
"<string>"
]
}
]
}
]
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}Authorizations
API key from Settings > Developer > REST API
Headers
Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.
2026-04-12, 2026-05-01 "2026-05-01"
Response
Successful Response
The model registry the model parameters validate against.
All three arrays serialize the same registries the generate verbs resolve against, so a capability stated here is a capability the request validator accepts — nothing is transcribed by hand.
Image model capability descriptors, for generate-image / edit-image.
Video model capability descriptors, for generate-video: per-mode aspect/resolution/duration envelopes, audio and seed support, input-image and reference limits, the validated model_params controls, and how each mode's cost is metered. Exact credit amounts are computed from the resolved request by the usage pipeline at the team's credit rate — the billing block reports the basis and the knobs that move it, not a flat price.
Show child attributes
Show child attributes
Deprecated: the same ids as video_models[].id. Kept one release for compatibility.
Audio model capability descriptors, for generate-audio: which of the three modes each model serves, and per mode the duration envelope, the full preset-voice menu, the prompt-character ceiling, the sample limit, and how the cost is metered. No deprecated id alias here — video's exists only because its bare-id array shipped first.
Show child attributes
Show child attributes