---
title: "xAI AI 模型 — 透過 RunAPI 存取 API"
url: "https://runapi.ai/zh-TW/providers/xai.md"
canonical: "https://runapi.ai/zh-TW/providers/xai.md"
locale: "zh-TW"
provider: "xAI"
line_count: 2
variant_count: 9
---

# xAI

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

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.

## Models

- [Grok](https://runapi.ai/zh-TW/models/grok.md) — Text, 3 variants · from $0.030
- [Grok Imagine](https://runapi.ai/zh-TW/models/grok-imagine.md) — Video, 6 variants · from $0.020

## Variants

| Model | Variant | Billing | Starting price | URL |
|---|---|---|---|---|
| Grok | `4.20-0309-non-reasoning` | 1K tokens | $0.030 | https://runapi.ai/zh-TW/models/grok/4.20-0309-non-reasoning.md |
| Grok | `4.3` | 1K tokens | $0.030 | https://runapi.ai/zh-TW/models/grok/4.3.md |
| Grok | `4.5` | 1K tokens | $0.060 | https://runapi.ai/zh-TW/models/grok/4.5.md |
| Grok Imagine | `edit-image` | call | $0.040 | https://runapi.ai/zh-TW/models/grok-imagine/edit-image.md |
| Grok Imagine | `image-to-video` | second | $0.020 | https://runapi.ai/zh-TW/models/grok-imagine/image-to-video.md |
| Grok Imagine | `text-to-image` | call | $0.040 | https://runapi.ai/zh-TW/models/grok-imagine/text-to-image.md |
| Grok Imagine | `text-to-video` | second | $0.020 | https://runapi.ai/zh-TW/models/grok-imagine/text-to-video.md |
| Grok Imagine | `video-1.5-fast` | call | $0.750 | https://runapi.ai/zh-TW/models/grok-imagine/video-1.5-fast.md |
| Grok Imagine | `video-1.5-preview` | second | $0.020 | https://runapi.ai/zh-TW/models/grok-imagine/video-1.5-preview.md |

## LLM API endpoints

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

- `POST /v1/chat/completions` — OpenAI compatible
- `POST /v1/responses` — OpenAI Responses
- `POST /v1/messages` — Anthropic compatible
- `POST /v1beta/models/{model}:generateContent` — Gemini generateContent
- `POST /v1beta/models/{model}:streamGenerateContent` — Gemini streamGenerateContent

Use a compatible SDK for the endpoint you call with your RunAPI API key.

## Install a model skill

```sh
npx skills add runapi-ai/<line> -g
```

Replace `<line>` with a model slug from this provider, then use the skill docs, schemas, pricing notes, and setup steps while adding the model feature.

## FAQ

### 這是 xAI 的官方整合嗎？

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

### 我需要 xAI 帳戶嗎？

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

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

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

### 圖片／影片會被快取嗎？

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

### 我可以使用自己的金鑰嗎？

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

