## Basic model info - Model name: bytedance/bytedance seedance-1.0-pro-fast - Model description: ByteDance Seedance 1.0 Pro Fast: fast, low-cost silent video from text or a first-frame image, 480p to 1080p, 2 to 12 seconds, with an optional fixed camera. Billed on upstream video tokens at $0.60 per million (about $0.15 for a 1080p 5-second clip). - Endpoint name: image-to-video ## Model schema The model schema is defined in the OpenAPI schema: [OpenAPI Schema](https://oapi.sunra.ai/main/bytedance/seedance-1.0-pro-fast/latest.json) ### Model input schema The model input schema is: ```json { "description": "Input model for Seedance 1.0 Pro Fast image-to-video (first frame).", "properties": { "prompt": { "anyOf": [ { "maxLength": 2000, "type": "string" }, { "type": "null" } ], "description": "Optional description of the motion and scene", "title": "Prompt", "x-sr-order": 201 }, "start_image": { "anyOf": [ { "format": "uri", "maxLength": 2083, "minLength": 1, "type": "string" }, { "type": "string" } ], "description": "Image used as the first frame (public URL)", "title": "Start Image", "x-sr-order": 301 }, "seed": { "anyOf": [ { "maximum": 4294967295, "minimum": -1, "type": "integer" }, { "type": "null" } ], "description": "Seed for reproducibility; random when omitted", "title": "Seed", "x-sr-order": 501 }, "camera_fixed": { "default": false, "description": "Keep the camera still", "title": "Camera Fixed", "type": "boolean", "x-sr-order": 404 }, "duration": { "default": 5, "description": "Video length in seconds (2-12). Billing scales with duration", "maximum": 12, "minimum": 2, "title": "Duration", "type": "integer", "x-sr-order": 403 }, "ratio": { "anyOf": [ { "enum": [ "16:9", "4:3", "1:1", "3:4", "9:16", "21:9" ], "type": "string" }, { "const": "adaptive", "type": "string" } ], "default": "adaptive", "description": "Aspect ratio of the video; adaptive follows the first-frame image", "title": "Ratio", "x-sr-order": 402 }, "resolution": { "default": "720p", "description": "Output resolution. Billing scales with the number of output pixels", "enum": [ "480p", "720p", "1080p" ], "title": "Resolution", "type": "string", "x-sr-order": 401 } }, "required": [ "start_image" ], "title": "ImageToVideoInput", "type": "object" } ``` ### Model output schema The model output schema is: ```json { "description": "Output schema for Seedance 1.0 Pro Fast.", "properties": { "total_tokens": { "description": "Total tokens billed upstream for this generation", "title": "Total Tokens", "type": "integer" }, "units": { "description": "Billing units. 1000 units = $1.", "title": "Units", "type": "number" }, "video": { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" } }, "required": [ "video", "total_tokens", "units" ], "title": "Seedance10ProFastOutput", "type": "object" } ``` ## Example inputs and outputs Use the following example inputs and outputs to understand the model. ### Input example ```json { "prompt": null, "start_image": "", "seed": null, "camera_fixed": false, "duration": 5, "ratio": "adaptive", "resolution": "720p" } ``` ### Output example ```json { } ``` ## Model code examples ### JavaScript ```javascript import { sunra } from "@sunra/client"; const result = await sunra.subscribe("bytedance/seedance-1.0-pro-fast/image-to-video", { input: { resolution: '720p', duration: 5, camera_fixed: false, seed: null, prompt: null, start_image: '', ratio: 'adaptive' }, logs: true, onQueueUpdate: (update) => { console.log(`Status Update: ${update.status}, Request ID: ${update.request_id}`); }, }); console.log(result.data); console.log(result.requestId); ``` ### Python ```python import sunra_client result = sunra_client.subscribe( "bytedance/seedance-1.0-pro-fast/image-to-video", arguments={ "resolution": "720p", "duration": 5, "camera_fixed": False, "seed": None, "prompt": None, "start_image": "", "ratio": "adaptive" }, with_logs=True, on_enqueue=print, on_queue_update=print, ) print(result) ``` ### Java ```java import ai.sunra.client.*; import java.util.Map; import com.google.gson.JsonObject; var client = SunraClient.withEnvCredentials(); var response = client.subscribe( "bytedance/seedance-1.0-pro-fast/image-to-video", SubscribeOptions.builder() .input(Map.of( "resolution", "720p", "duration", 5, "camera_fixed", false, "seed", null, "prompt", null, "start_image", "", "ratio", "adaptive")) .resultType(JsonObject.class) .onQueueUpdate(update -> System.out.printf( "\nStatus Update: %s, Request ID: %s%n", update.getStatus(), update.getRequestId() )) .logs(true) .build() ); System.out.println("Completed!"); System.out.println(response.getData()); ``` ### Kotlin ```kotlin import ai.sunra.client.kt.* import com.google.gson.JsonObject val client = createSunraClient() val response = client.subscribe( endpointId = "bytedance/seedance-1.0-pro-fast/image-to-video", input = mapOf( "resolution" to "720p", "duration" to 5, "camera_fixed" to false, "seed" to null, "prompt" to null, "start_image" to "", "ratio" to "adaptive"), options = ai.sunra.client.kt.SubscribeOptions(logs = true), onUpdate = { update -> println("\nStatus Update: ${update.status}, Request ID: ${update.requestId}") } ) println("Completed!") println(response.data) ``` ### Curl ```bash curl --request POST \ --url https://api.sunra.ai/v1/queue/bytedance/seedance-1.0-pro-fast/image-to-video \ --header "Authorization: Key $SUNRA_KEY" \ --header "Content-Type: application/json" \ --data '{"resolution":"720p","duration":5,"camera_fixed":false,"seed":null,"prompt":null,"start_image":"","ratio":"adaptive"}' ``` ## Model readme >