Przejdź do treści

Grok Imagine Video 1.5 Text to Video

Integracja

Identyfikator modelu xai/grok-imagine-video/v1.5/text-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/v1.5/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Three tiny anthropomorphic kittens sit on a park bench. One combs another’s fur with a tiny brush while the third stands and holds the tip jar out toward the camera, gesturing with its free paw. They suddenly all start waving and meowing excitedly as a leaf floats by. A colorful sign in front reads “Tips for cuteness overload ” Soft afternoon sunlight through trees, realistic fur and expressive faces, gentle camera push.",
    "duration": 5,
    "resolution": "480p",
    "aspect_ratio": "16:9"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

To żądanie: 0,40 $ 400 kredytów API Uruchom na tej stronie

Uzyskaj klucz API
xAI Tekst na wideo 1–15 sdo 1080p #stylized#flexible-length#budget

Model wideo xAI, obsługujący dowolną długość od 1 do 15 sekund i rozdzielczość od 480p do 1080p.

Przykłady

Wynik · ~44 s

PromptThree tiny anthropomorphic kittens sit on a park bench. One combs another’s fur with a tiny brush while the third stands and holds the tip jar out toward the camera, gesturing with its free paw. They suddenly all start waving and meowing excitedly as a leaf floats by. A colorful sign in front reads “Tips for cuteness overload ” Soft afternoon sunlight through trees, realistic fur and expressive faces, gentle camera push.

5 s480p16:90,40 $ · 400 kredytów API

Prompt od @JayKay65220066 na X

Zbuduj żądanie

Elementy sterujące są generowane ze schematu modelu. Kod i cena aktualizują się podczas ich zmiany.

•wymagane 424 / 4096

Opis określający, jakie wideo należy utworzyć.

resolution

Rozdzielczość wynikowego wideo.

aspect_ratio

Współczynnik proporcji wynikowego wideo.

Długość wideo mierzona w sekundach.

POST /run/xai/grok-imagine-video/v1.5/text-to-video?wait=20 wycena → 0,40 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/v1.5/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Three tiny anthropomorphic kittens sit on a park bench. One combs another’s fur with a tiny brush while the third stands and holds the tip jar out toward the camera, gesturing with its free paw. They suddenly all start waving and meowing excitedly as a leaf floats by. A colorful sign in front reads “Tips for cuteness overload ” Soft afternoon sunlight through trees, realistic fur and expressive faces, gentle camera push.",
    "duration": 5,
    "resolution": "480p",
    "aspect_ratio": "16:9"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Uruchom to żądanie

Klucz pozostaje w tej przeglądarce: jest wysyłany tylko do Doitong API i zapisywany (localStorage) tylko po zaznaczeniu opcji Zapamiętaj. Uzyskaj klucz API

Informacje o Grok Imagine Video 1.5 Text to Video

Grok Imagine Video 1.5 przekształca prompt w klip o dowolnej całkowitej długości od 1 do 15 sekund, z dynamicznym ruchem odpowiednim dla anime, akcji i stylizowanego wyglądu, a także realizmu. Siedem współczynników proporcji od 9:16 do 16:9, w rozdzielczości 480p, 720p lub 1080p; cena rośnie liniowo wraz z długością.

Parametry

NazwaTyp DomyślneDozwolone Opis
promptwymagane
Typstring
≤ 4096 znaków
Opis określający, jakie wideo należy utworzyć.
durationopcjonalne
Typinteger
Domyślne6
1 – 15
Długość wideo mierzona w sekundach.
resolutionopcjonalne
Typenum
Domyślne720p
480p720p1080p
Rozdzielczość wynikowego wideo.
aspect_ratioopcjonalne
Typenum
Domyślne16:9
16:94:33:21:12:33:49:16
Współczynnik proporcji wynikowego wideo.
wymagane

Wynik

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/v1.5/text-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "Anime schoolgirl bursts out of her front door, cherry blossoms swirling, morning light, speed lines",
    "duration": 5,
    "resolution": "480p"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Twoje pliki, Twój wybórKażdy outputs[].url to kopia w naszej przestrzeni dyskowej: przechowywana bezterminowo (opłata za GB-miesiąc) lub 7 dni bezpłatnie, zgodnie z ustawieniem konta lub ?storage=.
Taki sam format w każdym modelutype, url, content_type, width, height i duration — tak samo dla obrazów, filmów i dźwięku. output to własny obiekt wyniku modelu.
Pola wyniku
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Wideo utworzone przez model.

Więcej modeli: Tekst na wideo

Dla agentów AI: ta strona w formacie Markdown jest dostępna pod adresem https://doitong.com/pl/developers/models/xai/grok-imagine-video/v1.5/text-to-video.md. Wszystkie modele i przewodniki: https://doitong.com/developers/llms.txt