# Seedance 2.0 Mini Image-to-Video Animate still images into 4 to 15 second clips with ByteDance Seedance 2.0 Mini on E2X for $0.045/s at 480p and $0.09/s at 720p (25% off), with native audio. ## API Information - **Provider:** bytedance - **Model Slug:** bytedance/seedance-2.0-mini/image-to-video - **Category:** image-to-video - **Status:** active - **Base Cost:** $0.045 per second - **List Price:** $0.06 per second - **Active Discount:** 25% off — already reflected in Base Cost above - **Estimated Processing Time:** 120 seconds ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | prompt | string | Yes | - | max 50000 chars | - | | image_url | string | Yes | - | uri | - | | resolution | string | No | 720p | 480p, 720p | Resolution | | duration | string | No | 5 | 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | Duration (seconds) | | has_sound | boolean | No | true | - | - | | seed | integer | No | - | min: 0 | - | ### Parameter Details #### `resolution` - Type: `string` - Required: No - Description: Resolution #### `duration` - Type: `string` - Required: No - Description: Duration (seconds) ## Required Parameters Example ```bash curl -X POST https://api.e2x.ai/v1/jobs/submit \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "bytedance/seedance-2.0-mini/image-to-video", "input": { "prompt": "Describe the scene in detail", "image_url": "https://example.com/image-url" } }' ``` ## Full Example ```bash curl -X POST https://api.e2x.ai/v1/jobs/submit \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "bytedance/seedance-2.0-mini/image-to-video", "input": { "prompt": "Describe the scene in detail", "image_url": "https://example.com/image-url", "resolution": "720p", "duration": "5", "has_sound": true, "seed": 0 } }' ``` ## JavaScript Fetch Example ```javascript const response = await fetch('https://api.e2x.ai/v1/jobs/submit', { method: 'POST', headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json', }, body: JSON.stringify({ "model": "bytedance/seedance-2.0-mini/image-to-video", "input": { "prompt": "Describe the scene in detail", "image_url": "https://example.com/image-url", "resolution": "720p", "duration": "5", "has_sound": true, "seed": 0 } }) }); const result = await response.json(); console.log(result); ``` ## Output Schema ```json {} ``` ## Job Polling After submitting, poll for the job status: ```bash curl https://api.e2x.ai/v1/jobs/{JOB_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` ### Status Values | Status | Description | |--------|-------------| | `pending` | Job submitted, waiting in queue | | `processing` | Job is being processed by a worker | | `completed` | Job finished - check `data.outputs[0].url` | | `failed` | Job failed - check `data.error.message` | | `cancelled` | Job was cancelled | ### Python Polling Example ```python import time, requests job_id = submit_response.json()["data"]["jobId"] while True: resp = requests.get(f"https://api.e2x.ai/v1/jobs/{job_id}", headers={"Authorization": "Bearer YOUR_API_KEY"}) data = resp.json()["data"] if data["status"] == "completed": print("Done!", data["outputs"][0]["url"]) break elif data["status"] == "failed": raise Exception(f"Job failed: {data['error']['message']}") time.sleep(2) ``` ## Usage Notes - All monetary values are in micro-cents (1,000,000 = $1 USD) - For structured parameters such as `elements` or `shots`, send real JSON arrays/objects, not quoted strings. - Use `webhookUrl` parameter in your submit request to receive completion callbacks instead of polling - API Base URL: `https://api.e2x.ai/v1`