Jedno uwierzytelnienie, wszyscy providerzy
Jeden klucz RunAPI odblokowuje cały katalog. Bez osobnych kont i rotacji kluczy dla każdej integracji.
It looks like you may prefer a different language. Switch anytime.
Korzystaj z API Grok Imagine przez RunAPI z model skillem, wspólnym uwierzytelnianiem i cennikiem pay-as-you-go.
curl -X POST https://runapi.ai/api/v1/grok_imagine/edit_image \
-H "Authorization: Bearer $RUNAPI_API_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
Grok Imagine is xAI's image and video generation suite covering text-to-image, edit-image, text-to-video, and image-to-video. It integrates with xAI's Grok intelligence to interpret complex, nuanced prompts.
| Endpoint | Rozdzielczość | Czas trwania | Cena | |
|---|---|---|---|---|
| edit_image | — | — | $0.04 / image |
Ceny podane dla grok-imagine-edit-image. Pozostałe warianty mają własne cenniki endpointów.
Wspólne endpointy dla tej linii modeli, takie jak rozszerzanie, ulepszanie lub konwersja.
Wybierz model i wariant pasujące do typu wyjścia, progu jakości i celu opóźnienia.
Ustaw klucz RunAPI i zainstaluj model skill w workspace kodu.
Użyj instrukcji skilla, aby dodać funkcję modelu w swojej aplikacji.
Odpytuj po task ID, streamuj gdy wspierane albo obsłuż callback webhook.
Grok Imagine is xAI's creative AI suite built on Grok, covering image and video generation. Through RunAPI, all Grok Imagine endpoints share a single API key.
Jeden klucz RunAPI odblokowuje cały katalog. Bez osobnych kont i rotacji kluczy dla każdej integracji.
Rozliczanie za wywołanie w USD, fakturowane co miesiąc. Nieudane generacje nie są naliczane.
Typowane schematy i notatki setupu są spakowane w model skill, więc implementacja startuje od właściwego kontraktu.
Text-to-image, edit-image, text-to-video, and image-to-video — covering still images, prompt-guided image edits, and motion generation.
Yes — text-to-video generates synchronized native audio including dialogue with lip-sync.
The edit-image endpoint accepts one source image for prompt-guided style transfer and composition editing.
Realistic, artistic, and anime styles across 5 aspect ratios. Style is controlled via the prompt and style parameter.
6 to 15 seconds per generation (up to 30 seconds on the fast variant) for both text-to-video and image-to-video endpoints.
Wybierz najtańszy wariant, który spełnia Twoje wymagania jakościowe. Większość zespołów zaczyna od szybkiego wariantu, a do produkcji przechodzi na pro.