文生图 API

面向开发者的 AI API

文生图 API

通过 PoYo 文生图 API,把文字创意接入你的产品。对比 AI 图片生成模型的画质、提示词理解、输出尺寸和价格,构建产品概念图、插画及营销素材工作流。

匹配模型

33 个模型

Nano Banana Pro
文本生成图像

$0.04 /次生成

nano-banana-pro

Google's advanced Gemini 3 Pro image model featuring 4K resolution, enhanced reasoning, real-time data integration, and multi-image composition capabilities.

GPT Image 2
文本生成图像

$0.01 /次生成

gpt-image-2

OpenAI's premium image generation family for text-to-image creation and single-image editing with simple prompt-driven controls.

Qwen Image 3.0
文本生成图像

$0.024 /张

qwen-image-3

Alibaba's third-generation image model for long prompts, information-dense layouts, fine text rendering, multilingual visuals, and knowledge-rich image generation.

FLUX 3 Image Klein
文本生成图像

$0.009 /张

flux-3-klein

Generate and edit images with FLUX 3 Image Klein. Use 1K, 2K or 4K output, up to ten editing references, custom dimensions, and PNG, JPEG or WebP output.

Seedream 5.0 Pro
文本生成图像

$0.075 /张

seedream-5.0-pro

ByteDance's flagship image model for precise prompt following, dense layouts, multilingual text rendering, and region-precise editing.

GPT Image 2.5
文本生成图像

$4.00 100 万输入

gpt-image-2.5-flare

OpenAI image generation and editing with high-fidelity reference images, precise inpainting, multi-turn consistency, and transparent backgrounds. Explore Flare and Sunburst and compare GPT Image 2.5 with GPT Image 2 on PoYo.

GPT Image 2.6
文本生成图像

$4.00 100 万输入

gpt-image-2.6-flare

Affordable GPT Image 2.6 API for text-to-image and reference image editing with OpenAI's Flare and Sunburst. One REST call, from 1.7 credits ($0.0085) per image on PoYo.

Grok Imagine Image 2.0
文本生成图像

$0.04 /张

grok-imagine-image-2.0

xAI image generation and editing with up to three input images, five supported aspect ratios, 1K or 2K resolution, selectable quality, and up to four outputs.

MAI Image 2.6
文本生成图像

$1.40 100 万输入

mai-image-2.6

MAI Image 2.6 and MAI Image 2.6 Flash API on PoYo: Microsoft's image models for photorealistic text-to-image, legible in-image text, and editing or composition with up to 5 reference images, with optional web search grounding.

MiniMax H3 Image
文本生成图像

$0.016 /张

minimax-h3-image

MiniMax H3 Image API on PoYo: MiniMax's open-weight image model for text-to-image and editing with up to 16 reference images, 1K, 2K or 4K output, custom sizes up to 20 megapixels, and sharp in-image text. From 3.2 credits ($0.016) per image.

Qwen Image 2.1
文本生成图像

$0.03 /次生成

qwen-image-2.1

Alibaba's 7B open-weight unified text-to-image and editing model with native RGBA transparency, up to 10 reference images, and 2K resolution.

Seedream 5.5
文本生成图像

$0.008 /张

seedream-5.5

Seedream 5.5 API on PoYo: ByteDance Seed's image model for text-to-image, multi-reference editing with up to 10 images, native transparent PNGs, and layer decomposition into a base image plus up to 99 layers. From 4 credits ($0.02) per image.

Ideogram 4.5
文本生成图像

$0.008 /张

ideogram-v4.5

Generate images, posters and typography with Ideogram 4.5, or precisely edit a source image with masks and reference images. Compare quality-based pricing for generation and editing on PoYo.

Ideogram Vector 1.0
文本生成图像

$0.10 /张

ideogram-vector-1.0/text-to-vector

Ideogram Vector creates editable SVG artwork from a text prompt, with optional reference images, or converts one image into an SVG. Text to vector is billed per SVG at the same rates Fal publishes for low, medium, and high quality.

Nano Banana 2.1
文本生成图像

$0.02 /张

nano-banana-2.1

Generate and edit 1K, 2K and 4K images with Google's Nano Banana 2.1. Combine up to 10 reference images for product visuals, posters and consistent creative assets. From 4 credits ($0.02) per image.

Seedream 5.0 Flash
文本生成图像

$0.02 /张

seedream-5.0-flash

ByteDance's fast, cost-efficient image model for 1K/1.5K/2K generation, multi-reference editing, and multilingual visual content. 4 credits per image.

FLUX.2
文本生成图像

$0.03 /次生成

flux-2-pro

Black Forest Labs' production-grade model combining 4MP image generation and editing with multi-reference support, precise typography, and hex color control.

GPT Image 1.5
文本生成图像

$0.01 /次生成

gpt-image-1.5

OpenAI's latest image model with 4x speed, precision editing, and superior text rendering.

Grok Imagine
文本生成图像

$0.03 /张

grok-imagine-image

xAI's Aurora-powered visual AI for image generation and video creation with Fun, Normal, and Spicy creative modes.

Nano Banana
文本生成图像

$0.025 /次生成

nano-banana

Google's leaderboard-topping image model (Gemini 2.5 Flash) excelling in natural language editing, character consistency, and multi-image blending.

Seedream 4
文本生成图像

$0.025 /次生成

seedream-4

ByteDance's multimodal image model for native 1K to 4K generation, reference-guided editing, and batch outputs up to 15 images.

Z-Image
文本生成图像

$0.01 /次生成

z-image

Alibaba's efficient 6B-parameter image model with sub-second generation and exceptional Chinese-English bilingual text rendering capabilities.

Flux Kontext
文本生成图像

$0.04 /次生成

flux-kontext-pro

Black Forest Labs' in-context image generation and editing family for scene-preserving edits, text replacement, and prompt-driven visual changes.

GPT-4o Image
文本生成图像

$0.02 /次生成

gpt-4o-image

OpenAI's native multimodal image generator with exceptional text rendering, precise prompt following, and conversational editing capabilities.

Seedream 4.5
文本生成图像

$0.025 /次生成

seedream-4.5

ByteDance's unified 4K image generation and editing model with professional-grade text rendering and commercial photography quality.

Nano Banana 2
文本生成图像

$0.025 /次生成

nano-banana-2-new

Google's next-gen image model powered by Gemini 3.1 Flash with native 2K/4K resolution, chain-of-thought reasoning, precise multi-language text rendering, and up to 14 reference images.

Seedream 5.0 Lite
文本生成图像

$0.025 /次生成

seedream-5.0-lite

ByteDance's efficient multimodal image model with native 2K/3K resolution, deep thinking, bilingual text rendering, and smart editing.

Wan 2.7 Image
文本生成图像

$0.021 /次生成

wan-2.7-image

Alibaba's unified Wan 2.7 image family for text-to-image generation and reference-based image editing with standard and pro quality tiers.

Nano Banana 2 Lite
文本生成图像

$0.025 /次生成

nano-banana-2-lite

Google's fastest and most cost-efficient Gemini Image model, built for rapid ideation, high-throughput image generation, low-latency creative workflows, and scaled production pipelines.

Kling O3 Image
文本生成图像

$0.018 /张

kling-o3-image

Kling's O3 image family supports prompt-only generation, multi-reference editing, single outputs, and connected series generation with 1K to 4K resolution tiers.

Flux Dev
文本生成图像

$0.02 /百万像素

flux-dev

Black Forest Labs image model for text-to-image generation and single-image editing with output-size based pricing.

Flux Schnell
文本生成图像

$0.002 /百万像素

flux-schnell

Black Forest Labs fast text-to-image model for low-cost prompt-based image generation with output-size based pricing.

Grok Imagine Image Quality
文本生成图像

$0.04 /张

grok-imagine-image-quality

xAI's higher-fidelity Grok Imagine image model for polished text-to-image generation and reference-based image editing.

文本生成图像模型 API - 价格和模型适配

选择模型前,对比供应商、支持的输入、输出格式和价格。

精确任务匹配

只有模型目录元数据包含 Text to Image 的模型才会出现在这里。

供应商对比

无需离开任务目录,即可查看不同供应商的模型系列。

API 就绪路径

每张模型卡都会跳转到 PoYo 的价格、示例、Playground 控件和 API 详情。

模型供应商任务类型价格
Nano Banana Pro

nano-banana-pro

GoogleText to Image, Image to Image$0.04/次生成
GPT Image 2

gpt-image-2

OpenAIText to Image, Image to Image$0.01/次生成
Qwen Image 3.0

qwen-image-3

AlibabaText to Image, Image to Image, Uncensored$0.024/张
FLUX 3 Image Klein

flux-3-klein

Black Forest LabsText to Image, Image to Image$0.009/张
Seedream 5.0 Pro

seedream-5.0-pro

SeedreamText to Image, Image to Image, Uncensored$0.075/张
GPT Image 2.5

gpt-image-2.5-flare

OpenAIText to Image, Image to Image$4.00100 万输入
GPT Image 2.6

gpt-image-2.6-flare

OpenAIText to Image, Image to Image$4.00100 万输入
Grok Imagine Image 2.0

grok-imagine-image-2.0

xAIText to Image, Image to Image$0.04/张
MAI Image 2.6

mai-image-2.6

MicrosoftText to Image, Image to Image$1.40100 万输入
MiniMax H3 Image

minimax-h3-image

MiniMaxText to Image, Image to Image$0.016/张
Qwen Image 2.1

qwen-image-2.1

AlibabaText to Image, Image to Image$0.03/次生成
Seedream 5.5

seedream-5.5

SeedreamText to Image, Image to Image$0.008/张
Ideogram 4.5

ideogram-v4.5

IdeogramText to Image, Image to Image$0.008/张
Ideogram Vector 1.0

ideogram-vector-1.0/text-to-vector

IdeogramText to Image, Image to Image$0.10/张
Nano Banana 2.1

nano-banana-2.1

GoogleText to Image, Image to Image$0.02/张
Seedream 5.0 Flash

seedream-5.0-flash

SeedreamText to Image, Image to Image$0.02/张
FLUX.2

flux-2-pro

Black Forest LabsText to Image, Image to Image$0.03/次生成
GPT Image 1.5

gpt-image-1.5

OpenAIText to Image, Image to Image$0.01/次生成
Grok Imagine

grok-imagine-image

xAIText to Image, Image to Video, Uncensored$0.03/张
Nano Banana

nano-banana

GoogleText to Image, Image to Image$0.025/次生成
Seedream 4

seedream-4

SeedreamText to Image, Image to Image$0.025/次生成
Z-Image

z-image

AlibabaText to Image, Uncensored$0.01/次生成
Flux Kontext

flux-kontext-pro

Black Forest LabsText to Image, Image to Image$0.04/次生成
GPT-4o Image

gpt-4o-image

OpenAIText to Image, Image to Image$0.02/次生成
Seedream 4.5

seedream-4.5

SeedreamText to Image, Image to Image, Uncensored$0.025/次生成
Nano Banana 2

nano-banana-2-new

GoogleText to Image, Image to Image$0.025/次生成
Seedream 5.0 Lite

seedream-5.0-lite

SeedreamText to Image, Image to Image, Uncensored$0.025/次生成
Wan 2.7 Image

wan-2.7-image

AlibabaText to Image, Image to Image$0.021/次生成
Nano Banana 2 Lite

nano-banana-2-lite

GoogleText to Image, Image to Image$0.025/次生成
Kling O3 Image

kling-o3-image

KlingText to Image, Image to Image$0.018/张
Flux Dev

flux-dev

Black Forest LabsText to Image, Image to Image$0.02/百万像素
Flux Schnell

flux-schnell

Black Forest LabsText to Image$0.002/百万像素
Grok Imagine Image Quality

grok-imagine-image-quality

xAIText to Image, Image to Image$0.04/张

常见问题

什么是文生图 API?

+

文生图 API 接收提示词与模型支持的设置,生成新的图片。应用提交请求后获取结果,用于创意工具、营销生产或自动化素材生成;已有图片需要修改时,应选择图生图或图片编辑接口。

如何为 AI 图片生成 API 编写提示词?

+

先写主体,再补充构图、背景、光线和风格。产品图可明确材质和拍摄角度;海报可描述布局,并用引号标出需要出现的文字。把关键要求与装饰性细节分开,便于逐项调整。

应该选择哪个文生图模型?

+

用相同提示词和相近输出设置测试多个模型,重点检查你的业务所需的产品形状、人脸、文字或插画风格。结合可用结果比例与重试成本比较,而不是只看最低起始价格。

文生图 API 能生成准确的图片文字吗?

+

不同模型的文字渲染能力有差异,生成后仍需检查。尽量使用简短、明确的文字;精确价格、重要声明或品牌字体,可在生成视觉素材后通过设计或排版流程添加。

如何保持角色和画风一致?

+

重复使用明确的风格描述与提示词结构。需要紧密保持人物或产品外观时,应选择支持参考图的图生图模型。重复同一段文字并不能保证每次生成完全相同的角色。

支持哪些分辨率和图片比例?

+

以所选模型接口列出的尺寸和比例为准,按社媒竖图、封面横图等最终用途选择。原生生成尺寸与放大后的尺寸不同,不能仅凭输出像素判断细节质量。

可以批量生成多张图片吗?

+

应用可以协调多次请求,部分模型也提供单次输出数量设置。确认一次请求包含几张图片,按账户额度控制并发,并保存每次返回的任务 ID 与批次成本。

文生图与图生图 API 有什么区别?

+

文生图从文字构建新画面;图生图以已有图片为视觉起点进行编辑或变化。需要保留特定产品、人物或布局时,优先测试支持参考输入的图生图模型。

如何获取生成的图片?

+

向 /api/generate/submit 提交模型与输入,保存返回的 task_id,再查询 /api/generate/status/{task_id} 或设置支持的 callback_url。任务完成后读取输出,并保存应用需要长期保留的图片。

文生图 API 如何计费?

+

查看所选模型的价格与计费单位,可能按图片、生成次数或图片尺寸计算,部分选项另有费用。根据实际设置与整个批次估算,不应把所有图片接口视为相同单价。

请求失败或超时后应该怎么办?

+

先查询原任务状态,网络超时不代表生成失败。检查输入、尺寸、余额与返回错误后再决定重试。若结果已生成但不理想,可简化提示词或每次只调整一个设置。

在哪里查看 Python 或 JavaScript 调用示例?

+

模型页提供当前参数、API 文档与示例,/models/{model-id}/llms.txt 也包含模型专属接入信息。使用文档中的模型标识和请求结构,将 API Key 保存在服务端配置中。