MercadoSoporte← Volver a la app

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
POST https://api.lithovas.com/api/generate

Cuerpo: { "model": "<slug>", "input": { … } }

Respuesta: { "taskId": "<id>", "state": "waiting" }

Consultar resultado

GET
GET https://api.lithovas.com/api/generate/<taskId>

Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

Asíncrono
Un 200 de Crear tarea solo significa que la tarea fue aceptada — no que haya terminado. Sondea este endpoint hasta que state sea success o fail. Las tareas fallidas no se facturan.

Endpoints

ModeloTareamodel slug
Seedance 1.5 ProImage to Videobytedance/seedance-1-5-pro
Seedance V1 Pro FastImage to Videobytedance/v1-pro-fast-image-to-video
Seedance V1 ProImage to Videobytedance/v1-pro-image-to-video
Seedance V1 ProText to Videobytedance/v1-pro-text-to-video
Seedance V1 LiteImage to Videobytedance/v1-lite-image-to-video
Seedance V1 LiteText to Videobytedance/v1-lite-text-to-video

Seedance 1.5 Pro · Image to Video

POSTImage to Videobytedance/seedance-1-5-pro
campos input
promptstringobligatorio

Text prompt for video generation (3-20000 chars)

input_urlsarray<string>opcional

0-2 image URLs for image-to-video generation

aspect_ratioenum<string>obligatorio

Video aspect ratio configuration

resolutionenum<string>opcional

Video resolution quality level

durationnumberobligatorio

Video duration in seconds (4-12s range)

fixed_lensbooleanopcional

Lock camera for static shots vs dynamic movement

generate_audiobooleanopcional

Generate audio track (increases cost)

nsfw_checkerbooleanopcional

Content filtering enabled/disabled flag

Ejemplo
cURL
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

POSTImage to Videobytedance/v1-pro-fast-image-to-video
campos input
promptstringobligatorio

Text prompt for video generation (max 10000 chars)

image_urlstringobligatorio

URL of image to generate video from (JPEG/PNG/WebP, max 10MB)

resolutionenum<string>opcional

Output video resolution quality level

durationenum<string>opcional

Video length in seconds

nsfw_checkerbooleanopcional

Enable content filtering; disabling returns unfiltered output

Ejemplo
cURL
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

POSTImage to Videobytedance/v1-pro-image-to-video
campos input
promptstringobligatorio

Text prompt used to generate the video (max 10000 chars)

image_urlstringobligatorio

URL of the image used to generate video (max 10MB)

resolutionenum<string>opcional

Video resolution for quality/speed tradeoff

durationenum<string>opcional

Duration of the video in seconds

camera_fixedbooleanopcional

Whether to fix the camera position during generation

seednumberopcional

Random seed for reproducibility; -1 for random

enable_safety_checkerbooleanopcional

Safety checker always enabled in Playground; disable via API

nsfw_checkerbooleanopcional

Disable content filtering when false; results returned directly

Ejemplo
cURL
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

POSTText to Videobytedance/v1-pro-text-to-video
campos input
promptstringobligatorio

Text prompt for video generation (max 10000 chars)

aspect_ratioenum<string>opcional

Video aspect ratio

resolutionenum<string>opcional

Output resolution (480p fastest, 1080p highest quality)

durationenum<string>opcional

Video length in seconds

camera_fixedbooleanopcional

Lock camera position during generation

seednumberopcional

Random seed for generation consistency (-1 for random)

enable_safety_checkerbooleanopcional

Enable content safety filtering

nsfw_checkerbooleanopcional

Disable content filtering if set to false

Ejemplo
cURL
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

POSTImage to Videobytedance/v1-lite-image-to-video
campos input
promptstringobligatorio

Text prompt for video generation (max 10000 chars)

image_urlstringobligatorio

URL of input image (JPEG/PNG/WebP, max 10MB)

resolutionstringopcional

Video output resolution

durationstringopcional

Video length in seconds

camera_fixedbooleanopcional

Whether to fix camera position during generation

seednumberopcional

Random seed for reproducibility (-1 for random)

enable_safety_checkerbooleanopcional

Enable safety content filtering

end_image_urlstringopcional

Optional URL for final video frame (JPEG/PNG/WebP, max 10MB)

nsfw_checkerbooleanopcional

Disable content filtering when set to false

Ejemplo
cURL
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

POSTText to Videobytedance/v1-lite-text-to-video
campos input
promptstringobligatorio

Text prompt for video generation (max 10000 chars)

aspect_ratioenum<string>opcional

Video aspect ratio

resolutionenum<string>opcional

Video resolution (480p faster, 720p higher quality)

durationenum<string>opcional

Duration of video in seconds

camera_fixedbooleanopcional

Whether to fix the camera position

seedintegeropcional

Random seed for generation control; use -1 for random

enable_safety_checkerbooleanopcional

Enable safety content filtering (always on in Playground)

nsfw_checkerbooleanopcional

Disable content filtering when false; model returns results directly

Ejemplo
cURL
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
  }
}'