xAI Grok Imagine Video v1.5 Reference to Video
x-ai/grok-imagine-video-v1.5/reference-to-video
x-ai/grok-imagine-video-v1.5/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
İlgili modeller
Tüm parametreler, çıktı şeması ve güncel fiyatlar
| Yapay zeka model API pazarı | Tek platformda her şey | En popüler | Koşullar | Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et. |
|---|---|---|---|---|
| prompt *Prompt | textarea | — | ≤ 5000 chars | |
| images *Reference Images | image_upload | — | image/* · 1–7 items | |
| durationDuration | slider | 6 | 1 ~ 15 · step 1 | |
| aspect_ratioAspect Ratio | select | 16:9 | 16:9 | 1:1 | 9:16 | 3:2 | 2:3 | |
| resolutionResolution | select | 720p | 720p | 480p |
Tüm parametreler, çıktı şeması ve güncel fiyatlar
| Daha fazla bilgi | Tek platformda her şey | Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et. |
|---|---|---|
| videos | array<string> |
API
Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/x-ai/grok-imagine-video-v1.5/reference-to-video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "Use the reference subjects consistently in a cinematic scene with natural action, coherent lighting, and smooth camera movement.",
"images": [
"https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
],
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/x-ai/grok-imagine-video-v1.5/reference-to-video",
headers=HEADERS,
json={
"input": {
"prompt": "Use the reference subjects consistently in a cinematic scene with natural action, coherent lighting, and smooth camera movement.",
"images": [
"https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
],
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/x-ai/grok-imagine-video-v1.5/reference-to-video", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "Use the reference subjects consistently in a cinematic scene with natural action, coherent lighting, and smooth camera movement.",
"images": [
"https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
],
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);API belgeleri
xAI Grok Imagine Video v1.5 Reference to Video
Turn up to seven reference images into identity-consistent, stylized short videos.
🚀 Key Features
- Reference-guided generation: Use 1 to 7 reference images to anchor subject identity, appearance, and visual style.
- Prompt-based motion control: Describe motion, camera behavior, atmosphere, and scene progression using natural language.
- Identity and style consistency: Multiple references help maintain a coherent character, brand look, or aesthetic across the clip.
- Flexible output settings: Choose between 480p and 720p, with multiple aspect ratios for landscape, square, and vertical delivery.
- Production-ready performance: Suitable for character content, concept visualization, ad creatives, and stylized storytelling.
🛠️ Technical Specifications
| Item | Details |
|---|---|
| Model architecture | Reference-guided image-to-video generation model |
| Input | Prompt + 1 to 7 reference images |
| Output Format | Video |
| Reference image count | Up to 7 images |
| Duration | 1 to 15 seconds(default: 6s) |
| Aspect Ratio | 16:9, 1:1, 9:16, 3:2, 2:3(default: 16:9) |
| Resolution | 720p, 480p(default: 720p) |
| Motion/style control | Jointly controlled by reference images and prompt |
| Latency | Optimized for fast inference; actual runtime varies by duration, resolution, and number of reference images |
| Ideal tasks | Character-driven clips, identity-consistent videos, creative prototyping, marketing content |
Sample Prompts
- A stylish woman walks slowly through a city street at dusk, hair moving in the wind, smooth tracking shot, cinematic lighting.
- The character from the reference images turns toward the camera under neon lights, subtle depth of field, dreamy modern atmosphere.
- Animate the subject with natural hand movement and a gentle smile, with the camera slowly pushing from medium shot to close-up for a social promo feel.
💰 Pricing
| Pricing Item | Price |
|---|---|
| Base Price | $0.09 |
| 480p | $0.08 / second |
| 720p | $0.14 / second |
| Additional reference image | +$0.01 each |
| Billing rule | Linear by duration, rounded up to the next whole second |
Example Pricing(1 reference image)
| Resolution | 1s | 5s | 10s | 15s |
|---|---|---|---|---|
| 480p | $0.09 | $0.41 | $0.81 | $1.21 |
| 720p | $0.15 | $0.71 | $1.41 | $2.11 |
💡 Best Use Cases
- Identity-consistent video creation: Generate short clips that preserve a character, spokesperson, or branded visual identity.
- Social media content: Create stylized vertical, square, or landscape videos for posts, promos, and short-form campaigns.
- Advertising and marketing: Produce visually consistent motion assets from product or character references.
- Concept visualization: Rapidly explore motion direction, camera ideas, and scene mood before full production.
🔗 Related Models
- xAI Grok Imagine Video v1.5 Text-to-Video: Generates video from a prompt alone for fully prompt-driven creation.
- xAI Grok Imagine Video v1.5 Image-to-Video: Animates a single image for simpler image-to-video workflows.
İlgili modeller
MiniMax H3 Reference to Video
minimax/h3/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
Gemini Omni Flash Reference to Video API
google/gemini-omni-flash/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
Seedance 2.0 Mini Reference to Video
doubao/seedance-2.0-mini/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
Seedance 2.5 Reference to Video
doubao/seedance-2-5/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.
Seedance 2.0 Fast reference-to-video
doubao/seedance-2-0-fast/reference-to-video. Görsel, video ve yüz değiştirme model API’lerine göz at. Bir modeli dene ve birleşik REST API ile entegre et.