通义千问系列首个图像生成模型,参数规模200亿。具备卓越的文本渲染能力,在复杂文本渲染、各类生成与编辑任务重表现出色,在多个公开基准测试中获得SOTA。
Images are billed per image or per batch.
Every route uses the price above. Routes are not priced per token.
| Provider | Latency | Uptime | Status |
|---|---|---|---|
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)暂无调用数据
This model does not publish tunable parameters.