提供方

xAI AI 模型

Grok Imagine — 图片和视频生成,覆盖文生图、图生视频和编辑。

2 models · 10 variants · 起价 $0.0006
概览

xAI 推出 Grok Imagine 创意 AI 套件,覆盖文生图、图像编辑、文生视频和图生视频,集成音频支持。

  • 一把 key 覆盖所有提供方
  • Model skill 把文档和 schema 带进代码工作区
  • 按次计费,无最低消费
  • 失败的生成不计费
特性

亮点

模型

xAI 全部模型

快速开始

安装一个 xAI model skill。

选择模型并添加它的 skill,让编码工具获得文档、schema、定价说明和接入步骤。

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.6",
  "max_tokens": 1024,
  "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.6",
    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.6",
  messages: [{ role: "user", content: "审查这份发布计划,找出风险最高的三个假设,并分别给出简洁的缓解方案。" }]
});
https://runapi.ai 5 endpoints
参考

xAI 全部变体

完整定价表 →
Model Variant Billing Pricing
Grok
grok-4.20-0309-non-reasoning 1K tokens Input $0.63-$1.26 / 1M tokens | Output $1.25-$2.50 / 1M tokens · Input $1.20-$2.40 / 1M tokens | Output $2.50-$5.00 / 1M tokens 查看 →
grok-4.3 1K tokens Input $1.00-$2.00 / 1M tokens | Output $2.00-$4.00 / 1M tokens 查看 →
grok-4.5 1K tokens Input $2.00-$4.00 / 1M tokens | Output $6.00-$12.00 / 1M tokens · Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens 查看 →
grok-4.6 1K tokens Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens 查看 →
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.570 查看 →
grok-imagine-video-1.5-preview second $0.080 查看 →
常见问题

xAI 常见问题

这是 xAI 官方集成吗?

RunAPI 提供托管 API 接入,定价、能力和错误行为都清晰透明。

需要单独的 xAI 账号吗?

不需要——RunAPI key 即可使用托管接入。

代理会带来多少延迟?

一般在 20 ms 以内。RunAPI 会让代理层尽量靠近模型执行区域。

输出会缓存吗?

输出按任务 ID 存储在 R2 供回取。输入不缓存。

能自带 key 吗?

目前不支持——调用使用 RunAPI 托管接入。

立即开始

立即体验 xAI 模型。