
MAGI-2
Sand AI
Tekst til videoBilde til videoReferanse til videoFra 0,08 $ / s
MAGI-2 genererer opptil 30 sekunders 1080p-videoer med innebygd lyd, multimodale referanser, presis tidslinjekontroll og målrettet videoredigering.
Inndata
Modus
Fyll ut obligatoriske felt for å se prisen
Text To Video · 1080p · 5s
Utgang for tomgang er ikke tilgjengelig
| Varighet | Oppløsning | Type | Pris |
|---|---|---|---|
| output second | 1080p | Bilde til video | 0,08 $ / s |
| Referanse til video | 0,08 $ / s | ||
| Tekst til video | 0,08 $ / s |
* Faktiske kostnader er basert på det endelige resultatet.
Endepunkt
POST
https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/videoModus
Autentisering
Send API-nøkkelen din i forespørselsheaderen for x-api-key.
x-api-key: YOUR_API_KEYVis API-nøklerSend inn oppgave
Opprett en modellgenereringsoppgave.
Forespørsel
curl -X POST 'https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/video' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
}
}'Svar (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"status": "pending"
}Sjekk status
Avspør endepunktet for oppgavestatus til genereringen er fullført.
HTTP-forespørsel
GET /api/platform/v1/generation/{taskId}/status HTTP/1.1
Host: pollo.ai
x-api-key: YOUR_API_KEYSvar (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"credit": 12,
"costUsd": 0.12,
"generations": [
{
"id": "generation_01",
"createdDate": "2026-07-13T07:00:00.000Z",
"updatedDate": "2026-07-13T07:00:12.000Z",
"status": "succeeded",
"failMsg": null,
"url": "https://example.com/output.mp4",
"mediaType": "video"
}
]
}Webhook
Du kan eventuelt inkludere webhookUrl for å motta et tilbakekall når oppgaven lykkes eller mislykkes.
Valgfritt forespørselsfelt
{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
},
"webhookUrl": "https://example.com/webhooks/pollo"
}Skjema
Inndatafelt for det valgte endepunktet og modusen.
| Felt | Type | Obligatorisk | Beskrivelse |
|---|---|---|---|
| prompt | string | Ja | Text prompt describing the content to generate. |
| resolution | string | Ingen | Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive. |
| duration | integer | Ingen | The duration of the generated video, in seconds. |
| aspectRatio | string | Ingen | Output aspect ratio, as width:height (e.g. 16:9). |
| generateAudio | boolean | Ingen | Generate natural-sounding, fitting audio for the output video. |
Feil
Vanlige offentlige API-svarkoder.
- 400
- Ugyldig inndata eller modellbegrensning
- 401
- Manglende eller ugyldig API-nøkkel
- 403
- API-nøkkelen har ikke tilgang
- 404
- Modell eller oppgave ble ikke funnet
Modelldokumentasjon kommer snart.