Text to Video

doubao-seedance-2-mini

Draft model pending operator verification

Commercial useAsync API

API reference

Submit this model to the capability endpoint, then poll the returned job until it is terminal. Only the parameters below are accepted.

POST /v1/videos/generations

Required headers

Authorization: Bearer $ARTANY_API_KEY
Content-Type: application/json
Idempotency-Key: unique-request-id

Use a new 8–128 character Idempotency-Key for each logical generation. Retrying the same request with the same key will not double-charge.

Request body

{
  "model": "doubao-seedance-2-mini",
  "prompt": "Ocean waves at sunrise",
  "duration": 5,
  "size": "16:9",
  "resolution": "720p",
  "generate_audio": false,
  "return_last_frame": false
}

Parameters

FieldTypeRequiredDescriptionDefaultConstraints
modelstringYesStable Artany public model ID.doubao-seedance-2-miniThis exact public model ID.
seedintegerNoOptional deterministic seed for reproducing a generation when the provider supports it.
sizestringNoRequested output image aspect ratio or canvas size. Available values are model-specific."16:9"Allowed: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive
promptstringNoNatural-language instruction describing the desired image or video. Include subject, setting, composition, motion, lighting, and style as needed.Length: 1–4000
durationintegerNoTarget generated video length in seconds. Available durations are model-specific and can affect price.5Range: 4–15
audio_urlsarray (string items)NoPublic audio URLs used as references when the selected workflow accepts multiple audio inputs.Items: 1–3
image_urlsarray (string items)NoPublic image URLs or supported image data used as source or reference images.Items: 1–9
resolutionstringNoRequested output quality tier. Available values are model-specific and can affect price."720p"Allowed: 480p, 720p
video_urlsarray (string items)NoPublic video URLs used as the source or reference video for a supported video workflow.Items: 1–3
generate_audiobooleanNoWhether to generate synchronized audio for this video when supported.falseAllowed: false, true
image_with_rolesarray (object items)NoRole-labelled reference images used by a model that supports character or subject consistency.Items: 1–9
return_last_framebooleanNoWhether to include the generated final frame in the completed job output.falseAllowed: false, true

Accepted response

The submit endpoint returns HTTP 202 with a normalized job. Poll GET /v1/jobs/{jobId} until the status is terminal.

{
  "id": "job_…",
  "object": "generation.job",
  "model": "doubao-seedance-2-mini",
  "status": "queued",
  "progress": 0,
  "output": null,
  "error": null,
  "billing": {
    "estimated_credits": "…",
    "frozen_credits": "…",
    "charged_credits": "0",
    "state": "frozen",
    "price_version": "…"
  },
  "created_at": "2026-07-21T00:00:00.000Z",
  "completed_at": null
}

Lifecycle and failures

  • queued / running — wait and poll again.
  • succeeded — read output URLs from output; the actual charge is settled.
  • failed / canceled — inspect error; frozen Credits are released.
  • For a schema error, the API returns an error object and identifies the invalid field in param when applicable.

Input

Runs are billed to your Credits at the listed price — same engine as the public API.

Output

Run the model to see results here

Integrate in minutes

curl -X POST "https://api.artany.ai/v1/videos/generations" \
  -H "Authorization: Bearer $ARTANY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-request-id" \
  -d '{"model":"doubao-seedance-2-mini","prompt":"Ocean waves at sunrise","duration":5,"size":"16:9","resolution":"720p","generate_audio":false,"return_last_frame":false}'

# poll until terminal
curl "https://api.artany.ai/v1/jobs/{job_id}" \
  -H "Authorization: Bearer $ARTANY_API_KEY"