# Bytedance | Seedance 2.5 Flash | Text to Video Seedance 2.5 Flash Text to Video generates videos from prompts with optional audio. Create social clips, ads and story concepts in 480p or 720p. ## API Information - **Model Slug:** bytedance-seedance-2-5-flash-text-to-video - **Branded URL:** https://www.eachlabs.ai/bytedance/seedance-2-5/bytedance-seedance-2-5-flash-text-to-video - **Provider:** ByteDance - **Category:** Text to Video - **Output Type:** video - **Status:** active - **Base Cost:** $0.077395–$0.17388 per second, depending on resolution - **Estimated Processing Time:** 150 seconds - **Interactive Demo:** https://www.eachlabs.ai/ai-models/bytedance-seedance-2-5-flash-text-to-video ## Pricing - **Charge Type:** dynamic - **Estimate:** $0.077395–$0.17388 per second, depending on resolution - **Pricing Details:** 480p: $0.0774 - **Pricing Details:** 720p (default): $0.1739 ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | prompt | string | Yes | - | - | Text prompt describing the video to generate. Recommended under 1000 words. English always supported; Seedance 2.5 Flash also supports Spanish, Indonesian, Portuguese, Japanese, Malay, Thai, Arabic, Vietnamese and Korean. Put spoken lines in double quotes for best speech results. | | resolution | string | No | 720p | 480p, 720p | Output resolution. 480p for faster/cheaper generation, 720p (default) for balanced quality. Higher resolutions consume more tokens and cost proportionally more. | | duration | string | No | auto | auto, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | Video duration in seconds. Seedance 2.5 Flash supports 4 to 30 seconds, or auto (default) to let the model pick the best length from the prompt. Longer durations consume more tokens and cost proportionally more. | | aspect_ratio | string | No | auto | auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Aspect ratio of the generated video. auto (default) maps to BytePlus adaptive selection and lets the model choose from the prompt. 16:9 landscape, 9:16 portrait/vertical, 1:1 square, 21:9 ultrawide cinematic, 4:3 and 3:4 classic. | | generate_audio | boolean | No | true | - | Whether the model generates synchronized audio (voice, sound effects, ambient sound, background music) matched to the visuals. true (default) produces an audio video; false produces a silent video. The cost is the same either way. | ## Example Request ```bash curl -X POST https://api.eachlabs.ai/v1/prediction/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "bytedance-seedance-2-5-flash-text-to-video", "input": { "prompt": "Photoreal cinematic film at dawn in Lisbon, soft blue fog, natural light. Shot 1 (0-4s): a quiet steep cobblestone street with pastel tiled facades and tram wires overhead; a baker in a white apron and long-sleeved shirt pulls up a metal shop shutter, then freezes and slowly looks up. Shot 2 (4-8s): low-angle wide shot looking straight up between the buildings: an enormous humpback whale glides slowly through the fog just above the rooftops, its long pectoral fins nearly brushing the chimneys, water droplets falling from its belly like light rain. Shot 3 (8-12s): street level, a few early commuters in coats stop on the sidewalk and stare upward, a child on a balcony points, the whale’s shadow passes over their faces as it drifts toward the river. Sound: deep resonant whale song echoing between the buildings, distant seagulls, a tram bell, soft gasps. Photorealistic, real textures, no text, no readable signs." } }' ``` ## Output Schema Response returned by `GET /v1/prediction/{id}` when the job completes: ```json { "status": "success", "predictionID": "string", "output": "string (URL of generated video)", "metrics": { "predict_time": "number (seconds)" } } ``` ## Polling ```bash curl https://api.eachlabs.ai/v1/prediction/{PREDICTION_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` | Status | Meaning | |--------|---------| | `processing` | Still running — poll again | | `success` | Done — read `output` | | `error` | Failed — read `message` / `details` | ## Webhook (alternative to polling) Pass `"webhook_url": "https://your.host/path"` in the create request. Eachlabs POSTs this payload when the job ends: ```json { "exec_id": "prediction-uuid", "status": "succeeded", "output": "https://...", "error": "" } ``` `status` is `"succeeded"` or `"failed"`. `exec_id` equals the `predictionID` from create. Return 2xx within 30 seconds. ## Errors Error body: `{ "status": "error", "message": "...", "details": "..." }` | Code | Meaning | |------|---------| | `400` | Invalid input | | `401` | Missing / invalid `Authorization` bearer token | | `404` | Unknown model or prediction id | | `429` | Rate limit — 100 creates / min, 10 concurrent per key | | `5xx` | Retry with backoff | ## Usage Notes - API Base URL: `https://api.eachlabs.ai/v1` - Authentication: send `Authorization: Bearer YOUR_API_KEY`. Generate a key from the Eachlabs dashboard at https://www.eachlabs.ai/dashboard/api-keys. - File-typed parameters (`*_url`, `image_url`, `video_url`, `audio_url`, etc.) accept publicly-reachable HTTPS URLs only. Upload your asset first (GCS / S3 / your CDN) and pass the resulting URL. Data-URIs and localhost URLs are rejected. - For structured parameters (arrays / objects) send real JSON values, not stringified payloads. - Monetary values are reported in USD; per-token / per-megapixel rates may be billed in micro-cents internally. - Prefer `webhook_url` over polling for long-running predictions — see the Webhook Callback section.