Sand AImagi-2
Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from 최대 10 reference images, 5 reference videos and 5 audio clips
$0.1/ 초생성 실패 시 과금 없음
- 4–30초 클립
- 1080p
- Native sound
- 이미지 최대 10장, 동영상 5개, 오디오 5개
- 모달리티
- 동영상
- 엔드포인트
- /v1/videos/generations
- 모델 ID
- magi-2
- 제공업체
- Sand AI
MAGI-2 API 개요
문서화된 엔드포인트
동영상 요청은 다음 엔드포인트로 보냅니다: /v1/videos/generations. 아래 파라미터 표에 이 엔드포인트에서 문서화된 필드가 나와 있습니다.
모델 제공업체
MAGI-2 제공업체: Sand AI · API 모델 ID: magi-2.
출력과 제한
4–30초 in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; 최대 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 각 2–30초 and 30 seconds in all per kind; prompt 필수, 최대 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API 가격
| 항목 | ArgoLink 가격 |
|---|---|
| 1080p | $0.1 / 초 |
4–30초 in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; 최대 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 각 2–30초 and 30 seconds in all per kind; prompt 필수, 최대 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API 레퍼런스
빠른 시작
콘솔에서 API 키를 만든 다음, 이 페이지에 나온 베이스 URL, 엔드포인트, 요청 본문을 사용하세요.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "magi-2", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
모드
텍스트로 동영상 생성
프롬프트만으로 생성
The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 초, 1080p 16:9.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "해 뜰 무렵 안개 낀 소나무 숲 위를 천천히 지나가는 항공 숏",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}'
| 필드 | 값 |
|---|---|
prompt | 필수, 최대 15,000 characters; describe the camera move, the subject and the mood |
duration | 4–30 사이의 정수 초, 기본값 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, 기본값 16:9 |
size | resolution과 aspect_ratio 대신 쓰는 픽셀 값, 예를 들어 1920x1080 is 1080p 16:9 |
요청 하나에 동영상 하나를 렌더링합니다. seed와 watermark는 지원하지 않으며, generate_audio가 false가 아니면 결과물에 생성된 사운드트랙이 들어갑니다.
참조
직접 제공한 이미지, 동영상 또는 오디오를 따라 생성
결과물은 보낸 소재의 피사체, 움직임 또는 비트를 따릅니다. Every asset you send is used; the prompt says what to do with them.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The person in the reference walks into a rainy street at night",
"duration": 5,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The girl dances to the beat, moving like the dancer in the reference clip",
"duration": 10,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| 필드 | 값 |
|---|---|
prompt | 필수, 최대 15,000 characters; describe the camera move, the subject and the mood |
reference_images | HTTPS 이미지 최대 10장, JPEG 또는 PNG |
reference_videos | 최대 5 개 클립, 각 2–30초 (합계 30초 이내) |
reference_audios | 최대 5 개 클립, 각 2–30초 (합계 30초 이내) |
duration | 4–30 사이의 정수 초, 기본값 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, 기본값 16:9 |
세 종류를 자유롭게 섞을 수 있으며, 소재는 합계 최대 20개입니다. 참조 동영상은 출력 단가로 청구되고, 참조 이미지와 오디오는 무료입니다.
참조 소재를 업로드하고 사용하는 방법
자체 링크 또는 먼저 업로드한 로컬 파일
start_image와 end_image의 url, 그리고 reference_images, reference_videos, reference_audios 각 항목의 url은 모두 HTTPS 주소입니다. 이미 호스팅 중인 링크는 로그인 없이 내려받을 수 있고 모든 리디렉션이 HTTPS로 유지되는 한 그대로 넣으면 됩니다. 로컬 파일은 먼저 업로드한 뒤, 돌려받은 media_url을 요청에 넣으세요.
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"magi-2\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
티켓 요청은 무료이며 작업을 만들지 않습니다. upload_url은 15분 동안 유효하고, PUT 요청에는 선언한 Content-Type을 그대로 실어야 합니다. 이 티켓으로 교환받는 media_url은 7일 동안 읽을 수 있습니다.
| 필드 | 형식 | 크기 | 길이 |
|---|---|---|---|
reference_images · start_image · end_image | JPEG 또는 PNG | ≤ 20 MiB | — |
reference_videos | MP4 또는 MOV | ≤ 100 MiB | 각 2–30초 |
reference_audios | WAV 또는 MP3 | ≤ 15 MB | 각 2–30초 |
이 범위를 벗어난 소재가 있으면 생성이 시작되기 전에 작업이 invalid_input으로 실패하며, 요금은 청구되지 않습니다.
MAGI-2 전체 요청 파라미터
| 파라미터 | 타입 | 요구 사항 | 역할 |
|---|---|---|---|
model | string | 필수 | The catalog identifier for this page: magi-2. |
prompt | string | 필수 | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. It holds 최대 15,000 characters. |
duration | integer | 선택 | 출력 길이(정수 초), 4–30; 기본값은 5입니다. |
resolution | string | 선택 | Output resolution. This model accepts 1080p only, which is also the default. |
aspect_ratio | string | 선택 | Output aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; 기본값 16:9. It applies to reference requests, with or without assets. |
size | string | 선택 | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (1080 for 1080p) and the shape picks the ratio, so 1920x1080 is 1080p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. |
start_image · end_image | object | 지원 안 함 | 이 모델은 프레임을 받지 않습니다. 프롬프트만 보내거나 프롬프트와 참조 소재를 함께 보내세요. start_image나 end_image는 400으로 거부됩니다. |
reference_images | array | 참조 모드 | 참조 이미지의 HTTPS 주소 목록으로, 최대 10장입니다. 이미지, 동영상, 오디오는 요청당 합계 20개까지입니다. |
reference_videos | array | 참조 모드 | HTTPS URLs of reference videos, 최대 5 개 클립, 각 2–30초 (합계 30초 이내). Their seconds are billed like the output's. |
reference_audios | array | 참조 모드 | 참조 오디오 클립의 HTTPS 주소 목록으로, 최대 5개, 각 2–30초, 합계 30초까지입니다. 오디오만 보낼 수도 있습니다. |
seconds · ratio | — | 호환 필드 이름 | duration과 aspect_ratio의 별칭입니다. 값마다 한 가지 이름만 보내고, 둘을 함께 보내지 마세요. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | 호환 필드 이름 | fal과 OpenRouter 요청의 필드 이름도 사용할 수 있습니다. image_url은 start_image이고, image_urls, video_urls, audio_urls는 세 가지 참조 목록입니다. frame_images 항목 중 frame_type이 first_frame 또는 last_frame인 항목은 각각 start_image와 end_image이고, input_references 항목 중 type이 image_url, video_url, audio_url인 항목은 참조입니다. 입력마다 이름은 하나만 쓰세요. |
n | integer | 선택 | 1이거나 생략해야 합니다. 요청마다 동영상을 정확히 하나 생성합니다. |
generate_audio | boolean | 선택 | Defaults to true: MAGI-2 scores the video itself. Send false for a silent result. |
seed · watermark | — | 지원 안 함 | 이 모델에서는 지원하지 않습니다. seed(어떤 값이든)나 watermark: true를 보내면 400으로 거부됩니다. |
request_id | string | 응답 필드 | 제출 호출이 반환하는 값으로, 상태 엔드포인트와 콘텐츠 엔드포인트가 받는 유일한 식별자입니다. |
progress · estimated_seconds_remaining | integer | 응답 필드 | status가 pending인 동안 상태 엔드포인트가 반환합니다. progress는 작업 진행 정도의 추정치(0–99)이고, estimated_seconds_remaining은 남은 예상 초 수이며, 추정치가 생기기 전에는 생략됩니다. status가 done이 되면 progress는 100입니다. |
video.url | string | 응답 필드 | status가 done이 되면 받을 수 있는 완성된 MP4의 다운로드 링크입니다. API 키 없이 누구나 열 수 있는 ArgoLink 링크이며 30일 동안 유효합니다. |
usage | object | 응답 필드 | status가 done이 되면 output_seconds, reference_video_seconds, 그리고 두 값의 합인 billed_seconds를 반환하며, 작업은 이 합계로 청구됩니다. |
MAGI-2 API와 유사 모델 비교
| 모델 | 모델 ID | 제공업체 | 가격 | 적합한 작업 |
|---|---|---|---|---|
| MAGI-2 | magi-2 | Sand AI | $0.1 / 초 | Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from 최대 10 reference images, 5 reference videos and 5 audio clips |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / 초 | 지금까지 가장 강력한 Seedance 동영상 모델: 30초 클립, 참조 소재 최대 50개, 실존 인물 참조 네이티브 지원, 수동 승인이나 추가 인증 불필요 |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / 초 | 480p, 720p, 1080p 동영상 생성, 출력 초 단위로 청구 |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0455 / 초 | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 최대 10 reference images and 3 reference videos, or as an edit of a video |
같은 모달리티의 다른 모델
- Seedance 2.5지금까지 가장 강력한 Seedance 동영상 모델: 30초 클립, 참조 소재 최대 50개, 실존 인물 참조 네이티브 지원, 수동 승인이나 추가 인증 불필요$0.0874 / 초
- Grok Imagine Video 1.5480p, 720p, 1080p 동영상 생성, 출력 초 단위로 청구$0.032 / 초
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 최대 10 reference images and 3 reference videos, or as an edit of a video$0.0455 / 초
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from 최대 10 reference images and 5 reference videos, with a soundtrack of its own$0.1413 / 초
MAGI-2 API 자주 묻는 질문
MAGI-2 모델은 어떻게 호출하나요?
Create an API key in the console and POST https://argolink.io/v1/videos/generations · model 값: magi-2. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content에서 받으세요. 상태 응답에서는 이 주소가 다음 필드로 제공됩니다: video.url.
MAGI-2의 비용은 얼마인가요?
출력 초 단위로 청구, 최저 $0.1 per second at the lowest tier; each tier in the pricing table has its own per-second rate, multiplied by the video's length. Reference videos are billed at the same per-second rate: billed seconds are the output seconds plus the reference videos' total seconds, with any part of a second left off, so a 5-second video with a 2.4-second reference video bills 7 seconds. Reference images and audio are free. Only a completed video is billed; a failed or rejected job costs nothing.
MAGI-2 모델은 어떤 입력 모드를 지원하나요?
모두 같은 엔드포인트에서 처리합니다: reference (a prompt alone, or with images, videos and audio as references: 최대 10 reference_images, 5 reference_videos 및 5 reference_audios, 20 (합계), 어떤 조합이든 가능). Every asset is an HTTPS URL.
MAGI-2 모델이 지원하지 않는 것은 무엇인가요?
요청당 동영상 2개 이상(n은 1이거나 생략해야 함), seed(어떤 값이든), watermark: true. 이런 요청은 400을 반환합니다. 출력은 H.264 MP4이며, generate_audio가 false가 아니면 생성된 사운드트랙이 포함됩니다.
MAGI-2 동영상에 소리가 있나요?
네, 기본적으로는 그렇습니다: MAGI-2 scores the video itself. Send generate_audio: false for a silent result.