Sand AImagi-2
Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from hasta 10 reference images, 5 reference videos and 5 audio clips
$0.1/ segundoSin cargo por generaciones fallidas
- Clips de 4–30 segundos
- 1080p
- Native sound
- Hasta 10 imágenes, 5 vídeos, 5 audios
- Modalidad
- Vídeo
- Endpoint
- /v1/videos/generations
- ID del modelo
- magi-2
- Proveedor
- Sand AI
MAGI-2 resumen de la API
Endpoint documentado
Las solicitudes de vídeo van a /v1/videos/generations. La tabla de parámetros de abajo recoge los campos que documenta esta interfaz.
Proveedor del modelo
MAGI-2 lo publica Sand AI y se invoca en la API con el ID de modelo magi-2.
Salida y límites
4–30 segundos in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; hasta 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 2–30 segundos cada uno and 30 seconds in all per kind; prompt obligatorio, hasta 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 precios de la API
| Concepto | Tarifa de ArgoLink |
|---|---|
| 1080p | $0.1 / segundo |
4–30 segundos in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; hasta 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 2–30 segundos cada uno and 30 seconds in all per kind; prompt obligatorio, hasta 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 Referencia de la API
Inicio rápido
Crea una clave de API en la consola y usa la URL base, el endpoint y el cuerpo de la solicitud que se muestran en esta página.
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)
Modos
Texto a vídeo
Solo un prompt
The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 segundos en 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": "Un plano aéreo lento sobre un pinar envuelto en niebla al amanecer",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}'
| Campo | Valor |
|---|---|
prompt | obligatorio, hasta 15,000 characters; describe the camera move, the subject and the mood |
duration | 4–30 segundos enteros, por defecto 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, por defecto 16:9 |
size | píxeles en lugar de resolution más aspect_ratio, así que 1920x1080 is 1080p 16:9 |
Cada solicitud genera un vídeo; seed y watermark no se admiten, y el resultado lleva una pista de audio generada salvo que generate_audio sea false.
Referencia
Sigue las imágenes, el vídeo o el audio que aportes
El resultado sigue al sujeto, el movimiento o el ritmo de los recursos que envías. 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"}]
}'
| Campo | Valor |
|---|---|
prompt | obligatorio, hasta 15,000 characters; describe the camera move, the subject and the mood |
reference_images | hasta 10 imágenes HTTPS, JPEG o PNG |
reference_videos | hasta 5 clips, de 2–30 segundos cada uno y 30 segundos en total |
reference_audios | hasta 5 clips, de 2–30 segundos cada uno y 30 segundos en total |
duration | 4–30 segundos enteros, por defecto 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, por defecto 16:9 |
Los tres tipos se combinan libremente, hasta 20 recursos en total. Los vídeos de referencia se facturan a la tarifa de salida; las imágenes y el audio de referencia son gratis.
Cómo subir y usar recursos de referencia
Tu propio enlace, o un archivo local subido antes
El campo url de start_image, end_image y cada entrada de reference_images, reference_videos y reference_audios es una dirección HTTPS. Un enlace que ya tengas alojado se usa tal cual, siempre que se pueda descargar sin iniciar sesión y todas las redirecciones se mantengan en HTTPS. Un archivo local se sube primero, y el media_url que recibes va en la solicitud.
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"
Pedir un ticket es gratis y no crea ninguna tarea: upload_url es válido durante 15 minutos y el PUT debe llevar el Content-Type que declaraste; el media_url que obtienes a cambio se puede leer durante siete días.
| Campo | Formato | Tamaño | Duración |
|---|---|---|---|
reference_images · start_image · end_image | JPEG o PNG | ≤ 20 MiB | — |
reference_videos | MP4 o MOV | ≤ 100 MiB | 2–30 segundos cada uno |
reference_audios | WAV o MP3 | ≤ 15 MB | 2–30 segundos cada uno |
Un recurso fuera de estos rangos hace fallar la tarea con invalid_input antes de que empiece la generación, y no se cobra nada.
MAGI-2 parámetros completos de la solicitud
| Parámetro | Tipo | Requisito | Qué hace |
|---|---|---|---|
model | string | obligatorio | The catalog identifier for this page: magi-2. |
prompt | string | obligatorio | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. It holds como máximo 15,000 characters. |
duration | integer | opcional | Duración de salida en segundos enteros, de 4 a 30; por defecto 5. |
resolution | string | opcional | Output resolution. This model accepts 1080p only, which is also the default. |
aspect_ratio | string | opcional | Output aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; por defecto 16:9. It applies to reference requests, with or without assets. |
size | string | opcional | 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 | no admitido | Este modelo no admite fotogramas: envía un prompt, o un prompt con recursos de referencia. Un start_image o end_image se rechaza con 400. |
reference_images | array | referencia | URLs HTTPS de imágenes de referencia, hasta 10. Imágenes, vídeos y audio suman como máximo 20 por solicitud. |
reference_videos | array | referencia | HTTPS URLs of reference videos, hasta 5 clips, de 2–30 segundos cada uno y 30 segundos en total. Their seconds are billed like the output's. |
reference_audios | array | referencia | URLs HTTPS de clips de audio de referencia, hasta 5, de 2–30 segundos cada uno y 30 segundos en total. El audio se puede enviar solo. |
seconds · ratio | — | nombres compatibles | Alias de duration y aspect_ratio; envía un solo nombre por valor, nunca ambos. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | nombres compatibles | Los nombres de campo de las solicitudes de fal y OpenRouter también funcionan: image_url equivale a start_image; image_urls, video_urls y audio_urls son las tres listas de referencias; los elementos de frame_images cuyo frame_type es first_frame o last_frame son start_image y end_image; los elementos de input_references de tipo image_url, video_url o audio_url son referencias. Da a cada entrada un solo nombre. |
n | integer | opcional | Debe ser 1 u omitirse; cada solicitud produce exactamente un vídeo. |
generate_audio | boolean | opcional | Defaults to true: MAGI-2 scores the video itself. Send false for a silent result. |
seed · watermark | — | no admitido | No disponible en este modelo: cualquier seed, o watermark: true, se rechaza con 400. |
request_id | string | campo de respuesta | Lo devuelve la llamada de envío y es el único identificador que aceptan los endpoints de estado y de contenido. |
progress · estimated_seconds_remaining | integer | campo de respuesta | Lo devuelve el endpoint de estado mientras status es pending: progress estima cuánto ha avanzado la tarea, de 0 a 99, y estimated_seconds_remaining cuántos segundos faltan; este último se omite hasta que haya una estimación. progress es 100 cuando status es done. |
video.url | string | campo de respuesta | Enlace de descarga del MP4 terminado cuando status es done: un enlace de ArgoLink que cualquiera puede abrir sin la clave de API, durante 30 días. |
usage | object | campo de respuesta | Se devuelve cuando status es done: output_seconds, reference_video_seconds y billed_seconds, su suma, que es lo que se factura por la tarea. |
MAGI-2 API frente a modelos similares
| Modelo | ID del modelo | Proveedor | Tarifa | Ideal para |
|---|---|---|---|---|
| MAGI-2 | magi-2 | Sand AI | $0.1 / segundo | Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from hasta 10 reference images, 5 reference videos and 5 audio clips |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / segundo | El modelo de vídeo Seedance más capaz hasta ahora: clips de 30 segundos, hasta 50 recursos de referencia y compatibilidad nativa con referencias de personas reales, sin aprobación manual ni verificación adicional |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / segundo | Generación de vídeo en 480p, 720p y 1080p facturada por segundo de salida |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0455 / segundo | 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, hasta 10 reference images and 3 reference videos, or as an edit of a video |
Otros modelos de la misma modalidad
- Seedance 2.5El modelo de vídeo Seedance más capaz hasta ahora: clips de 30 segundos, hasta 50 recursos de referencia y compatibilidad nativa con referencias de personas reales, sin aprobación manual ni verificación adicional$0.0874 / segundo
- Grok Imagine Video 1.5Generación de vídeo en 480p, 720p y 1080p facturada por segundo de salida$0.032 / segundo
- 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, hasta 10 reference images and 3 reference videos, or as an edit of a video$0.0455 / segundo
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from hasta 10 reference images and 5 reference videos, with a soundtrack of its own$0.1413 / segundo
MAGI-2 preguntas frecuentes sobre la API
¿Cómo llamo a MAGI-2?
Create an API key in the console and POST https://argolink.io/v1/videos/generations con model establecido en 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, la dirección que el estado devuelve como video.url.
¿Cuánto cuesta MAGI-2?
Por segundo de salida, desde $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.
¿Qué modos de entrada admite MAGI-2?
Todo en el mismo endpoint: reference (a prompt alone, or with images, videos and audio as references: hasta 10 reference_images, 5 reference_videos y 5 reference_audios, 20 en total, en cualquier combinación). Every asset is an HTTPS URL.
¿Qué no admite MAGI-2?
Más de un vídeo por solicitud (n debe ser 1 u omitirse), cualquier seed o watermark: true; todos devuelven 400. La salida es un vídeo H.264 en MP4 con una pista de audio generada salvo que generate_audio sea false.
¿Los vídeos de MAGI-2 tienen sonido?
Por defecto, sí: MAGI-2 scores the video itself. Send generate_audio: false for a silent result.