UniRoute
模型
文本图像视频音频
价格集成
视频创作
视频 API模板提示词
使用指南
指南博客
登录开始使用
模型
文本图像视频音频
价格
集成
视频创作
视频 API模板提示词
使用指南
指南博客
登录开始使用
模型广场/图像/Grok Imagine Image 2.0

Grok Imagine Image 2.0

Grok
API价格

用 Grok Imagine Image 2.0 将详细提示词变成图片,xAI 对这款模型的介绍着重强调图中文字排版与复杂构图的可控性。

  • $0.03 起 / 张
  • 1:1 或 16:9 或 9:16 或 2:3 或 3:2
宽高比option
prompt1686/2000
≈ $0.03
示例输出
示例输出

示例

  • 示例 1

    Design a retro beach club promotional poster in a clean vertical editorial layout, inspired by vintage travel flyers and lifestyle ads, with a warm off-white paper background, subtle grain, lightly distressed print texture, and a teal, black, cream, and sandy beige color palette. Use a bold stacked headline on the left that reads “SALTY DAYS & GOOD VIBES.” in large condensed typography, with strong hierarchy and slightly weathered ink. On the right, show a charming photorealistic raccoon wearing a teal Hawaiian shirt, sitting at a rustic beachside table and happily eating a cheeseburger, with a sunny beach club setting, umbrellas, and soft coastal scenery behind it. Include smaller supporting blocks, icons, and captions in a balanced magazine-style layout, such as a beach club badge, a food special, a small beach-path photo, and a simple bottom section with icons for beach front, good eats, and real vibes. Integrate “Grok Imagine Image 2.0 API” naturally as a small brand/header element near the top, and include “{{appName}}” as a subtle supporting platform mention in a lower callout or footer area. Keep the text limited and visually clean rather than crowded, with a polished but playful lifestyle-branding feel. The overall composition should closely match the reference style: oversized text block on the left, hero animal photo on the upper right, supporting image block on the lower left, structured feature section near the bottom center, and a colored callout panel on the lower right. Make it visually rich, highly readable, stylish, and commercial, with a warm beach mood and strong retro poster appeal, but avoid futuristic, cyberpunk, or abstract aesthetics.

  • 示例 2

    Photorealistic image of two young superheroes in their mid-20s standing on a random street in Williamsburg, Brooklyn, staring at an overloaded sign pole. One has ash balayage hair, the other has long wavy auburn hair. They stand in the immediate foreground with their backs slightly turned to the camera, heads tilted in pure bureaucratic disbelief as they read the signs. The pole on the right is completely covered in densely packed, realistic municipal street signs. Mixed in with the normal ones (street sweeping hours, parking permits, vehicle classifications, towing zones) are these perfectly official-looking but ridiculous signs: - “Cape Fluttering Restricted in High Wind Zones” - “No Flying Below 500 ft – Residential Area” - “Sidekick Drop-Off Only (15-Minute Limit)” - “Web-Slinging on Streetlights Strictly Prohibited” - “Laser Vision Must Be Diluted in School Zones” - “Dramatic Rooftop Landings Banned After 10 PM” One hero is wearing a flowing cape, the other has a small round shield strapped to her back. Composition from back to front: Williamsburg street with parked cars and brick buildings → the chaotic sign pole → the two superheroes closest to camera. Natural daylight, sharp detail, candid documentary style, dry absurd humor.

  • 示例 3

    A mathematician drinking from an object of genus 1 .

详情

Grok Imagine Image 2.0

  • 概览
  • 可以做什么
  • 规格
  • 价格
  • API
  • 适用场景
  • 常见问题
  • 相关模型

Grok Imagine Image 2.0 是什么?

Grok Imagine Image 2.0 是 xAI 的图片生成模型。xAI 在介绍中强调它在摄影、插画与平面设计中的指令遵循、图中文字可读性和视觉一致性。

在 UniRoute 上,当前可调用的文生图版本接受文字提示词和宽高比。描述主体、构图、风格及希望出现在图中的文字,再选择画面比例即可提交。

xAI 介绍称,这一代模型改善了提示词遵循、文字排版和视觉控制。你可以通过详细的文字提示词检验这些表现,下方规格表列出了 UniRoute 当前开放的选项。

可以做什么

目前通过 UniRoute 使用 Grok Imagine Image 2.0 可以做什么。

文生图

把文字需求变成新图片。在提示词中写明场景、视觉风格、版式和需要出现在画面中的文字,再选择宽高比。

文生图
Design a retro beach club promotional poster in a clean vertical editorial layout, inspired by vintage travel flyers and lifestyle ads, with a warm off-white paper background, subtle grain, lightly distressed print texture, and a teal, black, cream, and sandy beige color palette. Use a bold stacked headline on the left that reads “SALTY DAYS & GOOD VIBES.” in large condensed typography, with strong hierarchy and slightly weathered ink. On the right, show a charming photorealistic raccoon wearing a teal Hawaiian shirt, sitting at a rustic beachside table and happily eating a cheeseburger, with a sunny beach club setting, umbrellas, and soft coastal scenery behind it. Include smaller supporting blocks, icons, and captions in a balanced magazine-style layout, such as a beach club badge, a food special, a small beach-path photo, and a simple bottom section with icons for beach front, good eats, and real vibes. Integrate “Grok Imagine Image 2.0 API” naturally as a small brand/header element near the top, and include “{{appName}}” as a subtle supporting platform mention in a lower callout or footer area. Keep the text limited and visually clean rather than crowded, with a polished but playful lifestyle-branding feel. The overall composition should closely match the reference style: oversized text block on the left, hero animal photo on the upper right, supporting image block on the lower left, structured feature section near the bottom center, and a colored callout panel on the lower right. Make it visually rich, highly readable, stylish, and commercial, with a warm beach mood and strong retro poster appeal, but avoid futuristic, cyberpunk, or abstract aesthetics.

Grok Imagine Image 2.0 的其他模式(参考图编辑、分区编辑和分割图)暂未在 UniRoute 开放。

规格与版本

可调用的版本,以及各自的选项和价格。

版本模型 ID模式输入输出价格
Grok Imagine Image 2.0grok-imagine-image-2-0/text-to-image文生图文字提示词和宽高比选项宽高比:1:1、16:9、9:16、2:3、3:2$0.03 / 次请求

价格

按请求计价,所选规格决定价格。

Grok Imagine Image 2.0
1:1$0.03
16:9$0.03
9:16$0.03
2:3$0.03
3:2$0.03

示例

10 张图片,Grok Imagine Image 2.0 · 1:1

≈ $0.25

10 张图片,Grok Imagine Image 2.0 · 3:2

≈ $0.25

10 张图片,Grok Imagine Image 2.0 · 9:16

≈ $0.25

金额四舍五入到分;工作区中的实时报价显示精确金额。价格更新于 2026-11-25。

创建 API 密钥

按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。

API

用媒体 API 在你自己的代码里调用 Grok Imagine Image 2.0。

cURL
# Requires bash, curl and jq. Set API_KEY to your own unified UniRoute Key.set -euo pipefail: "${API_KEY:?Set API_KEY first}"BASE='https://api.uniroute.app/v1/media'MODEL='grok-imagine-image-2-0/text-to-image'OPTION='1:1'PROMPT='A calm sunrise over a mountain lake'curl -fsS --max-time 60 "$BASE/catalog" -H "Authorization: Bearer $API_KEY" | jq -e '.data.models'BODY=$(jq -n --arg model "$MODEL" --arg option "$OPTION" --arg prompt "$PROMPT" '{model:$model,option:$option,prompt:$prompt}')QUOTE_BODY=$(printf '%s' "$BODY" | jq '{model,option}')QUOTE=$(curl -fsS --max-time 60 "$BASE/quote" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' -d "$QUOTE_BODY")CAP=$(printf '%s' "$QUOTE" | jq -er '.data.quoted_usd')BODY=$(printf '%s' "$BODY" | jq --arg cap "$CAP" '. + {max_cost_usd:$cap}')IDEMPOTENCY="example-$(date +%s)-$$"create() { curl -fsS --max-time 60 "$BASE/tasks" -H "Authorization: Bearer $API_KEY" -H "Idempotency-Key: $IDEMPOTENCY" -H 'Content-Type: application/json' -d "$BODY"; }TASK_ID=$(create | jq -er '.data.task_id')# The same request and idempotency key must return the original task without charging again.REPLAY_ID=$(create | jq -er '.data.task_id')[ "$TASK_ID" = "$REPLAY_ID" ]for attempt in $(seq 1 120); do  TASK=$(curl -fsS --max-time 60 "$BASE/tasks/$TASK_ID" -H "Authorization: Bearer $API_KEY")  printf '%s' "$TASK" | jq -e '.data | {task_id,status,billing}'  if printf '%s' "$TASK" | jq -e '.data.status == "success" and .data.billing.state == "charged"' >/dev/null; then    index=0    while IFS= read -r url; do      index=$((index+1))      curl -fL --max-time 120 "$url" -o "$TASK_ID-$index.bin"    done < <(printf '%s' "$TASK" | jq -er '.data.urls[].url')    break  fi  if printf '%s' "$TASK" | jq -e '.data.status == "failed" and .data.billing.state == "released"' >/dev/null; then exit 1; fi  if [ "$attempt" = 120 ]; then    echo "Polling limit reached. Keep task ID $TASK_ID and query it later; do not create a new task." >&2    exit 1  fi  sleep 5donecurl -fsS --max-time 60 "$BASE/tasks?limit=20" -H "Authorization: Bearer $API_KEY" | jq -e '.data'# Check this task and the caller Key in Console usage; billing.charged_usd is the actual USD charge.

参数

名称位置说明
model请求体要运行的模型 ID。
option请求体该模型提供的规格之一:1:1, 16:9, 9:16, 2:3, 3:2。
prompt请求体描述要生成内容的文字提示词。
max_cost_usd请求体本次任务的最高费用(美元),取自报价。
Idempotency-Key请求头每个任务唯一的键;重复请求会返回原任务,不会重复扣费。

相关指南

  • 图片生成 API 指南
  • 管理 API 密钥

适用场景

Grok Imagine Image 2.0 的常见用法。

活动海报

描述标题、辅助文案与视觉主题,探索海报创意和宣传配图。

文章插画

将抽象概念或文字场景转化为插画,再通过修改提示词调整构图与风格。

社交与产品配图

根据需求起草社交配图和产品场景图,并选择适合投放位置的宽高比。

在应用中生成图片

通过媒体 API 根据用户提示词生成图片,提交前获取报价,之后轮询任务取得结果。

常见问题

关于 Grok Imagine Image 2.0 的常见问题。

Grok Imagine Image 2.0 是什么?

Grok Imagine Image 2.0 是 xAI 的图片生成模型。在 UniRoute 上,你可以在本页工作区或通过媒体 API,根据文字提示词生成图片。

这里可以使用哪个版本?

目前可以调用文生图版本,模型 ID 为 grok-imagine-image-2-0/text-to-image。规格与价格表列出了它支持的宽高比。

可以上传参考图或修改局部区域吗?

目前不可以。当前可调用的版本接受文字提示词和宽高比,参考图编辑及局部编辑版本尚未在 UniRoute 开放。

Grok Imagine Image 2.0 多少钱?

$0.03 起 / 张。每次图片请求在提交前报价。“价格”一节列出了可用选项与费率(价格更新于 2026-11-25)。

怎样通过 API 调用?

先对所选模型和宽高比获取报价,再带上 Idempotency-Key 和最高费用创建媒体任务,然后轮询任务直到结果就绪。本页“API”一节展示了完整请求流程。

能在图片里生成文字吗?

xAI 在介绍中强调文字排版和含文字的版式。请在提示词中写明准确文案及摆放位置,并在使用图片前检查生成的文字。

有免费试用或免费额度吗?

没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。

相关模型

其他版本、同一提供商的模型以及可替代的模型。

Grok 的更多模型

  • Grok 4.7
    GrokGrok 4.7
  • Grok 4.6
    GrokGrok 4.6
  • Grok 4.5
    GrokGrok 4.5
  • Grok Imagine Video 1.5
    GrokGrok Imagine Video 1.5

相似的图像模型

  • Nano Banana 2
    GoogleNano Banana 2
  • Seedream 5.0
    ByteDanceSeedream 5.0
  • GPT Image 2
    OpenAIGPT Image 2
  • FLUX.2
    Black Forest LabsFLUX.2
UniRoute

主流模型,一个平台。 连接你的产品与创作。

模型

  • 全部模型
  • 文本
  • 图像
  • 视频
  • 音频

价格

  • 全部价格
  • Anthropic API
  • OpenAI API
  • Google API
  • xAI API
  • DeepSeek API
  • 月之暗面 API
  • 智谱 AI API
  • 阿里巴巴 API
  • Black Forest Labs API
  • 字节跳动 API
  • ElevenLabs API
  • 可灵 AI API
  • MiniMax API
  • PixVerse API
  • Recraft API

集成

  • 全部集成
  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • OpenClaw
  • Hermes Agent
  • Cline
  • Kilo Code
  • Cursor
  • JetBrains IDE
  • TRAE(国际版)
  • Claude 桌面版
  • Codex 桌面版
  • Cherry Studio
  • Chatbox
  • CC Switch

视频与创作

  • 视频 API
  • 模板
  • 提示词

资源

  • 使用指南
  • 博客
  • 快速上手
  • 隐私政策
  • 服务条款
  • 可接受使用政策
  • 邮件支持
收录平台收录平台 Startup Fame收录平台 Fazier收录平台 Dang.ai收录平台 Findly.tools收录平台 DeepLaunch.io收录平台 topfreealternative收录平台 Submit AI Tools收录平台 AI工具网 (ai138.com)
© 2026 UniRoute。保留所有权利。