grok-imagine-image-2-0 API
استخدم grok-imagine-image-2-0 من عائلة Grok Imagine عبر RunAPI. تسعير لكل طلب، بدون اشتراك، والعمليات الفاشلة لا تُحتسب.
curl -X POST https://runapi.ai/api/v1/grok_imagine/segment_map \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image-2-0",
"prompt": "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";
const client = new GrokImagineClient();
const result = await client.segmentMap.run({
model: "grok-imagine-image-2-0",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\GrokImagine\GrokImagineClient;
$client = new GrokImagineClient();
$result = $client->segmentMap->run([
'model' => 'grok-imagine-image-2-0',
'prompt' => 'Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion.',
]);
require "runapi/grok_imagine"
client = RunApi::GrokImagine::Client.new
result = client.segment_map.run(
model: "grok-imagine-image-2-0",
prompt: "Generate a short video of a robot hand placing a chess piece on a board, dramatic lighting, slow motion."
)
npx skills add runapi-ai/grok-imagine -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
يستهدف grok-imagine-image-2-0 نقطة التوازن المثالية بين الجودة والتكلفة ضمن عائلة Grok Imagine.
- تسعير لكل طلب بالدولار الأمريكي
- لا تُحتسب المحاولات الفاشلة
- البث المباشر عند دعمه من النموذج
- إعداد model skill
التسعير
التفاصيل الفنية
| معرّف النموذج | grok-imagine-image-2-0 |
| المزوّد | xAI |
| الوسيط | image |
| نوع المهمة | asynchronous |
| وحدة الفوترة | call |
| API endpoint | /api/v1/grok_imagine/segment_map |
| ترخيص تجاري | نعم — مشمول عبر API |
| حالة الكتالوج | جاهز للتشغيل |
البدء السريع — grok-imagine-image-2-0
نفس البنية · الإصدار مثبت في النموذج
# Install the model skill for app development workflows
npx skills add runapi-ai/grok-imagine -g
Install the Grok Imagine skill for this app: 1. Add runapi-ai/grok-imagine with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
استخدم grok-imagine-image-2-0 في أربع خطوات
التثبيت
ثبّت SDK الخاص بالنموذج أو مهارة الوكيل لهذا الخط من النماذج.
التهيئة
اضبط حقل model على معرّف النموذج الكامل الظاهر في هذه الصفحة.
الاستدعاء
أرسِل طلبًا مُهيكلًا يتضمن الـ prompt والمدخلات وإعدادات callback.
الاستلام
اقرأ استجابة المهمة أو callback webhook أو عنوان URL للإخراج المخزّن مؤقتًا من RunAPI.
ما المختلف في grok-imagine-image-2-0؟
إنشاء صور من النص وخرائط التجزئة وتحرير الصور الموجّه
Prompt-guided style transfer and composition editing from one source image
إنشاء صور من النص وخرائط التجزئة وتحرير الصور الموجّه
Input image becomes frame 1; animates with motion + camera
إنشاء صور من النص وخرائط التجزئة وتحرير الصور الموجّه
Aurora model; 5 aspect ratios; realistic/artistic/anime styles
الأفضل لـ
تصوير المنتجات
أنشئ تلقائيًا صور منتجات بأسلوب lifestyle لكتالوجات التجارة الإلكترونية التي تفتقر إلى تصوير استوديو.
ألعاب وفن المفاهيم
ابتكر سريعًا مفاهيم للعوالم والشخصيات قبل الانتقال إلى العمل الفني النهائي.
رسوم تحريرية
أنشئ أعمال غلاف ورسومًا توضيحية فريدة للمدونات والمقالات على نطاق واسع.
الأسئلة الشائعة حول grok-imagine-image-2-0
هل معرّف النموذج ثابت عبر الإصدارات؟
يحافظ RunAPI على ثبات معرّف النموذج ويتعامل مع تحديثات الإصدارات المتوافقة دون تغيير شكل طلبك.
ما حد المعدل لهذا المتغير؟
تتدرج حدود المعدل لكل مفتاح بحسب مستوى الاستخدام. راجع صفحة التسعير للاطلاع على الحدود الحالية.
هل يمكنني التبديل إلى متغيرات أخرى لاحقًا؟
نعم — المتغير مجرد خيار. بدّل عبر تغيير معامل model.
هل يدعم البث المباشر؟
حيثما يتوفر البث، يقدّم RunAPI البث من البداية إلى النهاية.
أين أبلغ عن مشاكل الجودة؟
افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.