Disclosure: I'm on the Cuddler team and work on the Cuddler Platform API (https://platform.cuddler.ai) at HAKKO AI PTE. LTD. Cuddler's video studio is at https://cuddler.ai/studio. This post uses the API, so treat it as a vendor tutorial, not a neutral comparison.
If you want to try Seedance, Kling and Veo in the same pipeline, the annoying part is not the prompts. It is three accounts, three billing pages, three job formats and three sets of request fields. This post shows one way to cover all three behind a single key: the Cuddler Platform API. We call the same endpoint with three different model values, and handle the one real difference between them, which is that each model accepts a different set of request fields.
The code below is Node.js and Python. I ran the parts that need no key (reading the catalog and building each model's request body) against the live catalog; the create and poll calls follow the official quickstart and I did not run them with a live key for this post.
Everything below uses the public docs at https://platform.cuddler.ai/docs and the model catalog at https://api.cuddler.ai/v1/catalog. On 2026-11-26 the catalog listed 64 entries, 63 of them enabled: 29 video, 22 image, 8 speech and 4 music models.
What you need
- An organization and an API key from the console (https://platform.cuddler.ai/console). The docs say there is no application or approval step.
- A balance, for live jobs. A test key (
cud_sk_test_…) needs no balance but can only read the catalog, estimate prices and read your balance; it cannot start a video. - Node.js 18+ (built-in
fetch) or Python 3.10+ withrequests.
export CUDDLER_API_KEY="cud_sk_live_..." # keep it on the server
Step 1: see what each model accepts
The catalog needs no key:
curl -s https://api.cuddler.ai/v1/catalog \
| jq '.models[] | select(.id=="seedance-2.5" or .id=="kling-3.0" or .id=="veo-3.1")
| {id, min_duration, max_duration, resolutions, aspect_ratios, native_audio, request_fields}'
Read on 2026-11-26:
| Model | Duration | Resolutions | Aspect ratios | Request fields beyond model, prompt, duration, resolution, aspect_ratio
|
|---|---|---|---|---|
seedance-2.5 |
4–30 s | 480p, 720p, 1080p, 4K | 16:9, 9:16, 4:3, 3:4, 1:1, 21:9, adaptive | Seedance entries leave request_fields out; the docs list the Seedance fields separately |
kling-3.0 |
3–30 s | 720p, 1080p, 4K | 16:9, 9:16, 1:1, adaptive |
first_frame, last_frame, reference_images, reference_videos, generate_audio, character_orientation
|
veo-3.1 |
4–8 s | 720p, 1080p, 4K | 16:9, 9:16 |
first_frame, generate_audio
|
The detail that matters: POST /v1/videos rejects unknown fields with 400 invalid_request. So you cannot send one fat body to every model. Build the body from the model's own limits.
Step 2: price a job before you run it
The estimate takes the same model, duration, resolution and aspect ratio as a real job and never charges anything (a test key is enough):
curl https://api.cuddler.ai/v1/videos/estimate \
-H "Authorization: Bearer $CUDDLER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"veo-3.1","duration":8,"resolution":"720p","aspect_ratio":"16:9"}'
Seedance is billed per token and the other models per second of output, so the estimate response is the one place to compare cost across models for your own settings. I am leaving prices out of this post on purpose; they change, so read them from the estimate.
Step 3: one function, three models
Every create needs an Idempotency-Key header. If a request times out, resend it with the same key and body and you get the original job back, not a second one.
Node.js (ESM, saved as compare.mjs):
const API = "https://api.cuddler.ai/v1";
const headers = {
Authorization: `Bearer ${process.env.CUDDLER_API_KEY}`,
"Content-Type": "application/json",
};
// Public, no key: what each model accepts.
const catalog = await (await fetch(`${API}/catalog`)).json();
const byId = Object.fromEntries(catalog.models.map((m) => [m.id, m]));
function buildBody(modelId, prompt, wanted) {
const m = byId[modelId];
if (!m?.enabled) throw new Error(`${modelId} is not enabled`);
const duration = Math.min(Math.max(wanted.duration, m.min_duration), m.max_duration);
const resolution = m.resolutions.includes(wanted.resolution) ? wanted.resolution : m.resolutions[0];
const aspect_ratio = m.aspect_ratios.includes(wanted.aspect_ratio) ? wanted.aspect_ratio : m.aspect_ratios[0];
const body = { model: modelId, prompt, duration, resolution, aspect_ratio };
// Only send generate_audio where the catalog says the model takes it
// (Seedance entries have no request_fields, so check the docs for those).
if (m.request_fields?.includes("generate_audio")) body.generate_audio = true;
return body;
}
async function generate(body, idempotencyKey) {
const res = await fetch(`${API}/videos`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": idempotencyKey },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
let video = await res.json();
while (video.status === "queued" || video.status === "running") {
await new Promise((r) => setTimeout(r, 15000));
const poll = await fetch(`${API}/videos/${video.id}`, { headers });
if (!poll.ok) throw new Error(`${poll.status} ${await poll.text()}`);
video = await poll.json();
}
return video;
}
const prompt = "A paper boat drifts down a rain-filled street at dusk. Slow dolly in.";
const wanted = { duration: 8, resolution: "720p", aspect_ratio: "16:9" };
for (const modelId of ["seedance-2.5", "kling-3.0", "veo-3.1"]) {
const body = buildBody(modelId, prompt, wanted);
const video = await generate(body, `compare-${modelId}-take1`);
console.log(modelId, video.status, video.output?.url ?? video.error);
}
Python:
import os, time, requests
API = "https://api.cuddler.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['CUDDLER_API_KEY']}"}
catalog = requests.get(f"{API}/catalog", timeout=30).json()
by_id = {m["id"]: m for m in catalog["models"]}
def build_body(model_id, prompt, wanted):
m = by_id[model_id]
assert m["enabled"], f"{model_id} is not enabled"
duration = min(max(wanted["duration"], m["min_duration"]), m["max_duration"])
resolution = wanted["resolution"] if wanted["resolution"] in m["resolutions"] else m["resolutions"][0]
aspect = wanted["aspect_ratio"] if wanted["aspect_ratio"] in m["aspect_ratios"] else m["aspect_ratios"][0]
body = {"model": model_id, "prompt": prompt, "duration": duration,
"resolution": resolution, "aspect_ratio": aspect}
if "generate_audio" in (m.get("request_fields") or []):
body["generate_audio"] = True
return body
def generate(body, key):
r = requests.post(f"{API}/videos", json=body,
headers={**HEADERS, "Idempotency-Key": key}, timeout=60)
r.raise_for_status()
video = r.json()
while video["status"] in ("queued", "running"):
time.sleep(15)
video = requests.get(f"{API}/videos/{video['id']}", headers=HEADERS, timeout=30).json()
return video
prompt = "A paper boat drifts down a rain-filled street at dusk. Slow dolly in."
for model_id in ("seedance-2.5", "kling-3.0", "veo-3.1"):
v = generate(build_body(model_id, prompt, {"duration": 8, "resolution": "720p", "aspect_ratio": "16:9"}),
f"compare-{model_id}-take1")
print(model_id, v["status"], (v.get("output") or {}).get("url") or v.get("error"))
When status is succeeded, output.url is a signed download link valid for one hour; ask for the video again to get a fresh one. The file itself is kept for 30 days.
Things that bit me, or will bite you
-
Idempotency is required, not optional. A missing
Idempotency-Keyis a400. Reusing a key with a different body is a409. Use one key per logical request. -
Polling vs webhooks. Polling every 15 seconds is well inside the read limit (300 reads per minute per key). For many jobs, pass a
webhook_urland verify theCuddler-Signatureheader instead. - Concurrency is low by default. A new organization renders 2 videos at once, and queues up to 20 more; the number rises with top-ups (docs: https://platform.cuddler.ai/docs/limits.md). Writes are limited to 60 per minute per key.
-
Model retirement. A model the supplier has retired answers
410 model_retired. Read the catalog at startup, as above, rather than hard-coding a list. - It is not OpenAI-compatible. This is a native API with its own job objects. If you need an OpenAI-shaped endpoint, this is the wrong tool.
-
Agents. The same API is also a remote MCP server (
https://api.cuddler.ai/v1/mcp, Bearer key). A test key only sees the 8 tools that read or estimate, so an agent holding it can never spend.
Links
- Docs: https://platform.cuddler.ai/docs
- Quickstart: https://platform.cuddler.ai/docs/quickstart.md
- OpenAPI 3.1: https://api.cuddler.ai/v1/openapi.json
- Public catalog: https://api.cuddler.ai/v1/catalog
- SDKs:
npm install cuddler-platform,python -m pip install cuddler
Top comments (0)