通义千问系列首个图像生成模型,参数规模200亿。具备卓越的文本渲染能力,在复杂文本渲染、各类生成与编辑任务重表现出色,在多个公开基准测试中获得SOTA。
生图按张或批次计费。
各供应线路共用上方售价,不按 token 分别标价。
| 提供商 | 延迟 | 可用率 | 状态 |
|---|---|---|---|
dashscope Qwen-Image | — | — |
from openai import OpenAI
client = OpenAI(
base_url="https://api.openroute.cn/v1",
api_key="<ONTOROUTE_API_KEY>",
)
prompt = "A sunlit indoor lounge area with a pool containing a flamingo"
with open("sunlit_lounge.png", "rb") as image_file:
result = client.images.edit(
model="qwen/qwen-image",
image=image_file,
prompt=prompt,
size="1024x1024",
response_format="url",
)
print(result.data[0].url)暂无调用数据
该模型未公开可调参数。