Wan 2.1 (image-to-video) API
MartLLM에서 Wan 2.1 (image-to-video)(으)로 동영상 만들기.
더 보기
제작: Alibaba. MartLLM은 이 모델을 직접 실행하지 않습니다. MartLLM에서는 판매자들이 자기 제공업체 계정으로 이 모델을 제공합니다.
요청
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/wan-2-1-image-to-video",
"prompt": "Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged",
"resolution": "480p",
"duration_seconds": 5,
"image_url": "https://example.com/photo.jpg"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}UBERLLM_API_KEY에 키를 설정하세요. status가 "succeeded"가 될 때까지 5초마다 /v1/video/generations/<job id>를 조회한 뒤, 키로 파일을 다운로드하세요. 실패한 작업은 이유가 표시되며 요금이 청구되지 않습니다. 전체 API 가이드
옵션
- 작업
- 이미지→동영상, 참조 이미지
- 해상도
- 480p, 720p
- 길이
- 5초, 10초
- 화면 비율
- 16:9, 9:16
- 입력 이미지
- 최대 1
- 과금 단위
- 동영상 1초당
- 내 LoRA
- 최대 3
- 모델 ID
wan/wan-2-1-image-to-video
Wan 2.1 (image-to-video) 사용해 보기
설정
시작 이미지
.safetensors 파일 링크 또는 여기서 학습한 LoRA의 링크. JSON 탭에서는 최대 3개.
왼쪽 설정과 같은 요청으로, 바로 복사할 수 있습니다.
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/wan-2-1-image-to-video",
"prompt": "",
"resolution": "480p",
"duration_seconds": 5
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Wan 2.1 (image-to-video) API가 잘하는 것
- 요청 한 번에 최대 10초 클립.
- 내 이미지를 그대로 첫 프레임으로 사용.
- 인물, 제품, 장소 참조 이미지 최대 1장.
- 출력 해상도: 480p, 720p.
- 화면 비율: 16:9, 9:16.
시작용 예시
01
사진에 생동감 주기
Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged
내 이미지로 · 5초
02
제품 사진 회전
The product in the photo turns slowly on a turntable, soft studio light, the label stays sharp and readable, clean white background
내 이미지로 · 5초
03
정지 장면 움직이기
The scene in the photo starts moving: leaves sway, light shifts across the ground, a gentle handheld drift; nothing new appears in the frame
내 이미지로
Wan 2.1 (image-to-video) API 파라미터
| 파라미터 | 유형 | 설명 |
|---|---|---|
| model | wan/wan-2-1-image-to-video | 필수 |
| prompt | string | 필수. What to make. |
| image_url | string | 이 중 하나. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, 최대 1 | 이 중 하나. Several pictures (https:// links or data: URIs). |
| resolution | 480p, 720p | 선택 · 480p. The seller needs one: left out, 480p is sent. |
| duration_seconds | 5, 10 | 선택. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16 | 선택. Shape of the video. |
| loras | array<object>, 최대 3 | 선택. Optional: up to 3 LoRAs to apply (a style or a person you trained). Each path is an https:// link to the weights, a file id from POST /v1/files (.safetensors), or the file link of your own finished training job. |
GET https://api.martllm.com/v1/models/wan/wan-2-1-image-to-video 기준: API가 모든 요청에 적용하는 규칙과 같습니다.
Wan 모델 비교
| 모델 | 모델 ID | 최저가(초당) | 최대 | 최장 |
|---|---|---|---|---|
| Wan 2.1 (image-to-video) | wan/wan-2-1-image-to-video | 720p | 10초 | |
| Wan 2.7 Text-to-Video | wan/wan-2-7-text-to-video | $0.11 | 15초 | |
| Wan 2.2 A14B Text-to-Video | wan/wan-2-2-a14b-text-to-video | $0.0286 | 5초 | |
| Wan 2.5 Preview Text-to-Video | wan/wan-2-5-preview-text-to-video | $0.0336 | 10초 | |
| Wan 2.6 Text-to-Video | wan/wan-2-6-text-to-video | $0.11 | 15초 | |
| Wan 2.6 Flash Image-to-Video | wan/wan-2-6-flash-image-to-video | $0.034 | 1080p | 15초 |
| Wan 2.7 (image-to-video) | wan/wan-2-7-image-to-video | $0.0862 | 1080p | 15초 |
| Wan 2.5 Preview (image-to-video) | wan/wan-2-5-preview-image-to-video | $0.0671 | 1080p | 10초 |
| Wan 2.6 (image-to-video) | wan/wan-2-6-image-to-video | $0.0671 | 1080p | 15초 |
| Wan 2.7 (reference-to-video) | wan/wan-2-7-reference-to-video | $0.0336 | 1080p | 10초 |
Wan 2.1 (image-to-video) API 자주 묻는 질문
Wan 2.1 (image-to-video) 가격은 얼마인가요?
Wan 2.1 (image-to-video)은(는) 표시된 가격대로 청구되며 MartLLM 수수료는 붙지 않습니다. 실패한 요청은 비용이 없습니다.
Wan 2.1 (image-to-video)(으)로 동영상 만드는 방법은?
MartLLM key, 모델 "wan/wan-2-1-image-to-video", 그리고 프롬프트를 사용하여 https://api.martllm.com/v1/video/generations로 POST 요청을 보내세요. job id를 받게 됩니다. https://api.martllm.com/v1/video/generations/<job id>에 요청하여 "succeeded"라고 표시될 때까지 확인한 다음, https://api.martllm.com/v1/media/artifacts/<job id>/0에서 다운로드하세요.