Grok Imagine grok-imagine-edit-image API
A model variant exposed through RunAPI's unified AI API.
Operational
·
image
·
Commercial use supported
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/grok-imagine -g
Or paste this prompt to your AI agent:
Install the Grok Imagine skill for me: 1. Clone https://github.com/runapi-ai/grok-imagine 2. Copy the skills/grok-imagine/ directory into your user-level skills directory (e.g. ~/.claude/skills/ for Claude Code, ~/.codex/skills/ for Codex). 3. Verify that SKILL.md is present. 4. Confirm the install path when done.
Switch variant
概要
Grok Imagine grok-imagine-edit-image is available through the same RunAPI auth, SDKs, and agent skill workflow.
- Unified endpoint
- SDK snippets
- Agent install path
- 失敗した生成は課金されません
料金
料金
失敗した生成は課金されません
Edit image
$0.04
/ image
仕様
仕様
| Model ID | grok-imagine-edit-image |
| プロバイダー | xAI |
| モダリティ | image |
| Task type | asynchronous |
| 課金 | call |
| Endpoint | /api/v1/grok_imagine/edit_image |
| Commercial | Yes |
| Status | Operational |
クイックスタート
Quickstart — grok-imagine-edit-image
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.",
});
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."
)
仕組み
How to use grok-imagine-edit-image
01
Choose endpoint
Pick the endpoint and copy the SDK snippet.
02
Pass model ID
Use this variant ID in the request body.
03
Run task
Submit the request and store the returned task ID.
04
Collect output
Poll or receive the callback when the task finishes.
違い
How grok-imagine-edit-image compares
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; 7 aspect ratios; realistic/artistic/anime styles
VS GROK-IMAGINE-TEXT-TO-VIDEO
Prompt-guided style transfer and composition editing from one source image
6–10s video from text with synchronized native audio and lip-sync
ユースケース
Where to use this variant
Image generation
Create visual assets from text prompts.
Editing
Transform existing images with prompt guidance.
Batch creative work
Use SDKs for repeatable generation.
FAQ
Frequently asked questions about grok-imagine-edit-image
How do I select grok-imagine-edit-image?
Pass the model ID shown in the quickstart.
Is pricing usage-based?
Yes. Pricing is metered per call or unit.
Other Grok Imagine variants
grok-imagine-image-to-video
Cheapest
image-to-video
$0.020 / second
grok-imagine-text-to-video
text-to-video
$0.020 / second
grok-imagine-text-to-image
text-to-image
$0.040 / call
Related models
Text-to-image and remix-image with strong prompt adherence from Black Forest Labs.
In-context image editing — local edits, style transfer, and character-consistent generation.
Voice, character, and multimodal video generation resources for narration, dialogue, and agent media workflows.
今すぐ開始