探索 / xAI / Grok Imagine Image 2.0 输入 请填写必填字段以查看价格
Text To Image · 1K · medium
生成 模式 分辨率 类型 价格 low 1K 图生图 $0.04 文生图 $0.04 2K 图生图 $0.06 文生图 $0.06 medium 1K 图生图 $0.06 文生图 $0.06 2K 图生图 $0.08 文生图 $0.08
端点
POST https://pollo.ai/api/platform/v1/generation/xai/grok-imagine-image-2-0/image复制 模式
Text To Image Image To Image
查看完整 API 文档 在 Pollo API 上运行 Grok Imagine Image 2.0
将详细的视觉指令用于 Grok Imagine Image 2.0。xAI 的图像模型结合了逼真的渲染、清晰的排版和灵活的构图,支持基于提示词的生成。
通过 Pollo API 集成 Grok Imagine Image 2.0,在你的创意应用或内容工作流中直接生成营销活动概念、编辑类图像和文字驱动设计。
Grok Imagine Image 2.0 API 的主要功能
精准遵循提示词
详细说明会引导主体、构图和视觉处理。请描述哪些元素最重要,以生成一张体现你简报优先事项的图像。
清晰文本渲染
标题和简短标签可以成为生成的视觉内容的一部分。将准确的措辞与位置说明结合起来,让文本在构图中承担清晰的角色。
写实图像
根据书面描述生成摄影场景,利用光线、表面纹理和环境细节,为主体及其周围物体营造一个可信的场景。
灵活布局
为宽幅横幅、竖版作品或方形图形构图。定义焦点及其周围空间,让视觉效果适合其预期的摆放位置。
Grok Imagine Image 2.0 API 的使用场景
Text-Led Campaign Concepts: Combine a short campaign message with a defined subject and layout to explore how copy and imagery work together.
Editorial Feature Images: Generate photographic scenes with specific environmental details that support the theme of an article or publication.
Hospitality Mood Visuals: Describe materials, table settings, and lighting to explore the atmosphere of a restaurant, guesthouse, or café concept.
Event Poster Artwork: Build a composition around an event name and a distinctive visual subject, leaving clear space for supporting information.
Retail Display Concepts: Visualize a themed arrangement of objects, signage, and surfaces before developing the physical display.
Website Hero Imagery: Position the subject to one side and reserve space for live website copy, matching the image to the intended page layout.
如何使用 Grok Imagine Image 2.0 API
Get an API Key: Create a Pollo API account and generate your API key from the developer dashboard.
Choose the Model: Send requests to the Grok Imagine Image 2.0 endpoint at /generation/xai/grok-imagine-image-2-0/image.
Add Your Inputs: Pass a prompt for text-to-image, then set aspectRatio, resolution (1K or 2K), and quality (low or medium).
Generate and Retrieve: Submit the task, poll the returned task status, and download the finished image once it succeeds.
Grok Imagine Image 2.0 API 的提示词最佳实践 写一份具体的视觉简报,先说明主体和构图,再写装饰细节。如果文字很重要,请明确它的准确措辞、位置以及与图像的关系。
简单的提示词公式 Intended use + main subject + setting + composition + lighting and materials + exact text + visual constraints
你应该注意什么
Subject Placement: State where the focal subject belongs and how much space it should occupy, especially for banners or layouts containing copy.
Exact Wording: Put required text in quotation marks and distinguish the headline from supporting labels. Review spelling in the generated result.
Lighting Logic: Describe a clear light source, such as a side window or overhead lamp, instead of combining conflicting lighting directions.
Material Cues: Name the relevant surfaces, such as brushed steel, textured linen, or glazed ceramic, to make a photographic brief more specific.
Clear Priorities: Keep essential requirements separate from optional decoration so an elaborate prompt does not obscure the main visual idea.
[`示例提示词`]
夜市海报 “创建一张竖版海报,标题为‘NIGHT MARKET’。展示一个发光的纸灯笼,悬在整齐摆放的橙子和编织篮上方。使用深靛蓝、温暖琥珀色和克制的奶油色文字。将主标题放在顶部,留出充足边距,不要添加任何其他文字。”
海边民宿早餐 拍摄一张位于朴素海滨旅馆内的早餐桌:粗麻布、一个装着无花果的蓝色陶瓷碗、酸面包吐司和一杯水。晨光从左侧照进来。以坐着的客人的视角构图,带有细微的不完美,不要有人物或文字。
自行车维修店网站首屏 为社区自行车修理店创建一张宽幅摄影风格的网站首屏主视觉。将一辆修复好的铜色自行车放在右侧,背景是一面浅色灰泥墙。加入整齐悬挂的工具和柔和的午后阴影。让左半边保持安静、简洁,留给网站文案。不要生成任何文字。
Grok Imagine 图像 2.0 对比 GPT 图像 2.5 对比 Qwen 图像 3.0 生成焦点 Grok Imagine 图像 2.0 GPT Image 2.5 Qwen Image 3.0 文本生成图像 支持 支持 支持 已记录的优势 提示词跟随、排版和摄影图像 详细指令遵循与文本渲染 排版和结构化构图 建议的评估简报 一张带有简短标题的摄影营销活动图片 带有多个放置限制的视觉简报 带有清晰定义分区的标注图形 Key details to inspect 光线、主体位置和标题清晰度 需要的元素和空间关系 阅读顺序、标签和章节组织 推荐的起始用法 摄影和文本主导的创意概念 详细的提示词驱动视觉生成 信息聚焦型图像布局
建议用途反映的是各个模型的文档化侧重点,而不是经过衡量的质量排名。请比较相同的简报,找到最适合你应用场景的选择。
为什么选择 Grok Imagine Image 2.0 API? 当你的图像简报结合了摄影主体、刻意的构图,以及需要出现在作品中的简短信息时,请选择 Grok Imagine Image 2.0。
Pollo API 通过一个平台将此工作流与 300 多个图像和视频模型连接起来,并在你的应用不断发展时提供开发者文档和人工支持。
在 Pollo API 上使用营销活动简报试试 Grok Imagine Image 2.0,然后围绕你想传达的信息优化灯光、布局和排版。
Grok Imagine Image 2.0 API 常见问题
什么是 Grok Imagine Image 2.0? Grok Imagine Image 2.0 是 xAI 的图像模型。它的文本转图像能力可将书面简报转化为视觉内容,在遵循指令、摄影级渲染、排版和灵活构图方面表现出色。
如何使用 Grok Imagine Image 2.0 API 生成图像? 创建你的 Pollo API 密钥,选择模型,并使用你偏好的输出设置提交提示词。检查任务状态,并在生成成功后下载图像。
Grok Imagine Image 2.0 可以在图像中生成文本吗? 是的。它支持在生成的图像中渲染文本。请提供准确的文案和预期放置位置,然后在发布最终视觉内容前检查拼写、可读性和重复内容。
我可以选择不同的图像形状和质量级别吗? 是的。API 提供输出形状、分辨率和质量选项。请选择适合预期投放位置的设置,然后根据你的简报评估生成结果的细节和构图。
为什么要通过 Pollo API 运行 Grok Imagine Image 2.0? Pollo API 为 Grok Imagine Image 2.0 以及 300 多个图像和视频模型提供一个集成,配有开发者文档、任务跟踪、webhooks 和按需付费定价。