Grok Imagine is xAI’s AI video generation model for creating high-quality videos with realistic motion, native audio, and synchronized speech. Grok Imagine 1.5 introduces faster generation speeds, improved motion physics, and stronger visual consistency for modern AI video applications.
还没有图片。提交表单以生成图片。
探索不同用例和参数配置
透明定价,无隐藏费用。按需支付。
| 规则与模式 | 渠道 | 积分 | 价格(美元) | 官方/参考价格 | 每日节省 |
|---|---|---|---|---|---|
text-to-image imagegrokenable_pro: false | Starter | 0.45per run | $0.002 | - | - |
text-to-image-quality imagegrokenable_pro: true | Starter | 0.6per run | $0.003 | - | - |
grok-imagine 使用完整指南
通过 grok-imagine/text-to-image 端点,直接根据文本提示词生成高保真图像,并可通过 ApiPass 平台无缝访问。底层 Grok 模型能够高精度理解复杂的视觉描述,原生支持多种宽高比,并提供面向生产级渲染的高级质量模式。

ApiPass 作为 xAI Grok Imagine 模型的高并发 API 代理,让你可以通过标准 HTTP 请求生成高级文生图素材。ApiPass 将上游基础设施封装为稳定的异步工作流,开箱即用地处理速率限制、计费和全球路由,让你能够将 Grok 的视觉生成能力直接接入平台、开发者解决方案或自动化后端流水线。
通过编写清晰的英文描述,生成肖像、环境、产品、概念艺术、编辑场景和抽象视觉图像。
使用 2:3 生成竖版人像构图,3:2 生成横版构图,1:1 生成方形格式,16:9 生成宽屏图像,9:16 生成高竖版图像。
先创建任务,然后通过回调接收完成结果,或使用返回的 taskId 查询任务记录端点。
在生产集成中,创建任务时配置 callBackUrl,ApiPass 即可自动发送任务结果更新。
创建具有柔和光线、胶片颗粒、年代风格和浅景深的温暖氛围感肖像。
生成干净的商业风格图像,包含影棚布光、简洁背景、留白空间和精致的表面细节。
将描述性创意转化为具有冲击力的视觉图像,用于情绪板、设计探索、创意提案和视觉研究。
工作流非常简单:编写提示词,选择可选设置,创建任务,然后获取生成的图像 URL。
包含主体、场景、构图、风格、光照、色彩、氛围和重要细节。prompt 参数为必填项,最多支持 5000 个字符。
将 aspect_ratio 设置为 2:3、3:2、1:1、16:9 或 9:16。留空则使用默认的 1:1 方形格式。
设置 enable_pro=false 使用速度模式,或设置 enable_pro=true 使用质量模式。
向 ApiPass 端点 /api/v1/jobs/createTask 提交 POST 请求。使用返回的 taskId 查询 /api/v1/jobs/recordInfo,或配置 callBackUrl 自动接收结果。
Grok 文生图生成采用异步方式。先创建生成任务,然后通过回调通知或轮询接收最终图像 URL。
使用 Authorization: Bearer YOUR_API_KEY 和 Content-Type: application/json 向 POST https://api.apipass.dev/api/v1/jobs/createTask 发起请求。请求体顶层固定为 model 和 input;callBackUrl 为可选项。
此端点请使用 model 值 grok-imagine/text-to-image。
当未配置回调通知时,使用 GET https://api.apipass.dev/api/v1/jobs/recordInfo?taskId=YOUR_TASK_ID 检查状态并获取 output.urls。
配置 callBackUrl 后,ApiPass 会向该 URL 发送任务更新。任务成功时会返回 output.urls,其中包含生成图像的结果 URL。
{"model":"grok-imagine/text-to-image","channel":"auto","callBackUrl":"https://your-domain.com/api/callback","input":{"prompt":"Cinematic portrait of a woman sitting by a vinyl record player, retro living room background, soft ambient lighting, warm earthy tones, nostalgic 1970s wardrobe, reflective mood, gentle film grain texture, shallow depth of field, vintage editorial photography style.","aspect_ratio":"3:2","enable_pro":false}}
为社交渠道生成可分享图像、缩略图、帖子配图、活动概念图和竖版视觉素材。
将基于提示词的图像生成嵌入开发者平台,用于动态横幅、个人资料素材、图形工具、个性化视觉内容和自动化用户生成内容体验。
创建精致的产品场景、广告样机、包装概念和演示素材,并可控制光照与构图。
快速探索艺术方向、角色创意、配色方案、场景布局、编辑概念和视觉设计研究。
该模型基于 xAI 先进的生成式架构构建,擅长深层语义遵循,能够将复杂、多层次的英文提示词描述转化为高保真的视觉素材,且不易偏离意图。
ApiPass 将原始 Grok 基础设施封装为完全托管的高并发代理层,消除上游速率限制波动,并为可扩展的商业网络提供企业级可用性保障。
该端点在 API 层面原生支持五种核心生产宽高比:1:1(方形)、16:9(宽屏)、9:16(竖版)、3:2(横版)和 2:3(人像竖版)。
不是。ApiPass 集成采用异步任务架构。API 会立即返回 202 Accepted 响应,并包含唯一的 taskId,从而让你的主后端线程完全不被阻塞。
支持。在请求 payload 中传入可选的 seed 整数,可锁定模型的初始噪声状态。这可以在调试提示词或调整特定布局变量时,确保多次生成之间的结构一致性。
选择 premium 会在 Grok 后端触发更长的推理步骤。它会提升图像中的细粒度空间准确性、纹理像素密度和文字可读性,但会略微增加渲染生命周期时长。
所有 API 都需要通过 Bearer Token 进行身份验证。
Authorization: Bearer
根据文本提示词创建一个异步 Grok Imagine 文生图生成任务。
1{
2 "model": "grok-imagine/text-to-image",
3 "channel": "auto",
4 "callBackUrl": "https://your-domain.com/api/callback",
5 "input": {
6 "prompt": "Cinematic portrait of a woman sitting by a vinyl record player, retro living room background, soft ambient lighting, warm earthy tones, nostalgic 1970s wardrobe, reflective mood, gentle film grain texture, shallow depth of field, vintage editorial photography style.",
7 "aspect_ratio": "3:2",
8 "enable_pro": false
9 }
10}model必填string模型端点名称。此端点请使用 grok-imagine/text-to-image。
grok-imagine/text-to-image
channel可选string默认 channel 为 auto。APIPASS 会根据实时价格和稳定性指标,在可用供应商之间自动分配任务。starter 成本极低,但配额有限且稳定性较弱;regular 为标准通道,价格远低于官方 APIs,稳定性适中;official 使用模型原生 API,稳定性高、任务执行速度快,并采用官方定价。
默认 channel 为 auto。APIPASS 会根据实时价格和稳定性指标,在可用供应商之间自动分配任务;starter 成本极低,但配额有限且稳定性较弱;regular 为标准通道,价格远低于官方 APIs,稳定性适中;official 使用模型原生 API,稳定性高、任务执行速度快,并采用官方定价。
可用选项:
auto
callBackUrl可选string用于在生成完成时接收任务结果自动通知的回调 URL。生产环境建议使用该参数,而不是轮询状态端点。
https://your-domain.com/api/callback
prompt必填string描述期望图像的文本提示词。请尽量详细、具体地描述视觉元素,包括构图、风格、光线、氛围及其他细节。最大长度:5000 个字符。支持英文提示词。
一位女性坐在黑胶唱片机旁的电影感肖像,复古客厅背景,柔和环境光,温暖的大地色调,怀旧的 1970s 服装,沉思氛围,细腻的胶片颗粒质感,浅景深,复古时尚摄影风格。
aspect_ratio可选string指定生成图像的宽高比。默认值:1:1。
2:3 为竖版方向,3:2 为横版方向,1:1 为正方形格式,16:9 为宽屏格式,9:16 为高竖屏格式。
可用选项:
3:2
enable_pro可选boolean控制请求处理策略。false 启用速度模式,系统会优先考虑响应时间和吞吐量,适用于对延迟敏感的场景。true 启用质量模式,系统会优先考虑处理质量和精度,适用于需要更高准确性的场景。
false
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "grok-imagine/text-to-image",
6 "channel": "auto",
7 "callBackUrl": "https://your-domain.com/api/callback",
8 "input": {
9 "aspect_ratio": "3:2",
10 "prompt": "Cinematic portrait of a woman sitting by a vinyl record player, retro living room background, soft ambient lighting, warm earthy tones, nostalgic 1970s wardrobe, reflective mood, gentle film grain texture, shallow depth of field, vintage editorial photography style.",
11 "enable_pro": false
12 }
13}'1{
2 "taskId": "task_xxx",
3 "status": "queued"
4}taskId已创建生成任务的唯一任务 ID。使用该 ID 查询任务状态和结果。
status创建后的初始任务状态,例如 queued。

flux
flux
Generate photorealistic images with robust text
起价
0 积分
Nano Banana 2 Lite, aka Gemini 3.1 Flash-Lite Image, is a newly released image model from Google DeepMind built for fast 1K image generation, efficient creative iteration, prompt-based image editing, and responsive visual output in product-facing creative scenarios.
起价
0 积分
OpenAI
OpenAI
Generate intentionally designed visuals with less prompting using the latest OpenAI GPT Image 2 model.
起价
0 积分
Nano Banana now allows you to freely draw on edited images, bringing you a completely new experience. Simply click on the image to draw whatever you want. You can also add text and details, and Gemini will do the rest.
起价
0 积分
Fast image generation model built on Gemini 3.1 Flash Image. Supports text-to-image, image editing, multi-image fusion with up to 14 reference images, Google Search grounding, and outputs up to 4K resolution.
起价
0 积分
seedream
seedream
起价
0 积分
qwen
qwen
Generate realistic 2K images with structured text
起价
0 积分
seedream
seedream
起价
0 积分
OpenAI
OpenAI
Bring your ideas to life with sharper, faster, more precise image generation using the GPT Image 2.5 API.
起价
0 积分
wan
wan
Generate images with cinematic precision through high-fidelity text-to-image synthesis and structural editing.
起价
0 积分
seedream
seedream
Gemini said Generate images with lightning-fast efficiency and high-fidelity detail through a streamlined, lightweight architecture optimized for instant creative expression.
起价
0 积分
qwen
qwen
Generate realistic 2K images with structured text
起价
0 积分
Luma
Luma
起价
0 积分
seedream
seedream
起价
0 积分