x-ai logo
x-ai

xAI: Grok Imagine Image 2.0

来源介绍(英文)

Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...

模型概览

模型规格

上下文
65,536 tokens
最大输出
58,982 tokens
架构
text+image->image
分词器
Grok
知识截止时间
暂未提供
内容审核
OPENROUTER

完整价格

同步自 OpenRouter。Token 价格均按每百万 Token 展示。

图片输出
$0.04
每张图片
  • low/1K$0.04
  • low/2K$0.06
  • medium/1K$0.06
  • medium/2K$0.08
图片输入
$0.01
每张图片
API

快速调用

在本地设置 OPENROUTER_API_KEY。Python 需安装 requests;JavaScript 在 Node.js 中运行。密钥应保存在服务端。

API 文档

curl --fail-with-body https://openrouter.ai/api/v1/images \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-imagine-image-2.0","prompt":"A sunlit mountain landscape"}'
能力与模态

输入输出

输入
textimage
输出
image
API

支持的 API 参数

logprobsmax_tokensresponse_formatseedtemperaturetop_logprobstop_p
可用提供方

1 提供方

核验日期: 2026年9月7日

在 OpenRouter 查看实时 Provider

Provider 可用性、延迟、吞吐量和路由会持续变化,请前往来源页面查看实时运行数据。

OpenRouter

xAI

暂未提供
上下文
66K
最大输出
59K
x-ai

4 个模型

全部模型