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.
还没有图片。提交表单以生成图片。
探索不同用例和参数配置
透明定价,无隐藏费用。按需支付。
| 规则与模式 | 渠道 | 积分 | 价格(美元) | 官方/参考价格 | 每日节省 |
|---|---|---|---|---|---|
image-to-image imagegrok | Starter | 0.5per run | $0.002 | - | - |
grok-imagine 使用完整指南
通过 ApiPass 上的 grok-imagine/image-to-image 端点,使用自然语言修改任意参考图像并重塑其风格。只需上传 JPEG、PNG 或 WebP 文件,并附上文本提示词,即可启动异步生成任务。这个面向开发者的 API 能够流畅处理从细微编辑到完整艺术化改造的各类需求。

Grok 图生图工作流会使用一张上传的参考图像和一个有针对性的文本提示词,生成转换后的图像素材。它专为企业级视觉再创作、风格迁移、角色重塑、程序化版式改造、高端产品植入以及快速自动化原型设计而构建。
描述你想要的视觉变化,并使用一张参考图像作为上下文。提示词可以指定主体变化、光照、构图、氛围、风格、背景、文字处理或商业美术方向。
image_urls 参数接受文件 URL 数组,但此端点每次请求最多支持一张参考图像。支持的参考图像格式为 JPEG、PNG 和 WebP,单个文件最大为 10MB。
使用 POST /api/v1/jobs/createTask 创建任务,保存返回的 taskId,并通过 GET /api/v1/jobs/recordInfo 查询结果。你也可以提供 callBackUrl,以自动接收完成或失败更新。
使用详细提示词,引导生成图像呈现特定外观、氛围、场景或构图。该端点适合将简单参考图转化为更精致的视觉概念。
上传一张图像作为源参考,并在提示词中使用 @image1 指向它。这样可以让请求更清晰,并帮助模型理解应由哪个视觉输入来引导输出。
该 API 围绕异步任务创建而构建。提交任务后会收到 taskId,随后可通过查询端点获取结果,或在任务完成时通过回调 URL 接收结果。
将参考图像转换为海报风格构图,包含戏剧化光影、精致的字体方向、风格化角色或更成熟的娱乐视觉概念。
基于单张输入图像创建高质感产品风格样机、视觉变体、背景替换或概念图像,助力设计与营销工作流中的快速迭代。
在使用上传图像作为生成结果视觉参考的同时,以全新风格重新演绎人物、宠物、吉祥物或插画主体。
根据你的起点是文本、静态图像还是动态输出,选择合适的 ApiPass 工作流。
文生图仅从提示词开始,而图生图从上传的参考图像加可选提示词开始。当源构图、主体或视觉方向需要影响生成结果时,请使用图生图。
图生图会生成一张静态图像。图生视频工作流适用于你希望将静态参考图动画化为动态内容的场景。对于此端点,输出为图像,支持的输入是一张参考图像 URL。
ApiPass 对生成任务采用基于积分的访问模式。在进入生产环境之前,请在控制台查看最新的积分用量、通道可用性和账户限制。
可选的 channel 参数支持 auto、starter、regular 和 official。默认的 auto 通道会让 ApiPass 根据实时价格和稳定性指标,在可用服务提供方之间分配任务。
新用户可能会获得免费积分,可在构建生产集成之前,在 ApiPass playground 中测试图生图生成。
使用 File Upload API 上传 JPEG、PNG 或 WebP 参考图像。图像大小必须为 10MB 或更小。将返回的文件 URL 用于 image_urls 数组。
向 /api/v1/jobs/createTask 发送 POST 请求,将 model 设置为 grok-imagine/image-to-image,并在 input 中包含 image_urls 和 prompt。在提示词中,使用 @image1 后跟一个空格来引用上传的图像。
保存创建任务端点返回的 taskId。持续查询 /api/v1/jobs/recordInfo?taskId=YOUR_TASK_ID,直到任务成功;或者提供 callBackUrl,以自动接收完成或失败通知。
所有 API 都需要通过 Bearer Token 进行身份验证。
Authorization: Bearer
使用 grok-imagine/image-to-image 创建异步图生图生成任务。
1{
2 "model": "grok-imagine/image-to-image",
3 "channel": "auto",
4 "callBackUrl": "https://your-domain.com/api/callback",
5 "input": {
6 "image_urls": [
7 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
8 ],
9 "prompt": "Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship."
10 }
11}model必填string模型端点名称。此端点请使用 grok-imagine/image-to-image。
grok-imagine/image-to-image
channel可选string默认 channel 为 auto;APIPASS 会根据实时价格和稳定性指标,在可用服务商之间自动分配任务;starter 为超低成本通道,配额有限且稳定性较弱;regular 为标准通道,价格远低于官方 API,稳定性适中;official 使用模型原生 API,稳定性高、任务执行快,并采用官方定价。
默认 channel 为 auto;APIPASS 会根据实时价格和稳定性指标,在可用服务商之间自动分配任务;starter 为超低成本通道,配额有限且稳定性较弱;regular 为标准通道,价格远低于官方 API,稳定性适中;official 使用模型原生 API,稳定性高、任务执行快,并采用官方定价。
可用选项:
auto
callBackUrl可选string可选的回调 URL。如果提供,ApiPass 会在异步任务完成或失败时,将任务结果更新发送到该 URL。
https://your-domain.com/api/callback
prompt可选string用于指定生成图像所需内容或风格的文本描述。最大长度:390000 个字符。
在你的 prompt 中,通过输入 @image(n) 后跟一个空格来引用已上传的图像,例如:@image1 a sunset over the ocean。
以两只可爱的拟人猫在船头摆出同样浪漫姿势的方式,重现 Titanic 电影海报。
image_urls必填array<string>由 URL 字符串组成的数组,指向参考图像。请使用上传后的文件 URL,而不是原始文件内容。支持的图像类型为 image/jpeg、image/png 和 image/webp。每张图像最大文件大小为 10MB。
请先使用 File Upload API 上传参考图像,然后在 image_urls 中使用返回的文件 URL。尽管上传控件可能允许选择多个文件,但此模型每次请求最多支持一张参考图像。
["https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"]
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/image-to-image",
6 "channel": "auto",
7 "input": {
8 "image_urls": [
9 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
10 ],
11 "prompt": "Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship. The male cat is an orange tabby wearing a vest, standing behind a white long-haired female cat in a lace dress, holding her paws as they stretch forward in the wind. Both cats are photorealistic with detailed fur, wind-swept hair, and dramatic sunset lighting (warm golden highlights, cool blue shadows). Background: the Titanic ship at dusk with four smokestacks, glowing deck lights, calm ocean, and orange-pink sunset sky. Center title: “CATANIC” in the same gold metallic serif style as Titanic, same size and position."
12 }
13}'1{
2 "taskId": "task_xxx",
3 "status": "queued"
4}taskId任务创建后返回的唯一任务 ID。使用此值查询任务状态和结果。
status异步生成任务的初始任务状态。

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 积分
apipass
apipass
Integrate production-ready AI face swapping into your app with a single API call.
起价
0 积分
OpenAI
OpenAI
Generate intentionally designed visuals with less prompting using the latest OpenAI GPT Image 2 model.
起价
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 积分
apipass
apipass
Seamlessly remove watermarks, logos, and unwanted text from your images at scale with our powerful AI-driven API.
起价
0 积分
seedream
seedream
起价
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 积分
Luma
Luma
起价
0 积分
seedream
seedream
起价
0 积分