الانتقال إلى المحتوى الرئيسي
POST
/api/v1/video/queue
استدعِ /video/quote للحصول على تقدير للسعر، ثم استعلِم /video/retrieve باستخدام الـ queue_id المُعاد حتى يكتمل. تُعيد بعض النماذج أيضًا download_url للفيديو النهائي. تحقّق مما إذا كان موجودًا في الاستجابة؛ فإن لم يكن موجودًا، فاحصل على الفيديو من /video/retrieve. download_url هو عنوان URL للتسليم قصير الأمد (لا بأس بإعادة المحاولة بضع مرات في حال انقطع التنزيل)؛ راجع دليل توليد الفيديو للتفاصيل وDELETE الاختيارية للخصوصية.

Seedance 2.0 و 2.5

بالنسبة لنماذج seedance-2-0-*-basic و seedance-2-5-*-basic (text-to-video، image-to-video، reference-to-video، بالإضافة إلى متغيرات -fast-* لـ Seedance 2.0)، راجع دليل Seedance 2.0 و 2.5 لنموذج التدفقات الأربعة (Reference / Edit / Extend / Stitch)، وقيم aspect_ratio / duration المتطابقة مع المصدر، وإعداد bitrate_mode القابل للضبط من قِبل المستخدم، وحدود الإدخال متعدد الوسائط الخاصة بكل عائلة، وسياسة وسائط واجهة برمجة التطبيقات العامة، وتفاصيل التسعير.

سياسة وسائط Seedance العامة

لا تستخدم نماذج Seedance العامة إثباتات الموافقة (consents.seedance / needs_consent). قد يتم رفض الوسائط التي تحتوي على أشخاص يمكن اكتشافهم من قِبل الطبقات الأعلى. استخدم تطبيق Venice أو Studio للحصول على مجموعة ميزات Seedance الكاملة. راجع دليل Seedance للتفاصيل.

تكبير الفيديو

لنموذج topaz-video-upscale، استخدم upscale_factor (1 أو 2 أو 4) بدلًا من resolution، وقدّم video_url. يتم اكتشاف المدة و FPS تلقائيًا من ملف الفيديو. راجع دليل تكبير الفيديو للحصول على التفاصيل والأمثلة الكاملة.

التفويضات

Authorization
string
header
مطلوب

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

الجسم

application/json

Request body for video generation. Available fields and valid values vary by model.

model
string
مطلوب

The model to use for video generation.

مثال:

"seedance-2-0-text-to-video-basic"

duration
enum<string>
مطلوب

The duration of the video to generate. Available options vary by model. For Seedance 2.5 reference-to-video edit jobs, -1 or auto matches output length to the source clip (requires reference_video_urls on queue, or reference_video_total_duration on quote; source must be 4–30s).

الخيارات المتاحة:
1s,
2s,
3s,
4s,
5s,
6s,
7s,
8s,
9s,
10s,
11s,
12s,
13s,
14s,
15s,
16s,
17s,
18s,
19s,
20s,
21s,
22s,
23s,
24s,
25s,
26s,
27s,
28s,
29s,
30s,
-1,
1 gen,
auto,
Auto
مثال:

"10s"

consents
object

Optional provider-specific consent attestations. Required only for models that return a needs_consent response.

prompt
string

The prompt to use for video generation. Required for most models; optional for H3 Max Multi-Angle. The maximum length varies by model (default 2500 characters, up to 32000 for some models).

Required string length: 1 - 32000
مثال:

"Commerce being conducted in the city of Venice, Italy."

negative_prompt
string

Optional negative prompt. The maximum length varies by model (default 2500 characters, up to 32000 for some models).

Maximum string length: 32000
مثال:

"low resolution, error, worst quality, low quality, defects"

aspect_ratio
enum<string>

The aspect ratio of the video. Available options vary by model. Some models do not support aspect_ratio. For Seedance 2.x reference-to-video edit/extend, adaptive or auto matches output aspect ratio to the source clip (requires reference_video_urls on queue, or reference_video_total_duration on quote).

الخيارات المتاحة:
1:1,
2:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
9:21,
16:9,
21:9,
adaptive,
auto
مثال:

"16:9"

omni_reference_task_type
enum<string>

Optional Seedance 2.5 reference-to-video task-type hint forwarded to BytePlus (auto | reference | edit | extend). Aliases editing→edit and extension→extend are accepted on the queue API. Pre-guides classification to reduce async TaskTypeConstraint errors. The prompt must still match the chosen type. When omitted, Venice infers from the prompt if reference_video_urls are present. Not supported on other models.

الخيارات المتاحة:
auto,
reference,
edit,
extend
مثال:

"edit"

resolution
enum<string>

The resolution of the video. Available options vary by model. Some models do not support resolution. Use upscale_factor for upscale models.

الخيارات المتاحة:
256p,
360p,
480p,
540p,
580p,
720p,
768p,
1080p,
1440p,
2160p,
2k,
4k,
1x,
2x,
4x,
2K,
480P,
768P,
1080P,
true_1080p
مثال:

"720p"

upscale_factor
enum<integer>
افتراضي:2

For upscale models only. 1 = quality enhancement, 2 = double resolution (default), 4 = quadruple.

الخيارات المتاحة:
1,
2,
4
مثال:

2

enhancement_model
string

For enhancement models only. The provider-side enhancement model. Available values are listed per model in GET /models constraints.topaz.models.

مثال:

"Proteus"

target_fps
integer

For enhancement models only. Target FPS for frame interpolation (16-120). Doubles the price on upscaling endpoints when ≥48; scales linearly on interpolation. Omit to keep the source frame rate.

مثال:

60

softness
number

For enhancement models only. Softness level (1-5, sharpest to softest).

النطاق المطلوب: 1 <= x <= 5
مثال:

3

creativity
number

For enhancement models only. How much new detail the model invents (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

realism
number

For enhancement models only. Bias generated detail toward photorealism (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

sharp
number

For enhancement models only. Output sharpness (0.0 softens, 0.5 neutral, 1.0 strong).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

compression
number

For enhancement models only. Compression artifact removal level (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

noise
number

For enhancement models only. Noise reduction level (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

halo
number

For enhancement models only. Halo reduction level (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

grain
number

For enhancement models only. Film grain amount (0.0-0.1).

النطاق المطلوب: 0 <= x <= 0.1
مثال:

0

recover_detail
number

For enhancement models only. Recover original detail level (0.0-1.0).

النطاق المطلوب: 0 <= x <= 1
مثال:

0.5

h264_output
boolean

For enhancement models only. Output H.264 instead of the default H.265.

مثال:

false

output_format
enum<string>

For enhancement models only (SDR-to-HDR). Output container: mp4 (10-bit H265 HDR10) or prores (10-bit ProRes).

الخيارات المتاحة:
mp4,
prores
مثال:

"mp4"

slowdown_factor
enum<integer>

For enhancement models only (frame interpolation). Slow-motion factor: 2 makes the output twice as long at the target FPS, up to 8x. Multiplies the billed duration.

الخيارات المتاحة:
1,
2,
4,
8
مثال:

1

audio
boolean
افتراضي:true

For models which support audio generation and configuration. Defaults to true.

مثال:

true

hdr
boolean

When true, generate HDR. Defaults to false. Returns 400 when the model does not support HDR or the resolution is not listed in GET /models constraints.hdrResolutions.

مثال:

false

camera_trajectory
object[]

For H3 Max Multi-Angle only. 2–12 camera keyframes with strictly increasing normalized time (0–1), azimuth in degrees (signed; total absolute travel at most 32 turns), elevation in degrees (−90 to 90), and positive distance relative to the initial camera (1 = unchanged). Omit to leave the camera path to the model. Requires image_url; aspect ratio follows that image.

Required array length: 2 - 12 elements
مثال:
image_url
string

For image-to-video models, the reference image. Must be a URL (http/https) or a data URL (data:image/...).

مثال:

"data:image/png;base64,iVBORw0K..."

end_image_url
string

For models that support end images or transitions, the end frame image. Must be a URL or data URL.

مثال:

"data:image/png;base64,iVBORw0K..."

image_strength
number

How strongly the input image guides an image-to-video generation, from 0 to 1. Supported on models that declare image strength. Omitted values use the provider default (1). Does not change the quoted price.

النطاق المطلوب: 0 <= x <= 1
مثال:

1

audio_url
string

For models that support audio input, background music. Must be a URL or data URL. Supported: WAV, MP3. Max: 30s, 15MB.

مثال:

"data:audio/mpeg;base64,SUQzBAA..."

video_url
string

For models that support video input (video-to-video, upscale). Must be a URL or data URL. Supported: MP4, MOV, WebM.

مثال:

"data:video/mp4;base64,AAAAFGZ0eXA..."

reference_image_urls
string[]

For models with reference image support, up to 30 images for character/style consistency. Each must be a URL or data URL.

Maximum array length: 30
مثال:
image_references
object[]

For models with reference image support, up to 30 reference images given as objects instead of plain URLs, so each one can have a type, a name in the prompt or its own voice. Wan 2.7 reference-to-video takes at most 5 reference images and videos combined.

Maximum array length: 30
مثال:
reference_video_urls
string[]

For models with reference video support (e.g. Seedance 2.0 R2V), up to 10 reference video URLs (role: "reference_video") used to inherit subject motion, camera movement, and overall style. Per-clip 2–15 s, .mp4 or .mov, ≤50 MB; aggregate duration ≤15 s. Each must be a URL or data URL.

Maximum array length: 10
مثال:
reference_audio_urls
string[]

For models with reference audio support (e.g. Seedance 2.0 R2V), up to 10 reference audio URLs (role: "reference_audio") used as donors for vocal timbre, narration, or sound effects. Per-clip 2–15 s, .wav or .mp3; aggregate duration ≤15 s. Must be paired with at least one reference image or reference video — audio-only Reference workflows are rejected at validation. Each must be a URL or data URL.

Maximum array length: 10
مثال:
video_references
object[]

For models whose GET /models constraints.per_reference_audio is true (e.g. Wan 2.7 reference-to-video), up to 5 reference clips, each with an optional voice for the person or character in it. Wan 2.7 takes at most 5 reference images and videos combined.

Maximum array length: 5
مثال:
reference_document_urls
string[]

For models with document / webpage Omni-Reference (Wan 3.0), up to 1 URL. Document files and public webpage URLs are fetched by Venice and forwarded as type: "file" (≤100 MB). Each must be a URL or data URL.

Maximum array length: 1
مثال:
elements
object[]

For models with advanced element support (e.g., Kling O3 R2V). Up to 4 elements defining characters/objects. Reference in prompt as @Element1, @Element2, etc.

Maximum array length: 4
مثال:
scene_image_urls
string[]

For models with advanced element support. Up to 4 scene reference images. Reference in prompt as @Image1, @Image2, etc.

Maximum array length: 4
مثال:
keyframes
object[]

For keyframe-driven models. Up to 10 keyframe images pinned to frame positions in the generated 24 fps video. Each frame_index must be unique and no greater than duration × 24.

Maximum array length: 10
مثال:
draft
boolean

Seedance 2.5 only (models with supportsDraftMode). Generate a fast 480p draft. The response includes draft_task_id; upgrade it to 1080p within 7 days by sending draft_task_id.

مثال:

false

draft_task_id
string<uuid>

Seedance 2.5 only. queue_id of your own draft to upgrade to 1080p. Duration, aspect ratio and audio follow the draft; media inputs are ignored. Cannot be combined with draft.

مثال:

"123e4567-e89b-12d3-a456-426614174000"

الاستجابة

Video generation request queued successfully

model
string
مطلوب

The ID of the model used for video generation.

مثال:

"video-model-123"

queue_id
string
مطلوب

The ID of the video generation request.

مثال:

"123e4567-e89b-12d3-a456-426614174000"

download_url
string

Pre-signed URL to download the completed video. Only present for VPS-backed models. When provided, the retrieve endpoint returns JSON status only (no video stream). Fetch this URL after status is COMPLETED to get the video/mp4 file. Valid for 24 hours.

is_draft
boolean

Present and true when this request is a draft.

مثال:

true

draft_task_id
string

Pass as draft_task_id on a new queue request to upgrade this draft to 1080p or 4k.

مثال:

"123e4567-e89b-12d3-a456-426614174000"

draft_expires_at
string

ISO timestamp after which the draft can no longer be upgraded.

مثال:

"2026-10-20T08:00:00.000Z"

can_upgrade_to_hd
boolean

Whether the draft can be upgraded to HD right now.

مثال:

false