Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
xAI · Grok Imagine Video

grok-imagine-video API

Generate videos from text or reference images, or edit source videos with xAI's grok-imagine-video on APISea.

ვიდეოს გენერაციავიდეოასინქრონული ამოცანა
მოდელის ID
grok-imagine-video

grok-imagine-video API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

პარამეტრიAPISeaოფიციალურიდაზოგვა
ნაგულისხმევინაგულისხმევი$0.044$0.05−12%
480P$0.044$0.05−12%
720P$0.0616$0.07−12%

ფასები მოცემულია წამში-ზე.

შეყვანის მასალები

პარამეტრიერთეულიAPISeaოფიციალური
Defaultთითო სურათზე$0.00176$0.002
Defaultწამში$0.0088$0.01

რა არის grok-imagine-video?

grok-imagine-video is xAI's video model for text-to-video generation, reference-image-driven generation, and source-video editing. Use it to build workflows that turn written instructions or existing visual assets into videos. Generation supports single or multiple reference images, durations of 1–15 seconds, 480p or 720p resolution, and seven aspect ratios. The defaults are 8 seconds and 480p. Prompts must be non-empty and can contain up to 8000 Unicode characters; reference images and source videos must use public HTTPS URLs.

On APISea, all three modes use the same asynchronous video-generation endpoint. Submit a request, save the returned task ID, and poll for completion. APISea offers pay-as-you-go pricing and bills only successful requests. Default and 480P pricing is $0.044 per second; 720P is $0.0616 per second. Default reference-image input costs $0.00176 per image, and reference-video input costs $0.0088 per second. The default configuration is about 12% below the provider list price.

grok-imagine-video-ის მთავარი მახასიათებლები

Three Video Workflows

Generate videos from text, guide generation with reference images, or edit an existing source video using grok-imagine-video.

Duration And Resolution Controls

For generation, choose an integer duration from 1–15 seconds and either 480p or 720p resolution. Defaults are 8 seconds and 480p.

Seven Aspect Ratios

Generation supports 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, and 2:3 aspect ratios.

Multiple Reference Images

Supply a non-empty array of public HTTPS image URLs to guide generation. Input order is preserved, and the public contract does not define a fixed image-count limit.

როგორ გამოვიძახოთ grok-imagine-video API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/videos/generations პარამეტრებით "model": "grok-imagine-video" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.

მოთხოვნის მაგალითები

დოკუმენტაცია: Grok Official Video Models
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",
    "prompt": "A cinematic aerial shot of a coastal city at sunrise",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "nsfw_check": true
  }'

პარამეტრები

პარამეტრიტიპისავალდებულონაგულისხმევიაღწერა
modelstringსავალდებულო—Official model name; video editing supports the base model only
promptstringსავალდებულო—Non-empty instruction, at most 8000 Unicode characters
nsfw_checkbooleanარასავალდებულოfalseWhether to perform content moderation before submitting the video task.
durationintegerარასავალდებულო8Generation only; integer from 1 to 15, default 8
resolutionstringარასავალდებულო480pBase: `480p/720p`; 1.5: `480p/720p/1080p`; default `480p`
aspect_ratiostringარასავალდებულო—Generation only; `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, or `2:3`
image_urlsstring[]არასავალდებულო—Optional reference-image array; every item must be a public HTTPS URL; omit instead of sending an empty array
videoobjectარასავალდებულო—Source video object `{url}`; public HTTPS URL; base model only
urlstringსავალდებულო—HTTPS

რისი შექმნა შეგიძლიათ grok-imagine-video-ით

Prompt-Based Video Tools

Build an interface that turns user-written scene instructions into short videos with selectable duration and resolution.

Visual Asset Animation

Let teams supply one or more reference images alongside a prompt to generate videos from existing visual assets.

Source-Video Editing

Create a workflow that accepts a public HTTPS source-video URL and written editing instructions.

Format-Specific Content

Offer generation presets for landscape, portrait, and square video using the supported aspect ratios.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Separate Generation From Editing

    For editing, send model, prompt, and video, with optional nsfw_check. Do not include duration, resolution, aspect_ratio, or image_urls; the platform detects the source duration.

  • 02

    Choose Controls Deliberately

    Set duration and resolution explicitly when generation cost matters. APISea 480P costs $0.044 per second, while APISea 720P costs $0.0616 per second.

  • 03

    Validate Reference URLs

    Use publicly accessible HTTPS URLs and omit image_urls when there are no reference images. Avoid duplicate URLs: they occupy multiple input slots and may be billed more than once.

  • 04

    Retry And Poll Safely

    Save data[0].task_id after submission and poll for completion. Use an Idempotency-Key for paid operations, reusing the original key and identical body for a network retry; do not send X-APISea-Response-Version for the documented HTTP 200 task schema.

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Generation supports 480p and 720p, not 1080p, and durations of 1–15 seconds.

  • Prompts must contain 1–8000 Unicode characters; input assets require public HTTPS URLs.

  • Requests are asynchronous, and video editing does not accept generation-only controls.

grok-imagine-video API-ის ხშირად დასმული კითხვები

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

APISea Default and APISea 480P each cost $0.044 per second; APISea 720P costs $0.0616 per second. Reference image input (Default) costs $0.00176 per image, and reference video input (Default) costs $0.0088 per second. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.

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

Send a backend request to POST https://api.apisea.ai/v1/videos/generations with Bearer authorization, application/json, and model set to grok-imagine-video. Include a non-empty prompt and the fields for your chosen mode, then save data[0].task_id and poll for completion. Never expose your API key in frontend code or logs.

Which generation parameters are supported?

Generation accepts duration from 1–15 seconds, resolution of 480p or 720p, and aspect_ratio of 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, or 2:3. The defaults are 8 seconds and 480p; image_urls optionally supplies reference images.

What are the prompt and reference-image limits?

Prompts must be non-empty and no longer than 8000 Unicode characters. The public contract does not define a fixed reference-image count limit; provide a non-empty array of public HTTPS URLs, not Data URLs or raw Base64.

How does grok-imagine-video compare with grok-imagine-video-1.5?

Both support text-to-video and single or multiple reference images, with generation durations of 1–15 seconds. The base model grok-imagine-video supports source-video editing but not 1080p; grok-imagine-video-1.5 supports 1080p but does not support video editing.

Can I use grok-imagine-video commercially?

Commercial use is subject to the provider's terms. Review the applicable xAI terms and content requirements before deploying a commercial workflow; the supplied documentation does not establish commercial-use rights.

მსგავსი მოდელები

არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ grok-imagine-video-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.