Endpointy
| Metoda | Endpoint | Opis |
|---|---|---|
| POST | /api/v1/generateTask/seedance-1-5-pro | Utwórz zadanie generowania |
| GET | /api/v1/statusTask/seedance-1-5-pro | Sprawdź status zadania |
Uwierzytelnianie
Wszystkie żądania wymagają klucza API w nagłówku:Treść żądania
Parametry
async (polling) or callback (webhook)
Callback URL, required when request_type=callback (conditional)
Routing strategy: auto, value, or official
Model input parameters
text-to-video— Generate video from textimage-to-video— Generate video from image (supports 1-2 images for end frame control)
Przykład
Text-to-VideoOdpowiedź
POST /api/v1/generateTask/seedance-1-5-pro
ReturnstaskId on success for subsequent status queries.
Success:
GET /api/v1/statusTask/seedance-1-5-pro
Query task execution status and results viataskId.
Pola odpowiedzi statusu
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing
resultUrls array. Only present on success. Parse with JSON.parse().Error code. Only present when
state is failed. See Kody błędów.Human-readable error message. Only present when
state is failed.Task creation timestamp (Unix milliseconds).
Task completion timestamp (Unix milliseconds).
Processing duration in milliseconds.
Kody błędów
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
Limity rate
| Limit | Value |
|---|---|
| Requests | 10000 / minute |
| Concurrent tasks | 1000 |
429 error. Wait and retry.
Wskazówki
- Generation time:
- 4-second video: ~40-60 seconds
- 8-second video: ~60-90 seconds
- 12-second video: ~90-120 seconds
- Submit task, wait 50 seconds, then poll every 5 seconds
- Callback mode: Video generation takes time, strongly recommend using
callbackmode. - Video expiration: Result URLs are valid for 15 days. Download promptly.
- Content moderation: Prompts must comply with content safety guidelines.
- Audio generation: Seedance 1.5 Pro supports audio generation:
sound: true: Auto-generates matching ambient sounds and background musicsound: false: Generates silent video- Describe sound effects in prompt for better audio (e.g., “ocean waves”, “bird sounds”)
- End frame control:
image-to-videomode supports 2 images:- 1st image: Video start frame
- 2nd image: Video end frame
- Enables precise start/end control, ideal for transitions and scene changes
- Fixed lens:
fixed_lens: true: Camera stays still, ideal for product showcases, close-upsfixed_lens: false: Allows dynamic camera movement (dolly, pan, etc.)
- Resolution selection:
480p: Fast generation, for previews and social media720p: High quality, for most publishing scenarios
- Duration: Supports 4/8/12 second options, billed per second.
- Aspect ratio suggestions:
1:1: Square, for social media (default)16:9: Landscape, for traditional video platforms9:16: Portrait, for short video platforms21:9: Ultra-wide, for cinematic feel
- Prompt tips:
- Describe both visual and audio effects for better synchronization
- Specify camera movement (e.g., “slow dolly in”, “orbiting shot”)
- Describe dynamic elements (e.g., “drifting clouds”, “swaying leaves”)
- Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image.