VARIANT · xAI / Grok Imagine

grok-imagine-edit-image API

xAI / Grok Imagine

استخدم grok-imagine-edit-image من عائلة Grok Imagine عبر RunAPI. تسعير لكل طلب، بدون اشتراك، والعمليات الفاشلة لا تُحتسب.

جاهز للتشغيل · image · مسموح للاستخدام التجاري
runapi.ai
curl -X POST https://runapi.ai/api/v1/grok_imagine/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-edit-image",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "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.editImage.run({
    model: "grok-imagine-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    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->editImage->run([
        'model' => 'grok-imagine-edit-image',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        '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.edit_image.run(
    model: "grok-imagine-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    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
@runapi.ai/grok-imagine v1
تبديل الإصدار
OVERVIEW

يستهدف grok-imagine-edit-image نقطة التوازن المثالية بين الجودة والتكلفة ضمن عائلة Grok Imagine.

  • تسعير لكل طلب بالدولار الأمريكي
  • لا تُحتسب المحاولات الفاشلة
  • البث المباشر عند دعمه من النموذج
  • إعداد model skill
PRICING

التسعير

العمليات الفاشلة لا تُحتسب
Edit image
$0.04 / image
ورقة المواصفات

التفاصيل الفنية

معرّف النموذج grok-imagine-edit-image
المزوّد xAI
الوسيط image
نوع المهمة asynchronous
وحدة الفوترة call
API endpoint /api/v1/grok_imagine/edit_image
ترخيص تجاري نعم — مشمول عبر API
حالة الكتالوج جاهز للتشغيل
SKILLS

البدء السريع — grok-imagine-edit-image

نفس البنية · الإصدار مثبت في النموذج

# Install the model skill for app development workflows
npx skills add runapi-ai/grok-imagine -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
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-edit-image في أربع خطوات

01

التثبيت

ثبّت SDK الخاص بالنموذج أو مهارة الوكيل لهذا الخط من النماذج.

02

التهيئة

اضبط حقل model على معرّف النموذج الكامل الظاهر في هذه الصفحة.

03

الاستدعاء

أرسِل طلبًا مُهيكلًا يتضمن الـ prompt والمدخلات وإعدادات callback.

04

الاستلام

اقرأ استجابة المهمة أو callback webhook أو عنوان URL للإخراج المخزّن مؤقتًا من RunAPI.

DIFFERENCES

ما المختلف في grok-imagine-edit-image؟

VS GROK-IMAGINE-IMAGE-TO-VIDEO

Prompt-guided style transfer and composition editing from one source image

Input image becomes frame 1; animates with motion + camera

VS GROK-IMAGINE-TEXT-TO-IMAGE

Prompt-guided style transfer and composition editing from one source image

Aurora model; 5 aspect ratios; realistic/artistic/anime styles

VS GROK-IMAGINE-TEXT-TO-VIDEO

Prompt-guided style transfer and composition editing from one source image

6–15s video from text with synchronized native audio and lip-sync

حالات الاستخدام

الأفضل لـ

تصوير المنتجات

أنشئ تلقائيًا صور منتجات بأسلوب lifestyle لكتالوجات التجارة الإلكترونية التي تفتقر إلى تصوير استوديو.

ألعاب وفن المفاهيم

ابتكر سريعًا مفاهيم للعوالم والشخصيات قبل الانتقال إلى العمل الفني النهائي.

رسوم تحريرية

أنشئ أعمال غلاف ورسومًا توضيحية فريدة للمدونات والمقالات على نطاق واسع.

FAQ

الأسئلة الشائعة حول grok-imagine-edit-image

هل معرّف النموذج ثابت عبر الإصدارات؟

يحافظ RunAPI على ثبات معرّف النموذج ويتعامل مع تحديثات الإصدارات المتوافقة دون تغيير شكل طلبك.

ما حد المعدل لهذا المتغير؟

تتدرج حدود المعدل لكل مفتاح بحسب مستوى الاستخدام. راجع صفحة التسعير للاطلاع على الحدود الحالية.

هل يمكنني التبديل إلى متغيرات أخرى لاحقًا؟

نعم — المتغير مجرد خيار. بدّل عبر تغيير معامل model.

هل يدعم البث المباشر؟

حيثما يتوفر البث، يقدّم RunAPI البث من البداية إلى النهاية.

أين أبلغ عن مشاكل الجودة؟

افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.

ابدأ الآن

ابدأ البناء باستخدام Grok Imagine.