Wan
Wan モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 18 個のエンドポイントを提供します。
概要
すべてのエンドポイントは同じ外枠を共有し、変わるのは model と input フィールドだけです。モデルマーケットの playground から任意に実行できます。
認証
/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。
Authorization: Bearer <YOUR_API_KEY>タスクの作成
POST https://97ai.97claude.com/api/generateボディ:{ "model": "<slug>", "input": { … } }
レスポンス:{ "taskId": "<id>", "state": "waiting" }
結果の照会
GET https://97ai.97claude.com/api/generate/<taskId>レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state が success または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。エンドポイント
| モデル | タスク | model slug |
|---|---|---|
| Wan 2.7 Image | Text to Image | wan/2-7-image |
| Wan 2.7 Image Pro | Text to Image | wan/2-7-image-pro |
| Wan 2.2 A14B | Image to Video | wan/2-2-a14b-image-to-video-turbo |
| Wan 2.2 A14B | Speech to Video | wan/2-2-a14b-speech-to-video-turbo |
| Wan 2.2 A14B | Text to Video | wan/2-2-a14b-text-to-video-turbo |
| Wan 2.2 Animate Move | Lip Sync | wan/2-2-animate-move |
| Wan 2.2 Animate Replace | Lip Sync | wan/2-2-animate-replace |
| Wan 2.6 | Image to Video | wan/2-6-image-to-video |
| Wan 2.6 | Text to Video | wan/2-6-text-to-video |
| Wan 2.6 | Video to Video | wan/2-6-video-to-video |
| Wan 2.6 Flash | Image to Video | wan/2-6-flash-image-to-video |
| Wan 2.6 Flash | Video to Video | wan/2-6-flash-video-to-video |
| Wan 2.5 | Image to Video | wan/2-5-image-to-video |
| Wan 2.5 | Text to Video | wan/2-5-text-to-video |
| Wan 2.7 | Text to Video | wan/2-7-text-to-video |
| Wan 2.7 | Image to Video | wan/2-7-image-to-video |
| Wan 2.7 Videoedit | Video Editing | wan/2-7-videoedit |
| Wan 2.7 R2V | Video to Video | wan/2-7-r2v |
Wan 2.7 Image · Text to Image
wan/2-7-imagepromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
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
wan/2-7-image-propromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
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
wan/2-2-a14b-image-to-video-turbopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-2-a14b-speech-to-video-turbopromptstring必須Text prompt describing the desired output.
video_urlstring必須Source video URL to transform.
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
wan/2-2-a14b-text-to-video-turbopromptstring必須Text prompt describing the desired output.
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
wan/2-2-animate-movepromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-2-animate-replacepromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-6-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-6-text-to-videopromptstring必須Text prompt describing the desired output.
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
wan/2-6-video-to-videopromptstring必須Text prompt describing the desired output.
video_urlstring必須Source video URL to transform.
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
wan/2-6-flash-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-6-flash-video-to-videopromptstring必須Text prompt describing the desired output.
video_urlstring必須Source video URL to transform.
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
wan/2-5-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-5-text-to-videopromptstring必須Text prompt describing the desired output.
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
wan/2-7-text-to-videopromptstring必須Text prompt describing the desired output.
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
wan/2-7-image-to-videopromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
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
wan/2-7-videoeditpromptstring必須Text prompt describing the desired output.
video_urlstring必須Source video URL to transform.
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
wan/2-7-r2vpromptstring必須Text prompt describing the desired output.
video_urlstring必須Source video URL to transform.
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" }
}'