grok-imagine-image
关于 grok-imagine-image
Grok-Imagine-Image is a multimodal AI model from X, capable of generating high-quality images from text descriptions.
各路由分组价格
创建 Key 时可在控制台选择分组,状态实时来自路由。 查看各分组实时状态 →
| 分组 | 分组状态 | 模型状态 | 倍率 | 价格 |
|---|---|---|---|---|
Azure-Grok-1 | … | ×0.1243 | $0.0258 | |
Cli-Grok-1 | … | ×0.1243 | $0.0258 | |
Cli-Grok-2 | … | ×0.174 | $0.0362 | |
Azure-Grok-2 | … | ×0.1864 | $0.0388 | |
Xai-Grok-1 | … | ×0.7456 | $0.1551 |
USD / 次
支持的接口
dall-e-3
一个请求调用 grok-imagine-image
兼容 OpenAI SDK 及任何 OpenAI 格式的客户端,把 Key 换成你自己的即可。
curl https://api.nixapi.com/v1/images/generations \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "grok-imagine-image", "prompt": "A lighthouse at dawn, watercolor", "size": "1024x1024"}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
img = client.images.generate(model="grok-imagine-image", prompt="A lighthouse at dawn, watercolor", size="1024x1024")
print(img.data[0].url or img.data[0].b64_json[:40])import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const img = await client.images.generate({ model: "grok-imagine-image", prompt: 'A lighthouse at dawn, watercolor', size: '1024x1024' });
console.log(img.data[0].url);关于 grok-imagine-image 的常见问题
grok-imagine-image 在 NixAPI 上多少钱?
在 Azure-Grok-1 分组下低至每次 $0.0258。按量付费,以美元计价,没有月最低消费。
如何调用 grok-imagine-image?
把任意兼容 OpenAI 格式的客户端指向 https://api.nixapi.com/v1,使用你的 NixAPI Key,并把 model 设为 "grok-imagine-image" 即可。
哪些路由分组提供 grok-imagine-image?
grok-imagine-image 可在 5 个路由分组中使用:Azure-Grok-1、Cli-Grok-1、Cli-Grok-2、Azure-Grok-2、Xai-Grok-1。其中 Azure-Grok-1 分组价格最低。