PromptFlow AI
API docs

grok-video-15

Grok Imagine Video 1.5 — Generate fast AI videos with vivid motion using Grok Imagine Video 1.5 — closely follows action and scene descriptions, flexible duration 5s – 15s, 480p – 1080p quality (480p, 720p, 1080p), smooth interpolation between start & end frame images, supports up to 15 reference images to maintain character/scene consistency, integrated natural sound & effects, multiple aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4), prompts up to 32,000 characters.

SV22 (sv22) · healthyid: grok-video-15type: videooutput: video244đ – 2,897đ / sec
Các gói & Server (SV) hiện có của model grok-video-15GET /api/v1/models/grok-video-15/servers

Bảng giá API chi tiết theo từng cấu hình tham số

Đơn giá thực tế (VNĐ) trừ vào ví khi gọi POST /v1/generations (hoặc kiểm tra trước qua POST /v1/generations/estimate).

244đ – 2,897đ / sec
Detailed pricing by resolution & duration
Resolution5s6s8s10s12s15s
480p244đ292đ389đ487đ584đ729đ
720p426đ511đ681đ851đ1,021đ1,276đ
1080p763đ916đ1,221đ1,526đ1,831đ2,289đ
4K966đ1,160đ1,545đ1,931đ2,318đ2,897đ

480p {{36}}đ/giây · 720p {{63}}đ/giây · 1080p {{113}}đ/giây · mỗi ảnh gửi kèm +{{15}}đ

Input — request parameters

POST/v1/generations

Gửi JSON theo cấu trúc chuẩn "model": "grok-video-15", "server": "sv22" and the parameters below at the same level. Parameters not listed in the table are rejected (400).

ParameterTypeSupported valuesDescription
modelrequiredstringgrok-video-15Mã gói sản phẩm trực tiếp hoặc mã dòng model chuẩn (kết hợp cùng tham số chọn SV bên dưới).
serverstringsv22autoChốt máy chủ SV chạy đơn (cũng nhận alias server_id) hoặc auto để tự chọn SV healthy giá tốt nhất. Kiểm tra SV sống qua GET /v1/models/grok-video-15/servers.
moderequiredenum
t2vi2vframesref

Default: t2v

Mode
image_urlrequiredstring (URL image)
First frame

Only applies when mode ∈ i2v, frames

last_image_urlrequiredstring (URL image)
Last frame

Only applies when mode ∈ frames

image_urlsrequiredstring[] (URL image)

Up to 15 files

Ảnh tham chiếu (tối đa 15) — Gọi trong mô tả là <IMAGE_0>, <IMAGE_1>… theo thứ tự (hoặc Ảnh 1, Ảnh 2…). Chế độ ảnh tham chiếu / khung cuối xuất tối đa 720p.

Only applies when mode ∈ ref

promptrequiredstring

Up to 32.000 characters

Prompt
secondsrequiredenum
568101215

Default: 5

Duration
resolutionrequiredenum
480p720p1080p4k-upscale

Default: 480p

Resolution
aspect_ratiorequiredenum
16:99:161:14:33:4

Default: 16:9

Aspect ratio
  • File parameters (string URL) accept a public http(s) link — the server downloads it — or a URL returned by the file upload API POST /account/ai/uploads.
  • Bỏ trống tham số không bắt buộc thì dùng giá trị mặc định. Có thể gửi thêm header Idempotency-Key để thử lại an toàn không trừ tiền 2 lần.

Sample request (cURL)

curl -X POST https://promptflow.web.id/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "grok-video-15",
  "server": "sv22",
  "mode": "t2v",
  "prompt": "An astronaut cat",
  "seconds": "5",
  "resolution": "480p",
  "aspect_ratio": "16:9"
}'

Complete integration code sample (Upload file → Create job → Poll result)

Python 3

import os, time, requests

BASE = "https://promptflow.web.id/api"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}

r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json={
    "model": "grok-video-15",
    "server": "sv22",
    "mode": "t2v",
    "prompt": "An astronaut cat",
    "seconds": "5",
    "resolution": "480p",
    "aspect_ratio": "16:9"
}, timeout=60)
gen = r.json()
if not r.ok:
    raise RuntimeError(gen.get("message") or r.text)

while gen.get("status") in ("queued", "processing"):
    time.sleep(5)
    gen = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60).json()

if gen.get("status") != "succeeded":
    raise RuntimeError(gen.get("error") or gen.get("status"))
print("Kết quả:", gen["output"])

Node.js (18+)

const BASE = "https://promptflow.web.id/api";
const headers = { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" };

const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers,
  body: JSON.stringify({
  "model": "grok-video-15",
  "server": "sv22",
  "mode": "t2v",
  "prompt": "An astronaut cat",
  "seconds": "5",
  "resolution": "480p",
  "aspect_ratio": "16:9"
}),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);

while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  gen = await fetch(`${BASE}/v1/generations/${gen.id}`, { headers }).then((r) => r.json());
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Kết quả:", gen.output);

Output — response

Jobs run asynchronously. POST /v1/generations immediately returns a generation object with status queued or processing; poll GET /v1/generations/{id} every 5–10 seconds until status is succeeded, failed or cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "grok-video-15",
  "canonical_model": "grok-video-15",
  "server_id": "sv22",
  "server_name": "SV22",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // amount charged
  "currency": "VND",
  "refunded": false,
  "output": {
    "type": "video",
    "files": [{ "url": "https://promptflow.web.id/uploads/ai/outputs/....mp4", "type": "video", "name": "video.mp4" }],
    "text": null
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:01:12.000Z"
}
FieldMeaning
model / server_idĐúng mã gói sản phẩm và máy chủ SV đã thực thi tác vụ.
output.files[].urlResult file links — download them to your own system; files on our server may be cleaned up after some time.
output.textText content (only for models that return text).
costAmount in VND charged to your balance; refunded automatically on failure or cancellation (refunded = true).
errorError reason when status = failed.

Get a quote before running

POST/v1/generations/estimate

Cùng body với POST /v1/generations, không chạy và không trừ tiền (tự áp % chiết khấu riêng nếu tài khoản có).

# => {
#   "object": "estimate",
#   "model": "grok-video-15",
#   "canonical_model": "grok-video-15",
#   "server_id": "sv22",
#   "server_name": "SV22",
#   "cost": 2400,
#   "currency": "VND"
# }
Get an API key
grok-video-15 · API docs | PromptFlow AI