Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
xAI · Grok Imagine Video

grok-imagine-video-1.5 API

Generate videos from text or reference images with grok-imagine-video-1.5 on APISea, at up to 1080p.

Penjanaan videoVideoTugas tak segerak
ID model
grok-imagine-video-1.5

Harga API grok-imagine-video-1.5

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

PilihanAPISeaRasmiJimat
LalaiLalai$0.0704$0.08−12%
1080P$0.22$0.25−12%
480P$0.0704$0.08−12%
720P$0.1232$0.14−12%

Harga dinyatakan dalam bagi setiap saat.

Bahan input

PilihanUnitAPISeaRasmi
Defaultbagi setiap imej$0.0088$0.01

Apakah itu grok-imagine-video-1.5?

grok-imagine-video-1.5 is xAI’s video generation model in the Grok Imagine Video family. Use it on APISea to turn a text prompt or one or more reference images into a video. Generation supports integer durations from 1 to 15 seconds, resolutions of 480p, 720p, and 1080p, and seven aspect ratios for square, landscape, and portrait formats. The default settings are 8 seconds and 480p. Unlike the base model, this version does not support source-video editing.

APISea provides access through one API key, with pay-as-you-go billing only for successful requests. Default generation costs $0.0704 per second, about 12% below the provider list price of $0.08 per second. Reference image input in the Default configuration costs $0.0088 per image. Requests run asynchronously: save the returned task ID and poll for completion.

Sorotan grok-imagine-video-1.5

Text and Image Inputs

Generate videos from a text prompt alone or supply single or multiple reference images. Reference images must be publicly accessible HTTPS URLs.

Three Resolution Options

Choose 480p, 720p, or 1080p output. The default resolution is 480p.

Adjustable Clip Duration

Set an integer duration from 1 to 15 seconds. Omitting duration uses the 8-second default.

Seven Aspect Ratios

Choose 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, or 2:3 to match your application’s video format.

Cara memanggil API grok-imagine-video-1.5 dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/videos/generations dengan "model": "grok-imagine-video-1.5" dan parameter di bawah.

  4. 04

    Urus respons

    Respons mengandungi task_id. Lakukan tinjauan berkala menggunakan GET /v1/tasks/{task_id} sehingga status menjadi completed, kemudian muat turun URL hasil.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Idempotency-Key: 7d0141e4-a19a-4650-a717-dab777b3a330' \
  --data '{
    "model": "grok-imagine-video-1.5",
    "prompt": "A cinematic aerial shot of a coastal city at sunrise",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "nsfw_check": true
  }'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajib—Official model name; video editing supports the base model only
promptstringWajib—Non-empty instruction, at most 8000 Unicode characters
nsfw_checkbooleanPilihanfalseWhether to perform content moderation before submitting the video task.
durationintegerPilihan8Generation only; integer from 1 to 15, default 8
resolutionstringPilihan480pBase: `480p/720p`; 1.5: `480p/720p/1080p`; default `480p`
aspect_ratiostringPilihan—Generation only; `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, or `2:3`
image_urlsstring[]Pilihan—Optional reference-image array; every item must be a public HTTPS URL; omit instead of sending an empty array
videoobjectPilihan—Source video object `{url}`; public HTTPS URL; base model only
urlstringWajib—HTTPS

Perkara yang boleh anda bina dengan grok-imagine-video-1.5

Prompt-to-Video Tools

Build an interface that accepts written scene instructions and submits short video generation tasks, with user-selectable duration and resolution.

Reference-Based Creative Workflows

Let creative teams provide one or more reference images alongside a prompt when generating a new video.

Social Video Creation

Offer square, portrait, and landscape generation options for teams preparing short video content for different placements.

Storyboard Concept Exploration

Generate short clips from scene descriptions so teams can explore video concepts before committing to production.

Petua untuk hasil yang lebih baik

  • 01

    Set Output Controls Explicitly

    Specify duration, resolution, and aspect_ratio when your application needs a particular format. Shorter durations and lower-priced resolution tiers can help control generation costs.

  • 02

    Validate Prompts and Images

    Keep prompts non-empty and within 8000 Unicode characters. Supply a non-empty image_urls array of public HTTPS URLs, or omit the field entirely; preserve the intended image order.

  • 03

    Retry With the Same Key

    Use an Idempotency-Key for paid generation requests. For a network retry, reuse the original key and identical request body; use a new key for a new logical operation.

  • 04

    Track Asynchronous Tasks

    Save data[0].task_id after submission and poll for completion. Do not send X-APISea-Response-Version when using the documented legacy HTTP 200 asynchronous response schema.

Had dan perkara yang perlu diketahui

  • Source-video editing is not supported by this model.

  • Generation is asynchronous, with durations limited to integer values from 1 to 15 seconds.

  • No fixed reference-image count limit is documented; relative URLs, Data URLs, and raw Base64 inputs are unsupported.

Soalan lazim API grok-imagine-video-1.5

How much does grok-imagine-video-1.5 cost on APISea?

APISea Default and APISea 480P each cost $0.0704 per second; APISea 720P costs $0.1232 per second; APISea 1080P costs $0.22 per second. Reference image input in the Default configuration costs $0.0088 per image. Default pricing is about 12% below the provider list price, and APISea bills only for successful requests.

How do I call grok-imagine-video-1.5 through APISea?

Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer authorization, Content-Type: application/json, and a JSON body containing model set to grok-imagine-video-1.5 and a non-empty prompt. Call from your backend rather than exposing your API key in frontend code, then save data[0].task_id and poll for completion.

Which duration, resolution, and aspect-ratio parameters are supported?

The duration parameter accepts integers from 1 to 15 and defaults to 8; resolution accepts 480p, 720p, or 1080p and defaults to 480p. The aspect_ratio options are 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, and 2:3.

Can I use multiple reference images, and what are the input limits?

Yes, image_urls accepts single or multiple reference images, each supplied as a public HTTPS URL; omit the field instead of sending an empty array. The public contract does not define a fixed image-count limit, and duplicate URLs may be billed more than once. Prompts must contain 1–8000 Unicode characters.

How does this model compare with grok-imagine-video?

Both models support text-to-video and reference-image-to-video generation for 1–15 second clips. grok-imagine-video-1.5 adds 1080p generation but does not support video editing; grok-imagine-video supports video editing and 480p or 720p generation. The separate grok-imagine-1.5-video-ext route uses different documentation, so do not mix its model name or parameters with this endpoint.

Can I use generated videos commercially?

Commercial use is subject to the provider’s terms. Review xAI’s applicable terms for your intended use; the supplied documentation does not establish commercial-use rights.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan grok-imagine-video-1.5

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.