Skip to Content
Video ModelsSeedance 2 Mini

Seedance 2 Mini

Overview

Seedance 2 Mini is ByteDance’s lightweight video generation model. It supports text-to-video and image-to-video generation with lower credit costs than Seedance 2.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwithapi.online/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt (e.g., “A cat walking in the garden”)
image_urlsarrayConditionalReference image URLs for image-to-video mode. Omit for pure text-to-video mode. Provide 1 image for first-frame video generation, or more than 1 image for reference-image video generation. Supports up to 9 images.
model_idstringYes2-77.
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, all prompt words will be automatically translated into English.
options.aspect_ratiostringYesAspect ratio of the output. Valid values: 'Auto', '16:9', '4:3', '1:1', '3:4', '9:16', '21:9'. Default: '16:9'.
options.resolutionstringYesResolution of the output. Valid values: '480p', '720p'. Default: '480p'.
options.durationintYesDuration in seconds. Valid values: 5, 10, 15. Default: 5.

Example Request - Text-to-Video

{ "prompt": "A cat walking in the garden", "model_id": "2-77", "options": { "prompt_optimization": true, "aspect_ratio": "16:9", "resolution": "720p", "duration": 10 } }

Example Request - Image-to-Video

{ "prompt": "Animate this character with smooth cinematic camera motion", "image_urls": [ "https://cdn.pixwithapi.online/images/example_1.jpeg" ], "model_id": "2-77", "options": { "prompt_optimization": true, "aspect_ratio": "16:9", "resolution": "480p", "duration": 5 } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 150 } }
Last updated on