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 18 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://97ai.97claude.com/api/generate

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

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

Consultar resultado

GET
GET https://97ai.97claude.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 2.7 Image · Text to Image

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

Text prompt describing the desired output.

aspect_ratiostringopcional

Output aspect ratio, e.g. "1:1", "16:9".

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-image",
    "input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
  }'

Wan 2.7 Image Pro · Text to Image

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

Text prompt describing the desired output.

aspect_ratiostringopcional

Output aspect ratio, e.g. "1:1", "16:9".

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-image-pro",
    "input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
  }'

Wan 2.2 A14B · Image to Video

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-2-a14b-image-to-video-turbo",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.2 A14B · Speech to Video

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

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.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": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

Wan 2.2 A14B · Text to Video

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

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.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 red panda surfing" }
  }'

Wan 2.2 Animate Move · Lip Sync

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-2-animate-move",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.2 Animate Replace · Lip Sync

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-2-animate-replace",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.6 · Image to Video

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-6-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.6 · Text to Video

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

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-6-text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Wan 2.6 · Video to Video

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

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-6-video-to-video",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

Wan 2.6 Flash · Image to Video

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-6-flash-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.6 Flash · Video to Video

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

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-6-flash-video-to-video",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

Wan 2.5 · Image to Video

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-5-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.5 · Text to Video

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

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-5-text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Wan 2.7 · Text to Video

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

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

Wan 2.7 · Image to Video

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

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

Wan 2.7 Videoedit · Video Editing

POSTVideo Editingwan/2-7-videoedit
campos input
promptstringobligatorio

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-videoedit",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

Wan 2.7 R2V · Video to Video

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

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/2-7-r2v",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'