Dooflo Studio 中文 Pricing Open Studio
API & model guide

Which model, and what will it actually accept

This page is the reference for calling the Dooflo API: the exact model names you can pass, the output resolution each one produces, the price per second, the aspect ratios and duration limits, and what happens when your parameters don't fit. Everything here is enforced before we charge you — a rejected request never creates a task and never deducts credits.

~10 min read 6 video models Validation before billing
01

Quick start

Two minutes from zero to your first accepted request.

1 · Get an API key

1

Sign in and open the API page

Go to dooflo.com/openapi, or Advanced settings → API access in the left nav. Both manage the same set of keys.

2

Create a key

Click + Create API key and give it a name (used only to tell your keys apart).

3

Copy it now

Keys start with dfk_. This is the only time the full key is shown — store it somewhere safe. Paste the whole string, including the dfk_ prefix, into your client.

Send the key as Authorization: Bearer dfk_xxx. Every request below assumes this header.

2 · Check your key, then list the models

Make sure the key works and see the current model list before writing any generation code.

bashhealth check
export DOOFLO_API_KEY="dfk_your_key_here"

# who am I / credits left
curl -s https://dooflo.com/v1/me \
  -H "Authorization: Bearer $DOOFLO_API_KEY"

# the authoritative model list (always check this first)
curl -s https://dooflo.com/v1/models \
  -H "Authorization: Bearer $DOOFLO_API_KEY"

A 401 with invalid_key means the key was copied incompletely or has extra whitespace. A 403 with key_disabled means the key was revoked — create a new one.

The model list is the single source of truth. Model names, prices and resolution locks change as we add or retire models. Hard-coding them from this page is fine for reading, but call GET /v1/models at runtime if you need to stay correct across changes.
02

Model names

What to put in the model field, and what each one costs.

Video models

768P and 1080P are priced differently (6 vs 10 credits/sec). Because the API prices per model name, each model is split into a 768P name and a 1080P name — names containing -1080 or -1080p are the 1080P tier. Whichever name you pass is the price you pay.

Model nameOutputPriceAspect ratiosDurationReference media
minimaxh3-1768P6 credits/sec 16:9, 9:16, 21:9, 4:3, 1:1, 3:4 4–15s 1–9 images · ≤3 videos · ≤3 audios
audio ≤15s total, needs an image or video
minimaxh3-1-1080p1080P10 credits/sec same six 4–15s
21:9 capped at 10s
same (1–9 images / ≤3 videos / ≤3 audios)
minimaxh3-2768P6 credits/sec same six 4–30s
21:9 capped at 15s
up to 15s: 1–9 images / ≤3 videos / ≤3 audios
16–30s: 1 image only, no video or audio
minimaxh3-2-10801080P10 credits/sec same six 4–15s same as minimaxh3-2's up-to-15s tier
MiniMax-H3768P8 credits/sec 16:9, 9:16, 21:9, 4:3, 1:1, 3:4 4–15s 1–9 images / ≤3 videos / ≤3 audios
muse-video720P100 credits/video 16:9, 9:16, 1:1, 4:3, 3:4 20 / 30 / 40 / 50 / 60s only not supported
Three limits that catch people out (rejected, not silently changed, no credits deducted):
① minimaxh3-1 and -1080p stop at 15s. Need 16s or longer? Use minimaxh3-2 (768P).
② 1080P is capped at 15s, and 21:9 on 1080P is capped at 10s (21:9 on 768P allows 15s).
③ 720P only allows 16:9 / 9:16 — we default to 768P so you rarely hit this, but an explicit "resolution": "720p" with a square or 4:3 ratio is rejected.
Requesting a different resolution than the model's lock is an error, not a downgrade. minimaxh3-1 always outputs 768P. Pass "resolution": "1080p" and you get HTTP 400 resolution_not_available_for_model telling you to use the -1080p name instead. No task is created and no credits are charged.

This is deliberate: if we silently rendered your 1080P request at 768P, you would pay 1080P expectations and receive a 768P clip with no way to tell.

Reference images, videos and audio

POST /v1/videos accepts referenceImages, referenceVideos and referenceAudios arrays alongside prompt and model. Values are either an assetKey from your workspace library or a publicly reachable URL — the same resolution rules as the first-frame image field.

bash
curl -s https://dooflo.com/v1/videos \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimaxh3-1",
    "prompt": "have the character speak at the pace of the reference audio",
    "ratio": "16:9",
    "seconds": 8,
    "referenceImages": ["asset/img_a.jpg"],
    "referenceAudios": ["asset/voice_a.mp3"]
  }'
FieldLimit (H3 family)Notes
referenceImages1–9Multi-image reference / subject consistency; you can also use image as a single first frame
referenceVideos≤3Motion, camera or style reference
referenceAudios≤3 clips, ≤15s totalNever usable alone — pair with an image or video; each clip 2–15s
How to check what a given model supports: read architecture.input_modalities and the reference block on that model in GET /v1/models, e.g. "reference": {"images": {"min":1,"max":9}, "audios": {"min":0,"max":3}, "audio_seconds": {"total":15}}. Both are driven by the operator's API-model configuration, so what the API declares is what actually runs — no need to guess from docs.
Unsupported reference fields are rejected, not silently dropped. If a model declares no audio reference and you send referenceAudios, you get HTTP 400 {"error":{"code":"unsupported_parameter","param":"reference_audios", …}}. No task, no charge. Before 2026-11-27 these fields were dropped on the floor — that silent behaviour was the root cause of "it says unsupported even though the model supports it".

How pricing is reported

GET /v1/models returns a pricing object per model. For per-second models it includes credits_per_second and, when the model is locked to a resolution, a locked_resolution field at the top level:

jsonGET /v1/models — excerpt
{
  "id": "minimaxh3-1-1080p",
  "kind": "video",
  "locked_resolution": "1080P",
  "pricing": {
    "unit": "per_second",
    "credits_per_second": 10,
    "resolution": "1080P",
    "currency": "credits"
  }
}

Credits are deducted at submission and refunded in full if generation fails for any reason on our side.

03

Ratios, size and duration limits

The parameters that decide whether your request is accepted.

ratio vs size — two different parameters

This is the most common source of confusion. size is the OpenAI-style pixel dimension; ratio is our aspect-ratio key. We accept both, but they mean different things.

ParameterValuesNotes
ratio 16:9 · 9:16 · 21:9 · 4:3 · 1:1 · 3:4 Recommended. Maps 1:1 onto the model's capability whitelist
size 720x1280 · 1280x720 · 1024x1792 · 1792x1024 · 1024x1024 Legacy OpenAI style; converted to a ratio. Other dimensions are rejected.

Conversion: 720x1280 or 1024x1792 → 9:16; 1280x720 or 1792x1024 → 16:9; 1024x1024 → 1:1.

Omit both and the request is rejected with 400 video_ratio_required — we will not guess your aspect ratio. Previously we defaulted to 16:9, and users who selected 1:1 in their own client received a 16:9 clip while still being charged. The error lists the ratios the model supports, and no task is created, no credits deducted.

Constraint matrix — which combinations are rejected

These are hard upstream model limits. Every one of them is enforced on our side before submission, so anything we accept will not fail upstream for a parameter-combination reason.

Your requestResultReason / fix
4–30s · 768P · any supported ratio except 21:9✓ acceptedStandard combination
21–30s · 21:9 (H3 models)✗ rejected21:9 capped at 15s → shorten, or switch to 16:9 / 9:16
16–30s · 1080P✗ rejected1080P capped at 15s → use the 768P tier
Any duration > 30s or < 4s (H3 models)✗ rejectedH3 window is 4–30s
Explicit 720P · 1:1 / 4:3 / 3:4 / 21:9✗ rejected720P only allows 16:9 / 9:16
Duration > 15s · with reference images / video / audio✗ rejectedAbove 15s only 1 reference image, and no reference video/audio (see below)

Reference media limits (the one that surprises people)

Duration and reference media compete for the same budget. Above 15 seconds, the models accept far fewer reference assets:

ConditionReference imagesReference videoReference audio
Duration ≤ 15sup to 90 on minimaxh3-1 / -20 on minimaxh3-1 / -2
Duration 16–30sonly 1 (on minimaxh3-1)00
Want 30s with multiple reference images? Generate two 15s clips and join them, or drop to 15s or less.

This restriction only applies when reference media is attached. Pure text-to-video (0 images, 0 video, 0 audio) is unaffected — 30s at 9:16 is perfectly valid.
First/last frame counts as reference media. If you pass a first frame, the same duration-vs-count limits apply, and first frame cannot be combined with reference images.
04

Error handling

Every rejection explains the current value, the allowed value, and how to fix it.

Model and parameter error codes

These are returned immediately on POST /v1/videos. None of them create a task or charge credits.

CodeHTTPMeaning / what to do
video_ratio_required400No ratio and no usable size. Response lists the supported ratios for this model.
resolution_not_available_for_model400You requested a resolution the model is not locked to. Use the model name for that resolution.
video_capability_unsupported400Duration × reference-count × ratio combination not supported. Response includes violations[] with current and allowed values.
duration_over_tier_max400Duration exceeds this tier's maximum. Response includes data.maxDuration.
model_offline404This model name has been retired. Call GET /v1/models for the current list.
model_not_found404Unknown model name — check spelling against GET /v1/models.
json400 video_capability_unsupported — example
{
  "error": {
    "code": "video_capability_unsupported",
    "message": "At 30s the limit is 1 reference image. You supplied 8. How to fix: (1) drop the duration to 15s or less — up to 9 reference images are allowed there; (2) or keep only 1 reference image at 30s.",
    "type": "invalid_request_error",
    "param": "referenceImages",
    "hint": { "charged": false, "created_task": false },
    "allowedRatios": ["16:9", "9:16", "21:9", "4:3", "1:1", "3:4"]
  }
}

The violations array is machine-readable so you can surface the exact fix in your own UI instead of parsing prose.

Retired models

We retire model tiers when quality does not meet our bar — even if the upstream provider still serves them. A retired model:

1

Disappears from GET /v1/models

So newly written code cannot pick it.

2

Returns 404 model_offline if you call it directly

Distinct from model_not_found, so you can tell "retired" apart from "typo".

3

Never charges you

The check happens before any billing.

If you build against a model name, handle model_offline. Retiring a tier is an operational decision that can happen without notice; a 404 model_offline is your signal to fall back to another name from GET /v1/models.
05

Progress and ETA

What the progress number actually means.

progress is an estimate, not a frame-accurate upstream report — the upstream providers do not expose intermediate progress. We derive it from how long similar jobs actually took recently:

1

Average of the last hour

If at least 3 comparable jobs completed in the last 60 minutes, that average is used.

2

Otherwise the last 24 hours

If the last hour has no comparable jobs, the 24-hour average is used instead.

3

Otherwise a queue-derived or built-in default

New tiers with no history fall back to these, and say so via progressBasis.

So: progress climbs smoothly and stops at 95; it only reaches 100 when the job actually completes. If it runs longer than the estimate, it stays at 95 and sets overdue: true.

jsonGET /v1/videos/{id} — progress fields
{
  "status": "in_progress",
  "progress": 47,
  "etaSeconds": 130,
  "elapsedSeconds": 118,
  "progressBasis": "measured-1h",
  "samples": 12,
  "overdue": false
}

progressBasis tells you how the number was derived: measured-1h, measured-24h, queue-avg, or default. Use etaSeconds to decide polling cadence rather than polling blindly.

06

Endpoints

Two compatible surfaces, one key, one credit balance.

OpenAI-compatible

Point any OpenAI SDK at https://dooflo.com/v1 with your dfk_ key as the bearer token.

EndpointPurpose
GET /v1/modelsModel list with pricing and locked resolution
POST /v1/videosSubmit a video job
GET /v1/videos/{id}Poll status, progress and ETA
GET /v1/videos/{id}/contentDownload the finished clip
POST /v1/images/generationsGenerate images
POST /v1/chat/completionsText / reasoning
bashsubmit a 1080P 8s clip
curl -s -X POST https://dooflo.com/v1/videos \
  -H "Authorization: Bearer $DOOFLO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimaxh3-1-1080p",
    "prompt": "A slow dolly-in on a quiet Tokyo alley after rain",
    "seconds": "8",
    "ratio": "16:9"
  }'

Video jobs are asynchronous. Poll GET /v1/videos/{id} until status is completed, then download from the content endpoint.

Dooflo native contract

A job-shaped API with a richer error contract. Use this if you want structured validation details without the OpenAI envelope.

EndpointPurpose
POST /v1/jobsSubmit (requires Idempotency-Key)
GET /v1/jobs/{id}Status, progress, ETA
GET /v1/jobs/{id}/artifactsDownloads and long-lived asset keys
POST /v1/estimatePrice estimate — free, no task created
Use POST /v1/estimate while developing. It returns the requested vs effective parameters and any corrections we would apply, plus a notes[] array — without creating a task or charging credits. It is the fastest way to discover that a combination is invalid.

FAQ

The questions that come up most.

Why 768P and 1080P are separate model names

Because they are priced differently (6 vs 10 credits/sec) and the API prices per model name. One name can only carry one price, so each resolution gets its own name. This way the name you pass is the price you pay — no ambiguity about what a request will cost.

I want 30 seconds AND multiple reference images

Not possible on a single generation — above 15s the models accept only 1 reference image. Either generate two 15s clips and join them, or reduce to 15s or less where up to 9 reference images are allowed.

Can I keep using the old model name I hard-coded?

Check GET /v1/models. If the name is there, yes. If calling it returns 404 model_offline, that tier was retired — pick another name. Retired names are never silently remapped to a different model, because that would mean paying for one model and receiving another.

A request failed — was I charged?

Parameter validation errors (all the 400 codes above) never create a task and never charge. If a job is accepted and then fails during generation, credits are refunded in full automatically. Check GET /v1/me for your balance, and the job record carries refunded: true.

Where is the Chinese version of this page?

/tutorial is the full Chinese guide covering the studio UI, drama production and canvas in addition to the API. This English page focuses on the API contract and model capabilities.

Model names, prices and limits are a snapshot. GET /v1/models is authoritative — when this page and the API disagree, the API wins.