Bytedance
Los modelos de Bytedance se llaman a través de una API de trabajos asíncrona y unificada. Inicia una tarea con POST /api/generate y luego sondea GET /api/generate/{taskId} hasta que termine. Esta familia expone 6 endpoints.
Resumen
Todos los endpoints comparten la misma envoltura — solo cambian model y los campos input. Ejecuta cualquiera desde el playground del Mercado de modelos.
Autenticación
Crea una API key en /api-keys y luego envíala como token Bearer. Las solicitudes desde el navegador con sesión iniciada también funcionan mediante la cookie de sesión.
Authorization: Bearer <YOUR_API_KEY>Crear tarea
POST https://api.lithovas.com/api/generateCuerpo: { "model": "<slug>", "input": { … } }
Respuesta: { "taskId": "<id>", "state": "waiting" }
Consultar resultado
GET https://api.lithovas.com/api/generate/<taskId>Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state sea success o fail. Las tareas fallidas no se facturan.Endpoints
| Modelo | Tarea | model slug |
|---|---|---|
| Seedance 1.5 Pro | Image to Video | bytedance/seedance-1-5-pro |
| Seedance V1 Pro Fast | Image to Video | bytedance/v1-pro-fast-image-to-video |
| Seedance V1 Pro | Image to Video | bytedance/v1-pro-image-to-video |
| Seedance V1 Pro | Text to Video | bytedance/v1-pro-text-to-video |
| Seedance V1 Lite | Image to Video | bytedance/v1-lite-image-to-video |
| Seedance V1 Lite | Text to Video | bytedance/v1-lite-text-to-video |
Seedance 1.5 Pro · Image to Video
bytedance/seedance-1-5-propromptstringobligatorioText prompt for video generation (3-20000 chars)
input_urlsarray<string>opcional0-2 image URLs for image-to-video generation
aspect_ratioenum<string>obligatorioVideo aspect ratio configuration
resolutionenum<string>opcionalVideo resolution quality level
durationnumberobligatorioVideo duration in seconds (4-12s range)
fixed_lensbooleanopcionalLock camera for static shots vs dynamic movement
generate_audiobooleanopcionalGenerate audio track (increases cost)
nsfw_checkerbooleanopcionalContent filtering enabled/disabled flag
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedance-1-5-pro",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"input_urls": [
"https://example.com/file"
],
"aspect_ratio": "1:1",
"resolution": "720p",
"duration": 5,
"fixed_lens": false,
"generate_audio": false,
"nsfw_checker": false
}
}'Seedance V1 Pro Fast · Image to Video
bytedance/v1-pro-fast-image-to-videopromptstringobligatorioText prompt for video generation (max 10000 chars)
image_urlstringobligatorioURL of image to generate video from (JPEG/PNG/WebP, max 10MB)
resolutionenum<string>opcionalOutput video resolution quality level
durationenum<string>opcionalVideo length in seconds
nsfw_checkerbooleanopcionalEnable content filtering; disabling returns unfiltered output
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-pro-fast-image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"resolution": "720p",
"duration": "5",
"nsfw_checker": false
}
}'Seedance V1 Pro · Image to Video
bytedance/v1-pro-image-to-videopromptstringobligatorioText prompt used to generate the video (max 10000 chars)
image_urlstringobligatorioURL of the image used to generate video (max 10MB)
resolutionenum<string>opcionalVideo resolution for quality/speed tradeoff
durationenum<string>opcionalDuration of the video in seconds
camera_fixedbooleanopcionalWhether to fix the camera position during generation
seednumberopcionalRandom seed for reproducibility; -1 for random
enable_safety_checkerbooleanopcionalSafety checker always enabled in Playground; disable via API
nsfw_checkerbooleanopcionalDisable content filtering when false; results returned directly
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-pro-image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"resolution": "720p",
"duration": "5",
"camera_fixed": false,
"seed": -1,
"enable_safety_checker": false,
"nsfw_checker": false
}
}'Seedance V1 Pro · Text to Video
bytedance/v1-pro-text-to-videopromptstringobligatorioText prompt for video generation (max 10000 chars)
aspect_ratioenum<string>opcionalVideo aspect ratio
resolutionenum<string>opcionalOutput resolution (480p fastest, 1080p highest quality)
durationenum<string>opcionalVideo length in seconds
camera_fixedbooleanopcionalLock camera position during generation
seednumberopcionalRandom seed for generation consistency (-1 for random)
enable_safety_checkerbooleanopcionalEnable content safety filtering
nsfw_checkerbooleanopcionalDisable content filtering if set to false
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-pro-text-to-video",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "5",
"camera_fixed": false,
"seed": -1,
"enable_safety_checker": false,
"nsfw_checker": false
}
}'Seedance V1 Lite · Image to Video
bytedance/v1-lite-image-to-videopromptstringobligatorioText prompt for video generation (max 10000 chars)
image_urlstringobligatorioURL of input image (JPEG/PNG/WebP, max 10MB)
resolutionstringopcionalVideo output resolution
durationstringopcionalVideo length in seconds
camera_fixedbooleanopcionalWhether to fix camera position during generation
seednumberopcionalRandom seed for reproducibility (-1 for random)
enable_safety_checkerbooleanopcionalEnable safety content filtering
end_image_urlstringopcionalOptional URL for final video frame (JPEG/PNG/WebP, max 10MB)
nsfw_checkerbooleanopcionalDisable content filtering when set to false
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-lite-image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"resolution": "720p",
"duration": "5",
"camera_fixed": false,
"seed": -1,
"enable_safety_checker": false,
"end_image_url": "https://example.com/input.jpg",
"nsfw_checker": false
}
}'Seedance V1 Lite · Text to Video
bytedance/v1-lite-text-to-videopromptstringobligatorioText prompt for video generation (max 10000 chars)
aspect_ratioenum<string>opcionalVideo aspect ratio
resolutionenum<string>opcionalVideo resolution (480p faster, 720p higher quality)
durationenum<string>opcionalDuration of video in seconds
camera_fixedbooleanopcionalWhether to fix the camera position
seedintegeropcionalRandom seed for generation control; use -1 for random
enable_safety_checkerbooleanopcionalEnable safety content filtering (always on in Playground)
nsfw_checkerbooleanopcionalDisable content filtering when false; model returns results directly
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-lite-text-to-video",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "5",
"camera_fixed": false,
"seed": 42,
"enable_safety_checker": false,
"nsfw_checker": false
}
}'