PROVIDER

xAI AI 模型

Grok Imagine — image and video generation with text-to-image, image-to-video, and editing.

2 models · 9 variants · 起價 $0.020
OVERVIEW

xAI ships Grok Imagine, a creative AI suite covering text-to-image, edit-image, text-to-video, and image-to-video generation with integrated audio support.

  • 跨 provider 共用單一 API 金鑰
  • Model skill 將文件與 schema 帶入你的 workspace
  • 按次計費,無需承諾
  • 失敗的生成不收費
FEATURES

特色亮點

MODELS

xAI 的所有模型

QUICKSTART

安裝 xAI model skill。

選一個模型並加入其 skill,讓 coding tool 取得文件、schema、價格備註與 setup 步驟。

runapi.ai
# Base URL
https://runapi.ai

# Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1beta/models/{model}:generateContent
POST /v1beta/models/{model}:streamGenerateContent
curl https://runapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-4.5",
  "messages": [
    {
      "role": "user",
      "content": "審查這份上線計畫,找出風險最高的三項假設,並為每一項提出精簡的緩解措施。"
    }
  ]
}'
from openai import OpenAI

client = OpenAI(
    base_url="https://runapi.ai/v1",
    api_key="your-runapi-key"
)

response = client.chat.completions.create(
    model="grok-4.5",
    messages=[{"role": "user", "content": "審查這份上線計畫,找出風險最高的三項假設,並為每一項提出精簡的緩解措施。"}]
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://runapi.ai/v1",
  apiKey: "your-runapi-key"
});

const response = await client.chat.completions.create({
  model: "grok-4.5",
  messages: [{ role: "user", content: "審查這份上線計畫,找出風險最高的三項假設,並為每一項提出精簡的緩解措施。" }]
});
https://runapi.ai 5 endpoints
REFERENCE

xAI 的所有變體

完整價格表 →
Model Variant Billing From
Grok
grok-4.20-0309-non-reasoning 1K tokens $0.030 查看 →
grok-4.3 1K tokens $0.030 查看 →
grok-4.5 1K tokens $0.060 查看 →
Grok Imagine
grok-imagine-edit-image call $0.040 查看 →
grok-imagine-image-to-video second $0.020 查看 →
grok-imagine-text-to-image call $0.040 查看 →
grok-imagine-text-to-video second $0.020 查看 →
grok-imagine-video-1.5-fast call $0.750 查看 →
grok-imagine-video-1.5-preview second $0.020 查看 →
FAQ

關於 xAI 的常見問題

這是 xAI 的官方整合嗎?

RunAPI 提供受管理的 API 介面,具備透明的定價、能力與錯誤行為。

我需要 xAI 帳戶嗎?

不需要 — 你的 RunAPI 金鑰就足以使用受管理的存取。

透過代理轉送的延遲額外開銷是多少?

通常低於 20 ms。RunAPI 會讓代理層盡量靠近模型執行區域。

圖片/影片會被快取嗎?

生成結果會依任務 ID 儲存並可取回。輸入內容不會快取。

我可以使用自己的金鑰嗎?

目前還不行 — 呼叫會使用 RunAPI 受管理的存取。

立即開始

開始用 xAI 模型開發。