# Magi-2

> Magi-2, Sand AI'ın video modelidir: Tek bir üretimde bir istemden, ilk ve son kareden ya da referans görsellerden, videodan ve sesten 4 ila 30 saniyelik sesli 1080p video oluşturur. Kerox'ta çıktının saniyesi başına faturalandırılır; sesli veya sessiz, tüm modlarda aynı saniye başı ücret uygulanır. Studio'da açın veya sand-ai/magi-2 model kimliğiyle API'yi çağırın.

Magi-2, Sand AI tarafından geliştirilen bir yapay zeka video oluşturma aracıdır. sand-ai/magi-2 model kimliğiyle Kerox API'ye istek göndererek kullanın veya kod yazmadan Studio'da oluşturun. Kerox'ta fiyatları şu tutardan başlar: $0.0800 / saniye; abonelik gerekmez.

## Fiyatlandırma

| Model | ID | Faturalandırma | Kerox fiyatı | İndirim |
| --- | --- | --- | --- | --- |
| Magi-2 | `sand-ai/magi-2` | Saniye başına | 1080p: $0.0800 | — |

- [Magi-2 fiyatlandırması](https://kerox.ai/tr/pricing#pricing-sand-ai/magi-2)
- [Magi-2 API belgeleri](https://kerox.ai/tr/docs/models/sand-ai/magi-2)
- [Magi-2](https://kerox.ai/tr/models/sand-ai/magi-2)

## Magi-2 hakkında

Magi-2, Sand AI'ın amiral gemisi video modelidir; Ağustos ayındaki açık kaynaklı Magi-2 Preview'ın ardından 24 Kasım 2026'da kullanıma sunulmuştur. Sand AI, görüntüyü ve sesi tek bir modelde oluşturur: Tek bir Transformer metni, videoyu ve sesi birlikte okur; böylece klibin tüm sesi görüntüyle birlikte üretilir. Aşağıdaki bilgiler Sand AI'ın lansman duyurusundan alınmıştır.

### Sand AI'ın Magi-2 hakkında söyledikleri

- **Tek seferde 30 saniyeye kadar 1080p.** Sand AI, tek bir üretimde saniyede 25 kare hızında 30 saniyeye kadar 1080p video ve ses oluşturur. 1080p çıktı, temel üretimin ardından çözünürlüğü yükselten bir adımla elde edilir.
- **Ses de aynı modelden.** Dudak senkronizasyonlu diyaloglar, ses efektleri, ortam sesleri ve müzik sonradan eklenmez; görüntüyle birlikte üretilir.
- **Metin, video ve ses için tek akış.** Sand AI, toplamda yaklaşık 480 milyar, aktif olarak yaklaşık 28 milyar parametreye sahip, tek akışlı bir uzmanlar karışımı (mixture-of-experts) Transformer modelinden söz ediyor.
- **Çok modlu referanslar.** Bir üretim en fazla 10 görsel, 5 video ve 5 ses klibiyle yönlendirilebilir.
- **Uzun çekimlerde tutarlı.** Sand AI, talimatlara uyumu, karmaşık kompozisyonu ve uzun videolarda uzamsal ve zamansal tutarlılığı öne çıkarıyor.

Sand AI ayrıca mevcut bir videoyu düzenleme ve zaman çizelgesi kontrolü özelliklerini de tanıtıyor. Bunlar henüz Kerox'ta mevcut değil.

Kerox'ta Magi-2, 4 ila 30 saniye arasında, 16:9, 9:16, 1:1, 4:3, 3:4 veya 21:9 oranında, varsayılan olarak sesli 1080p video oluşturur. Bir istek yalnızca bir istem, isteğe bağlı bir son kareyle birlikte bir ilk kare ya da en fazla 10 referans görsel, 5 referans video ve 5 referans ses klibi içerebilir. İlk kare kullanıldığında video, karenin en boy oranını korur. Fiyat üç modda da aynıdır. Nasıl çağrılır, maliyeti nedir ve alternatifleri nelerdir: [Magi-2 API rehberi](https://kerox.ai/tr/blog/magi-2-api)

## Magi-2 nasıl kullanılır

1. **Bakiye yükleyin** En az $10 tutarında bakiye yükleyin. Abonelik yoktur ve bakiyenizin süresi dolmaz.
2. **Videoyu ayarlayın** Bir istem yazın, süreyi ve en boy oranını seçin, gerekirse bir ilk kare veya referans dosyaları ekleyin. Bu ayarların fiyatı, başlamadan önce gösterilir.
3. **Oluşturun ve indirin** Tutar, başlattığınızda bloke edilir ve video tamamlandığında tahsil edilir. Başarısız bir üretimin ücreti tamamen iade edilir.

## Magi-2 ile neler yapabilirsiniz

- **Metinden sesli videoya.** Yalnızca bir istemle, en fazla 30 saniyelik, doğal sesli 1080p bir klip elde edersiniz.
- **Görselden videoya.** Bir ilk kareden başlayın ya da ilk ve son kareyi belirleyip aradaki hareketi modele bırakın.
- **Referanslarla yönlendirilen videolar.** Bir öznenin, ürünün veya mekânın görsellerini ekleyin ve çevresindeki sahneyi tarif edin.
- **Diyaloglu sahneler.** Replikleri tırnak içinde yazın; model bunları konuşan kişinin dudaklarıyla senkronize şekilde seslendirir.
- **Referans sese uyan klipler.** Bir insan sesi, ritim ya da müzik parçası için toplamda en fazla 30 saniyelik referans ses ekleyin.

## Magi-2 ile Kerox'taki diğer modellerin karşılaştırması

Bunların hepsi aynı bakiyeyle ve aynı API üzerinden kullanılır. Geçiş yapmak için model kimliğini değiştirin ve diğer modelin desteklediği ayarları kullanın. Başlangıç fiyatları tabloda yer alır.

| Model | Ne zaman seçmelisiniz | Başlangıç fiyatı |
| --- | --- | --- |
| [Magi-2](https://kerox.ai/tr/models/sand-ai/magi-2) | Sand AI'ın video modeli, 1080p çözünürlükte 4 ila 30 saniyelik sesli videolar oluşturur ve tüm modlarda tek fiyat uygular. Diyalog veya ses içeren uzun 1080p klipler için tercih edin. | 1080p: $0.0800 |
| [Seedance 2.5](https://kerox.ai/tr/models/bytedance/seedance-2.5) | ByteDance'in video modeli, 480p, 720p veya 1080p çözünürlükte 4 ila 30 saniyelik videolar oluşturur ve en fazla 30 referans görseli destekler. Daha düşük bir çözünürlük ya da çok sayıda referans istediğinizde tercih edin. | Yaklaşık $0.0977 / sn'den başlayan fiyatlarla (480p) |
| [Kling 4.0](https://kerox.ai/tr/models/kuaishou/kling-4.0) | Kuaishou'nun video modeli; 720p, 1080p veya 4K çözünürlükte 3 ila 30 saniye. 4K'ya ihtiyacınız olduğunda tercih edin. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/tr/models/alibaba/wan-3.0) | Alibaba'nın video modeli; 1080p'ye kadar çözünürlükte 2 ila 30 saniye. 4 saniyeden kısa klipler için tercih edin. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |
| [MiniMax H3](https://kerox.ai/tr/models/minimax/h3) | MiniMax'in video modeli; 768p veya 2K çözünürlükte 4 ila 15 saniye. Kısa 2K klipler için tercih edin. | 2K: $0.0650, 768p: $0.0400 |

## SSS

### Magi-2 modelinin ücreti ne kadar?

Kerox'ta Magi-2 modelinin fiyatları şu tutardan başlar: $0.0800 / saniye. Oluşturma başına ödersiniz ve oluşturma işlemi başarısız olursa ücret alınmaz. Bu sayfadaki fiyat tablosu tüm seçenekleri listeler.

### Magi-2 modelinin API'si var mı?

Evet. sand-ai/magi-2 model kimliğiyle Kerox API'ye bir görev isteği gönderin; ardından görevin durumunu düzenli aralıklarla sorgulayın veya görev tamamlandığında bir Webhook bildirimi alın. Magi-2 için API belgeleri, tüm parametreleri kod örnekleriyle birlikte listeler.

### Magi-2 modelini kod yazmadan çevrimiçi kullanabilir miyim?

Evet. Magi-2 modelini Kerox Studio içinde açın, bir istem yazın ve tarayıcınızda oluşturun. Studio ve API aynı bakiyeyi kullanır.

### Magi-2 modelini kullanmak için abonelik gerekir mi?

Hayır. Abonelik planı veya aylık ücret yoktur. En az $10 tutarında bakiye yükleyerek başlayın ve yalnızca oluşturduğunuz içerikler için ödeme yapın.

### Magi-2 modelini nasıl kullanırım?

Kerox'ta oturum açın, Magi-2 modelini Studio'da açın, bir istem yazın ve tarayıcınızda oluşturun. Kod üzerinden kullanmak için bir API anahtarı oluşturun ve sand-ai/magi-2 model kimliğiyle bir görev isteği gönderin.

### Magi-2 modelini kullanmak ücretsiz mi?

Magi-2, Kerox'ta ücretli bir modeldir: her başarılı oluşturma bu sayfadaki fiyattan ücretlendirilir; oluşturma işlemi başarısız olursa ücret alınmaz. Aylık ücret yoktur ve $10 tutarında bir bakiye yüklemesiyle başlayabilirsiniz.

### Bir Magi-2 videosu ne kadar uzun olabilir?

Tek bir üretimde 4 ila 30 saniye; süreyi tam saniye olarak seçersiniz. Varsayılan süre 5 saniyedir. Her klip 1080p çözünürlüktedir ve yalnızca üretilen klibin süresi faturalandırılır.

### Magi-2 ses üretiyor mu?

Evet. Ses varsayılan olarak açıktır: Sand AI, görüntüyle birlikte dudak hareketleriyle senkronize diyaloglar, ses efektleri, ortam sesi ve müzik üretir. Sessiz bir klip için `generate_audio` değerini false olarak ayarlayın veya Studio'da Ses oluştur seçeneğini kapatın. Saniye başına fiyat her iki durumda da aynıdır.

### Magi-2 istemimi nasıl yazmalıyım?

İstemi her çekimi ayrı ayrı ele alarak, olayların gerçekleştiği sırayla yazın ve kameranın nerede olduğunu belirtin. Konuşmaları tırnak içinde, kelimesi kelimesine yazın ve kimin söylediğini belirtin. İstediğiniz sesi de tanımlayın: Sand AI'ın Magi-2 Preview için hazırladığı istem kılavuzu, diyaloğu orijinal dilinde tutar ve bir klibi kesmelerle birbirine bağlanan çekimlere ayırır.

### Magi-1, Magi-2 Preview ve Magi-2 arasındaki fark nedir?

Bunlar Sand AI'ın üç farklı model neslidir. Nisan 2025'te Apache 2.0 lisansıyla yayımlanan Magi-1, videoyu otoregresif olarak, parça parça üretir. Ağustos 2026'da Apache 2.0 lisansıyla açık kaynak hâline getirilen Magi-2 Preview, sesli 10 saniyelik klipler üretir. Kasım 2026'da kullanıma sunulan Magi-2 ise Preview sürümünün verisinin yaklaşık üç katıyla eğitilmiş daha büyük bir modeldir ve 1080p çözünürlükte 30 saniyeye kadar sesli video üretir. Kerox, Magi-2'yi çalıştırır. Magi-2'nin model ağırlıkları henüz açık kaynak olarak yayımlanmadı: Sand AI, açık kaynak sürümlerin ve bir teknik raporun ileride yayımlanacağını belirtiyor.


---

## Request example

Submit a task and get its id at once; get the result by polling (below) or by [webhook](https://kerox.ai/tr/docs/webhooks.md). `webhook_url` and `metadata` are optional. To use a webhook, provide your own public HTTPS address in `webhook_url`. Every field is in [Submit a task](https://kerox.ai/tr/docs/tasks.md#submit-body).

Set `KEROX_API_KEY` first. Polling requires Bash, curl and jq. For Python, run `pip install requests` first.

### cURL

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### Python

```python
import os
import requests

resp = requests.post(
    "https://api.kerox.ai/v1/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['KEROX_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "sand-ai/magi-2",
        "input": {
            "prompt": "a red fox running through fresh snow, cinematic lighting",
            "resolution": "1080p",
            "duration": 5,
            "aspect_ratio": "16:9",
        },
    },
    timeout=60,
)
resp.raise_for_status()
task = resp.json()
print(task["id"], task["status"])  # Save the id for polling
```

### Node.js

```javascript
const res = await fetch('https://api.kerox.ai/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.KEROX_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "sand-ai/magi-2",
    "input": {
      "prompt": "a red fox running through fresh snow, cinematic lighting",
      "resolution": "1080p",
      "duration": 5,
      "aspect_ratio": "16:9"
    }
  }),
});
const task = await res.json();
if (!res.ok) throw new Error(JSON.stringify(task));
console.log(task.id, task.status); // Save the id for polling
```

### Go

```go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	body := []byte(`{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}`)
	req, _ := http.NewRequest("POST", "https://api.kerox.ai/v1/tasks", bytes.NewReader(body))
	req.Header.Set("Authorization", "Bearer "+os.Getenv("KEROX_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	out, _ := io.ReadAll(resp.Body)
	if resp.StatusCode >= 400 {
		fmt.Fprintln(os.Stderr, string(out))
		os.Exit(1)
	}
	fmt.Println(string(out))
}
```

### Reference image

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Image 1: the lighthouse beam sweeps slowly across the water",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ]
  }
}'
```

### First frame

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "A lighthouse beam sweeps slowly across the waves",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
  }
}'
```

### First and last frames

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Slowly dissolve from the coast to the cabin by the lake",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp",
    "last_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.0-pro/alpine-cabin-dawn.webp"
  }
}'
```

### Reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Use the camera motion of Video 1 for a flyover of a rocky coastline",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

### Reference audio

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Show a dinosaur at dusk and time its roar to Audio 1",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "audios": [
      "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
    ]
  }
}'
```

## Parameters

The [parameter names](https://kerox.ai/tr/docs/models.md) mean the same on every model.

| Parameter | Type | Required | Default | Values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `prompt` | string | No | — | at least one non-whitespace character; 1–15000 characters | Text describing what to generate. | `"A lighthouse at dawn"` |
| `images` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–10 items | Images for the model to draw on, in the order the prompt refers to them. | `"https://example.com/photo.png"` |
| `videos` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | Videos for the model to draw on, in the order the prompt refers to them. | `"https://example.com/clip.mp4"` |
| `audios` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | Audio clips for the model to draw on, in the order the prompt refers to them. | `"https://example.com/music.wav"` |
| `first_frame` | string | No | — | one public HTTPS URL | The image a video starts from. | `"https://example.com/start.png"` |
| `last_frame` | string | No | — | one public HTTPS URL | The image a video ends on. Needs `first_frame`. | `"https://example.com/end.png"` |
| `aspect_ratio` | string | No | — | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"1080p"` | 1080p | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"1080p"` |
| `duration` | integer | No | `5` | 4–30 | Length of the output in whole seconds. | `5` |
| `seed` | integer | No | — | 0–2147483647 | The same seed and input give a similar result. | `0` |
| `generate_audio` | boolean | No | `true` | true, false | Whether the video comes with generated sound (voice, effects, music). | `true` |
| `n` | integer | No | `1` | 1 | How many outputs one task may produce. | `1` |

- last_frame requires first_frame
- When first_frame: omit images or videos or audios
- Supply a prompt for text or reference generation. With a first frame the prompt is optional. With a first frame the video follows the frame's aspect ratio and `aspect_ratio` has no effect; the other modes use 16:9 when it is omitted.
- Only output seconds are billed. Reference media and the audio switch do not change the price.

Use a public HTTPS URL directly for images, audio and video. For local media, upload with `POST /v1/files` and pass the returned `url`. For upload MIME and size limits, see [Files & inputs](https://kerox.ai/tr/docs/files.md#presigned).

Not supported yet: `watermark`.

## Polling and output

Poll `GET /v1/tasks/{id}`, or pass `webhook_url` when you submit and receive the same task object when it finishes: see [Webhooks](https://kerox.ai/tr/docs/webhooks.md) for the setup. Output files expire at `expires_at` (7 days after completion), so download anything you want to keep. See every task field in [Tasks & polling](https://kerox.ai/tr/docs/tasks.md#submit-response).

Set `TASK_ID` to the `id` returned on submission. The script waits up to 10 minutes, prints `error` on failure and downloads every `outputs[].url` on success.

```bash
(
  set -eu
  # Set TASK_ID to the id returned by the submit request.
  : "${TASK_ID:?Set TASK_ID}"
  deadline=$((SECONDS + 600))
  while (( SECONDS < deadline )); do
    task=$(curl --fail-with-body --silent --show-error --max-time "$((deadline - SECONDS))" https://api.kerox.ai/v1/tasks/"$TASK_ID" \
      -H "Authorization: Bearer $KEROX_API_KEY")
    case $(jq -er .status <<< "$task") in
      succeeded)
        if ! jq -e '.outputs | length > 0' <<< "$task" >/dev/null; then
          echo "Result files are unavailable." >&2
          exit 1
        fi
        i=0
        while IFS= read -r url; do
          file_path=${url%%\?*}
          filename="output-${i}.${file_path##*.}"
          curl --fail-with-body --silent --show-error --max-time 120 "$url" -o "$filename"
          printf "%s\n" "$filename"
          i=$((i + 1))
        done < <(jq -r '.outputs[].url' <<< "$task")
        exit 0 ;;
      failed) jq -c .error <<< "$task" >&2; exit 1 ;;
      processing) sleep 2 ;;
      *) echo "Unexpected task status." >&2; exit 1 ;;
    esac
  done
  echo "Poll timed out. Keep TASK_ID to check again later." >&2
  exit 1
)
```

### Success response JSON

Actual charges depend on your account price and task result.

```json
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "sand-ai/magi-2",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.mp4",
      "content_type": "video/mp4",
      "width": 1920,
      "height": 1080,
      "duration": 5
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.4000",
    "currency": "USD",
    "status": "settled"
  },
  "metadata": null,
  "warnings": [],
  "created_at": "2026-11-20T08:00:00Z",
  "started_at": "2026-11-20T08:00:01Z",
  "completed_at": "2026-11-20T08:01:10Z",
  "expires_at": "2026-11-27T08:01:10Z"
}
```

## Pricing

| Tier | Official / second | Kerox / second | Below official price |
| --- | --- | --- | --- |
| 1080p | $0.0800 | $0.0800 | — |

### Estimate before submitting

The returned `amount` is what submitting would hold. An estimate creates no task and charges nothing. When `exact` is `false`, the final charge may differ from the hold.

### Without a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### With a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

## Common usage

| Clip | Official price | Kerox | You save |
| --- | --- | --- | --- |
| 5 s · 1080p | $0.4000 | $0.4000 | — |
| 10 s · 1080p | $0.8000 | $0.8000 | — |
| 15 s · 1080p | $1.2000 | $1.2000 | — |

- **$10 gets you**: 125 seconds of 1080p video

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "first_frame"
        ],
        "properties": {
          "first_frame": true
        }
      },
      "else": {
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": true
        }
      },
      "then": {
        "not": {
          "anyOf": [
            {
              "required": [
                "images"
              ],
              "properties": {
                "images": true
              }
            },
            {
              "required": [
                "videos"
              ],
              "properties": {
                "videos": true
              }
            },
            {
              "required": [
                "audios"
              ],
              "properties": {
                "audios": true
              }
            }
          ]
        }
      }
    }
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "maxLength": 15000,
      "minLength": 1,
      "description": "Text describing what to generate.",
      "x-label-en": "Prompt",
      "x-label-zh": "提示词",
      "x-tier": "common"
    },
    "images": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 10,
          "minItems": 1
        }
      ],
      "description": "Images for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference images",
      "x-label-zh": "参考图",
      "x-tier": "common"
    },
    "videos": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "description": "Videos for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference videos",
      "x-label-zh": "参考视频",
      "x-tier": "advanced"
    },
    "audios": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "description": "Audio clips for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference audio",
      "x-label-zh": "参考音频",
      "x-tier": "advanced"
    },
    "first_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video starts from.",
      "x-label-en": "First frame",
      "x-label-zh": "首帧",
      "x-tier": "common"
    },
    "last_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video ends on. Needs `first_frame`.",
      "x-label-en": "Last frame",
      "x-label-zh": "尾帧",
      "x-tier": "advanced"
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4",
        "21:9"
      ],
      "type": "string",
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "enum": [
        "1080p"
      ],
      "type": "string",
      "default": "1080p",
      "description": "Output resolution tier. The exact pixels follow from it and `aspect_ratio`.",
      "x-label-en": "Resolution",
      "x-label-zh": "分辨率",
      "x-tier": "common"
    },
    "duration": {
      "type": "integer",
      "default": 5,
      "maximum": 30,
      "minimum": 4,
      "description": "Length of the output in whole seconds.",
      "x-label-en": "Duration",
      "x-label-zh": "时长",
      "x-tier": "common"
    },
    "seed": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0,
      "description": "The same seed and input give a similar result.",
      "x-label-en": "Seed",
      "x-label-zh": "随机种子",
      "x-tier": "advanced"
    },
    "generate_audio": {
      "type": "boolean",
      "default": true,
      "description": "Whether the video comes with generated sound (voice, effects, music).",
      "x-label-en": "Generate audio",
      "x-label-zh": "生成声音",
      "x-tier": "common"
    },
    "n": {
      "type": "integer",
      "const": 1,
      "default": 1,
      "description": "How many outputs one task may produce.",
      "x-label-en": "Number of outputs",
      "x-label-zh": "生成数量",
      "x-tier": "advanced"
    }
  },
  "x-unsupported": [
    "watermark"
  ],
  "dependentRequired": {
    "last_frame": [
      "first_frame"
    ]
  },
  "additionalProperties": false
}
```
