---
title: "xAI AI 模型 — 透過 RunAPI 取得 API 存取"
url: "https://runapi.ai/zh-HK/providers/xai.md"
canonical: "https://runapi.ai/zh-HK/providers/xai.md"
locale: "zh-HK"
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-HK/models/grok.md) — Text, 3 variants · from $0.030
- [Grok Imagine](https://runapi.ai/zh-HK/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-HK/models/grok/4.20-0309-non-reasoning.md |
| Grok | `4.3` | 1K tokens | $0.030 | https://runapi.ai/zh-HK/models/grok/4.3.md |
| Grok | `4.5` | 1K tokens | $0.060 | https://runapi.ai/zh-HK/models/grok/4.5.md |
| Grok Imagine | `edit-image` | call | $0.040 | https://runapi.ai/zh-HK/models/grok-imagine/edit-image.md |
| Grok Imagine | `image-to-video` | second | $0.020 | https://runapi.ai/zh-HK/models/grok-imagine/image-to-video.md |
| Grok Imagine | `text-to-image` | call | $0.040 | https://runapi.ai/zh-HK/models/grok-imagine/text-to-image.md |
| Grok Imagine | `text-to-video` | second | $0.020 | https://runapi.ai/zh-HK/models/grok-imagine/text-to-video.md |
| Grok Imagine | `video-1.5-fast` | call | $0.750 | https://runapi.ai/zh-HK/models/grok-imagine/video-1.5-fast.md |
| Grok Imagine | `video-1.5-preview` | second | $0.020 | https://runapi.ai/zh-HK/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 密鑰已足夠使用託管存取。

### 透過 proxy 會增加多少延遲？

通常少於 20 ms。RunAPI 會將 proxy 層維持在貼近 model 執行區域的位置。

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

生成結果會按 task ID 儲存並可供取回。輸入內容不會快取。

### 我可以使用自己的 key 嗎？

目前不支援 — 請使用 RunAPI 管理的存取。

