MercadoSoporte← Volver a la app

Wan

Los modelos de Wan 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 19 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
Wan 2.7 ImageText to Imagewan/2-7-image
Wan 2.7 Image ProText to Imagewan/2-7-image-pro
Wan 2.2 A14BImage to Videowan/2-2-a14b-image-to-video-turbo
Wan 2.2 A14BSpeech to Videowan/2-2-a14b-speech-to-video-turbo
Wan 2.2 A14BText to Videowan/2-2-a14b-text-to-video-turbo
Wan 2.2 Animate MoveLip Syncwan/2-2-animate-move
Wan 2.2 Animate ReplaceLip Syncwan/2-2-animate-replace
Wan 2.6Image to Videowan/2-6-image-to-video
Wan 2.6Text to Videowan/2-6-text-to-video
Wan 2.6Video to Videowan/2-6-video-to-video
Wan 2.6 FlashImage to Videowan/2-6-flash-image-to-video
Wan 2.6 FlashVideo to Videowan/2-6-flash-video-to-video
Wan 2.5Image to Videowan/2-5-image-to-video
Wan 2.5Text to Videowan/2-5-text-to-video
Wan 2.7Text to Videowan/2-7-text-to-video
Wan 2.7Image to Videowan/2-7-image-to-video
Wan 2.7 VideoeditVideo Editingwan/2-7-videoedit
Wan 2.7 R2VVideo to Videowan/2-7-r2v
Wan 3.0 VideoText to Videowan3.0-video

Wan 2.7 Image · Text to Image

POSTText to Imagewan/2-7-image
campos input
promptstringobligatorio

Prompt for image generation or editing (max 5000 chars)

input_urlsarray<string>opcional

Array of input image URLs (max 9 images)

aspect_ratioenum<string>opcional

Output aspect ratio when no image input provided

enable_sequentialbooleanopcional

Enable sequential/group image mode

nintegeropcional

Number of images (1-4 default; 1-12 if sequential)

resolutionenum<string>opcional

Output resolution

thinking_modebooleanopcional

Enable thinking mode (not with sequential or input images)

color_palettearray<object>opcional

Custom color theme; 3-10 colors each with hex and ratio

bbox_listarray<array>opcional

Interactive editing bounding boxes; max 2 per image [x1,y1,x2,y2]

watermarkbooleanopcional

Add watermark to generated images

seedintegeropcional

Random seed; range 0-2147483647

nsfw_checkerbooleanopcional

Content filtering toggle; disabled if false

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-7-image",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "input_urls": [
      "https://example.com/file"
    ],
    "aspect_ratio": "1:1",
    "enable_sequential": false,
    "n": 4,
    "resolution": "2K",
    "thinking_mode": false,
    "color_palette": [],
    "bbox_list": "example",
    "watermark": false,
    "seed": 0,
    "nsfw_checker": false
  }
}'

Wan 2.7 Image Pro · Text to Image

POSTText to Imagewan/2-7-image-pro
campos input
promptstringobligatorio

Prompt for image generation or editing (max 5000 chars)

input_urlsarray<string>opcional

Array of input image URLs (max 9 items)

aspect_ratioenum<string>opcional

Output aspect ratio when no image input provided

enable_sequentialbooleanopcional

Enable sequential/group image mode

nintegeropcional

Number of images (1-4 default; 1-12 if sequential)

resolutionenum<string>opcional

Output resolution (4K for text-to-image only)

thinking_modebooleanopcional

Enable thinking mode (text-to-image only)

color_palettearray<object>opcional

Custom color theme (3-10 colors, 8 recommended)

bbox_listarray<array>opcional

Interactive editing bounding boxes (max 2 per image)

watermarkbooleanopcional

Add watermark to output

seedintegeropcional

Random seed (range 0-2147483647)

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": "wan/2-7-image-pro",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "input_urls": [
      "https://example.com/file"
    ],
    "aspect_ratio": "1:1",
    "enable_sequential": false,
    "n": 4,
    "resolution": "2K",
    "thinking_mode": false,
    "color_palette": [],
    "bbox_list": "example",
    "watermark": false,
    "seed": 0,
    "nsfw_checker": false
  }
}'

Wan 2.2 A14B · Image to Video

POSTImage to Videowan/2-2-a14b-image-to-video-turbo
campos input
image_urlstringobligatorio

URL of input image; resized and center cropped if aspect ratio mismatch

promptstringobligatorio

Text guidance for video generation (max 5000 chars)

resolutionenum<string>opcional

Output video resolution

enable_prompt_expansionbooleanopcional

Use LLM to expand the prompt with additional details

seednumberopcional

Random seed for reproducibility (0-2147483647)

accelerationenum<string>opcional

Acceleration level; more acceleration is faster but lower quality

nsfw_checkerbooleanopcional

If false, content filtering disabled

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-a14b-image-to-video-turbo",
  "input": {
    "image_url": "https://example.com/input.jpg",
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "resolution": "720p",
    "enable_prompt_expansion": false,
    "seed": 0,
    "acceleration": "none",
    "nsfw_checker": false
  }
}'

Wan 2.2 A14B · Speech to Video

POSTSpeech to Videowan/2-2-a14b-speech-to-video-turbo
campos input
promptstringobligatorio

Text prompt for video generation (max 5000 chars)

image_urlstringobligatorio

Input image URL; resized/center-cropped if needed (max 10MB)

audio_urlstringobligatorio

Audio file URL for speech sync (max 10MB)

num_framesnumberopcional

Frame count to generate; 40-120, multiple of 4

frames_per_secondnumberopcional

Video FPS (4-60)

resolutionenum<string>opcional

Output video resolution

negative_promptstringopcional

Negative prompt to exclude content (max 500 chars)

seedintegeropcional

Random seed for reproducible results

num_inference_stepsnumberopcional

Sampling steps for quality/speed tradeoff (2-40)

guidance_scalenumberopcional

Prompt adherence strength; 1-10 scale

shiftnumberopcional

Video shift parameter (1.0-10.0)

nsfw_checkerbooleanopcional

Enable/disable content filtering

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-a14b-speech-to-video-turbo",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_url": "https://example.com/input.jpg",
    "audio_url": "https://example.com/reference.mp3",
    "num_frames": 80,
    "frames_per_second": 16,
    "resolution": "480p",
    "negative_prompt": "example",
    "seed": 42,
    "num_inference_steps": 27,
    "guidance_scale": 3.5,
    "shift": 5,
    "nsfw_checker": false
  }
}'

Wan 2.2 A14B · Text to Video

POSTText to Videowan/2-2-a14b-text-to-video-turbo
campos input
promptstringobligatorio

Text prompt to guide video generation (max 5000 chars)

resolutionenum<string>opcional

Generated video resolution setting

aspect_ratioenum<string>opcional

Video output aspect ratio format

enable_prompt_expansionbooleanopcional

LLM-based prompt expansion for additional detail

seednumberopcional

Random seed for reproducible results (0-2147483647)

accelerationenum<string>opcional

Trade-off control between speed and quality

nsfw_checkerbooleanopcional

Toggle content filtering; false disables filtering

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-a14b-text-to-video-turbo",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "enable_prompt_expansion": false,
    "seed": 0,
    "acceleration": "none",
    "nsfw_checker": false
  }
}'

Wan 2.2 Animate Move · Lip Sync

POSTLip Syncwan/2-2-animate-move
campos input
video_urlstringobligatorio

URL of the input video (mp4, quicktime, matroska; max 10MB)

image_urlstringobligatorio

URL of input image; resized/center-cropped if aspect ratio mismatch (max 10MB)

resolutionenum<string>opcional

Output video resolution selection

nsfw_checkerbooleanopcional

Enable/disable content filtering

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-animate-move",
  "input": {
    "video_url": "https://example.com/reference.mp4",
    "image_url": "https://example.com/input.jpg",
    "resolution": "480p",
    "nsfw_checker": false
  }
}'

Wan 2.2 Animate Replace · Lip Sync

POSTLip Syncwan/2-2-animate-replace
campos input
video_urlstringobligatorio

URL of the input video (mp4, quicktime, matroska; max 10MB)

image_urlstringobligatorio

URL of the input image (jpeg, png, webp; max 10MB)

resolutionenum<string>opcional

Resolution of the generated video output

nsfw_checkerbooleanopcional

Enable/disable content filtering on results

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-animate-replace",
  "input": {
    "video_url": "https://example.com/reference.mp4",
    "image_url": "https://example.com/input.jpg",
    "resolution": "480p",
    "nsfw_checker": false
  }
}'

Wan 2.6 · Image to Video

POSTImage to Videowan/2-6-image-to-video
campos input
promptstringobligatorio

Text prompts for video generation; supports Chinese and English (max 5000 chars)

image_urlsarray<string>obligatorio

Input image files (JPEG/PNG/WebP, max 10MB, min 256x256px)

durationenum<string>opcional

Duration of generated video in seconds

resolutionenum<string>opcional

Video resolution tier

nsfw_checkerbooleanopcional

Content filtering; disabled when false

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-6-image-to-video",
  "input": {
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "image_urls": [
      "https://example.com/input.jpg"
    ],
    "duration": "5",
    "resolution": "1080p",
    "nsfw_checker": false
  }
}'

Wan 2.6 · Text to Video

POSTText to Videowan/2-6-text-to-video
campos input
promptstringobligatorio

Text prompts for video generation; supports Chinese and English (max 5000 chars)

durationenum<string>opcional

Length of generated video in seconds

resolutionenum<string>opcional

Video resolution tier

nsfw_checkerbooleanopcional

Toggles content filtering; false 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": "wan/2-6-text-to-video",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "duration": "5",
    "resolution": "1080p",
    "nsfw_checker": false
  }
}'

Wan 2.6 · Video to Video

POSTVideo to Videowan/2-6-video-to-video
campos input
promptstringobligatorio

Text prompt for video transformation (2-5000 chars, Chinese/English)

video_urlsarray<string>obligatorio

URLs of source videos to transform (max 3, MP4/QuickTime/Matroska, max 10MB each)

durationenum<string>opcional

Generated video duration in seconds

resolutionenum<string>opcional

Output video resolution tier

nsfw_checkerbooleanopcional

Toggle content filtering; false disables filtering

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-6-video-to-video",
  "input": {
    "prompt": "Restyle the source footage with richer lighting, cleaner motion, and a cinematic grade.",
    "video_urls": [
      "https://example.com/reference.mp4"
    ],
    "duration": "5",
    "resolution": "1080p",
    "nsfw_checker": false
  }
}'

Wan 2.6 Flash · Image to Video

POSTImage to Videowan/2-6-flash-image-to-video
campos input
promptstringobligatorio

Text prompts for video generation (max 1500 chars)

image_urlsarray<string>obligatorio

List of image URLs (min 256x256px, max 1 image, 10MB)

durationenum<string>opcional

Video duration in seconds

resolutionenum<string>opcional

Output video resolution tier

audiobooleanobligatorio

Whether to generate video with audio

multi_shotsbooleanopcional

Controls shot composition style (single vs multiple shots)

nsfw_checkerbooleanopcional

Enable/disable content filtering (default disabled)

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-6-flash-image-to-video",
  "input": {
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "image_urls": [
      "https://example.com/input.jpg"
    ],
    "duration": "5",
    "resolution": "1080p",
    "audio": false,
    "multi_shots": false,
    "nsfw_checker": false
  }
}'

Wan 2.6 Flash · Video to Video

POSTVideo to Videowan/2-6-flash-video-to-video
campos input
promptstringobligatorio

Text prompt for video generation (2-1500 chars, Chinese/English)

video_urlsarray<string>obligatorio

URLs of videos to transform (max 3 items, up to 10MB each)

durationenum<string>opcional

Generated video length in seconds

resolutionenum<string>opcional

Video resolution tier

audiobooleanopcional

Whether to generate video with audio

multi_shotsbooleanopcional

Controls shot composition style (single vs multiple shots)

nsfw_checkerbooleanopcional

Content filtering toggle; false disables filtering

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-6-flash-video-to-video",
  "input": {
    "prompt": "Restyle the source footage with richer lighting, cleaner motion, and a cinematic grade.",
    "video_urls": [
      "https://example.com/reference.mp4"
    ],
    "duration": "5",
    "resolution": "1080p",
    "audio": false,
    "multi_shots": false,
    "nsfw_checker": false
  }
}'

Wan 2.5 · Image to Video

POSTImage to Videowan/2-5-image-to-video
campos input
promptstringobligatorio

Text describing desired video motion (max 800 chars)

image_urlstringobligatorio

URL of image to use as first frame (JPEG/PNG/WebP, max 10MB)

durationenum<string>obligatorio

Generated video duration in seconds

resolutionenum<string>opcional

Video output resolution

negative_promptstringopcional

Content to avoid in generation (max 500 chars)

enable_prompt_expansionbooleanopcional

Enable LLM-based prompt rewriting

seedintegeropcional

Random seed for reproducible results

nsfw_checkerbooleanopcional

Content filtering; disabled when false

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-5-image-to-video",
  "input": {
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "image_url": "https://example.com/input.jpg",
    "duration": "5",
    "resolution": "720p",
    "negative_prompt": "example",
    "enable_prompt_expansion": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 2.5 · Text to Video

POSTText to Videowan/2-5-text-to-video
campos input
promptstringobligatorio

Text prompt for video generation; supports Chinese and English (max 800 chars)

durationenum<string>obligatorio

Duration of the generated video in seconds

aspect_ratioenum<string>opcional

Video aspect ratio (landscape, portrait, or square)

resolutionenum<string>opcional

Video resolution tier

negative_promptstringopcional

Content to avoid in generation (max 500 chars)

enable_prompt_expansionbooleanopcional

Enable LLM prompt rewriting for improved short prompt results

seedintegeropcional

Random seed for reproducible results

nsfw_checkerbooleanopcional

Disables content filtering when false

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-5-text-to-video",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "duration": "5",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "negative_prompt": "example",
    "enable_prompt_expansion": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 2.7 · Text to Video

POSTText to Videowan/2-7-text-to-video
campos input
promptstringobligatorio

Positive prompt (1-5000 chars)

negative_promptstringopcional

Negative prompt (max 500 chars)

audio_urlstringopcional

Custom audio track URL for video generation

resolutionenum<string>opcional

Video output resolution

ratioenum<string>opcional

Video aspect ratio

durationintegeropcional

Video length in seconds (2-15)

prompt_extendbooleanopcional

Enable intelligent prompt rewriting

watermarkbooleanopcional

Add AI-generated watermark to video

seedintegeropcional

Random seed for reproducibility (0-2147483647)

nsfw_checkerbooleanopcional

Content filtering toggle; disables safety filters when false

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-7-text-to-video",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "negative_prompt": "example",
    "audio_url": "https://example.com/reference.mp3",
    "resolution": "1080p",
    "ratio": "16:9",
    "duration": 5,
    "prompt_extend": true,
    "watermark": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 2.7 · Image to Video

POSTImage to Videowan/2-7-image-to-video
campos input
promptstringobligatorio

Positive prompt (max 5000 chars)

negative_promptstringopcional

Negative prompt (max 500 chars)

first_frame_urlstringopcional

First frame image URL

last_frame_urlstringopcional

Last frame image URL

first_clip_urlstringopcional

First clip video URL for video continuation

driving_audio_urlstringopcional

Driving audio URL

resolutionenum<string>opcional

Video resolution output

durationintegeropcional

Output video duration in seconds (2-15)

prompt_extendbooleanopcional

Enable intelligent prompt rewriting

watermarkbooleanopcional

Add AI-generated watermark to video

seedintegeropcional

Random seed (0-2147483647)

nsfw_checkerbooleanopcional

Content filtering toggle

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-7-image-to-video",
  "input": {
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "negative_prompt": "example",
    "first_frame_url": "example",
    "last_frame_url": "example",
    "first_clip_url": "example",
    "driving_audio_url": "https://example.com/reference.mp3",
    "resolution": "1080p",
    "duration": 5,
    "prompt_extend": true,
    "watermark": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 2.7 Videoedit · Video Editing

POSTVideo Editingwan/2-7-videoedit
campos input
promptstringopcional

Text prompt describing expected elements and visual features (max 5000 chars)

negative_promptstringopcional

Content that should not appear in the video (max 500 chars)

video_urlstringobligatorio

URL of source video to edit (mp4/mov, 2-10s, 240-4096px)

reference_imagestringopcional

Optional reference image for character/clothing/style guidance

resolutionenum<string>opcional

Output video resolution tier

aspect_ratioenum<string>opcional

Output video aspect ratio

durationintegeropcional

Output duration in seconds (0 or 2-10; 0 uses full input)

audio_settingenum<string>opcional

Model decides whether to regenerate audio or keep original

prompt_extendbooleanopcional

Whether to enable prompt rewriting/expansion

watermarkbooleanopcional

Add AI generated watermark to lower-right corner

seedintegeropcional

Random seed (0-2147483647)

nsfw_checkerbooleanopcional

Enable/disable content filtering (defaults to disabled)

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-7-videoedit",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "negative_prompt": "example",
    "video_url": "https://example.com/reference.mp4",
    "reference_image": "https://example.com/input.jpg",
    "resolution": "1080p",
    "aspect_ratio": "16:9",
    "duration": 0,
    "audio_setting": "auto",
    "prompt_extend": true,
    "watermark": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 2.7 R2V · Video to Video

POSTVideo to Videowan/2-7-r2v
campos input
promptstringobligatorio

Text describing desired video elements (max 5000 chars)

negative_promptstringopcional

Unwanted elements to exclude (max 500 chars)

reference_imagearray<string>opcional

URLs of reference images (max 5 total with videos)

reference_videoarray<string>opcional

URLs of reference videos (max 5 total with images)

first_framestringopcional

URL of first frame image; overrides aspect_ratio

reference_voicestringopcional

Audio URL for voice timbre (wav/mp3, 1-10 sec, <=15MB)

resolutionenum<string>opcional

Output video resolution tier

aspect_ratioenum<string>opcional

Output video aspect ratio

durationintegeropcional

Video duration in seconds (2-10)

prompt_extendbooleanopcional

Enable prompt rewriting for expansion

watermarkbooleanopcional

Add AI generated watermark to lower-right corner

seedintegeropcional

Random seed for reproducibility (0-2147483647)

nsfw_checkerbooleanopcional

Enable content filtering (disabled when false)

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-7-r2v",
  "input": {
    "prompt": "Restyle the source footage with richer lighting, cleaner motion, and a cinematic grade.",
    "negative_prompt": "example",
    "reference_image": [
      "https://example.com/input.jpg"
    ],
    "reference_video": [
      "https://example.com/reference.mp4"
    ],
    "first_frame": "example",
    "reference_voice": "example",
    "resolution": "1080p",
    "aspect_ratio": "16:9",
    "duration": 5,
    "prompt_extend": true,
    "watermark": false,
    "seed": 42,
    "nsfw_checker": false
  }
}'

Wan 3.0 Video · Text to Video

POSTText to Videowan3.0-video
campos input
promptstringopcional

Text prompt describing the desired video. Supports Chinese and English, up to 20,000 characters.

first_framestringopcional

Optional first-frame image URL for image-to-video.

last_framestringopcional

Optional last-frame image URL. Use together with first_frame for first-to-last-frame video.

reference_image_urlsarray<string>opcional

Reference image URLs for all-in-one reference mode. Refer to them as Image1, Image2, etc. in the prompt.

reference_video_urlsarray<string>opcional

Reference video URLs for all-in-one reference mode. Refer to them as Video1, Video2, etc. in the prompt.

reference_audio_urlsarray<string>opcional

Reference audio URLs for voice, music, or ambience guidance.

file_urlstringopcional

Optional public file URL, such as a PPTX, PDF, or other supported media file.

link_urlstringopcional

Optional web link used as source material.

resolutionenum<string>opcional

Output video resolution tier.

ratioenum<string>opcional

Output aspect ratio. adaptive lets the model choose from the input and prompt.

durationintegeropcional

Output duration in seconds. Use 2-30 for generated clips, or -1 for smart duration mode.

audiobooleanopcional

Whether the generated video includes audio.

seedintegeropcional

Random seed from 0 to 2147483647.

watermarkbooleanopcional

Whether to add a watermark.

Ejemplo
cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan3.0-video",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "first_frame": "example",
    "last_frame": "example",
    "reference_image_urls": [
      "https://example.com/input.jpg"
    ],
    "reference_video_urls": [
      "https://example.com/reference.mp4"
    ],
    "reference_audio_urls": [
      "https://example.com/reference.mp3"
    ],
    "file_url": "example",
    "link_url": "example",
    "resolution": "1080P",
    "ratio": "adaptive",
    "duration": 5,
    "audio": true,
    "seed": 42,
    "watermark": false
  }
}'