Qwen Image 3.0 Pro
curl --request POST \
--url https://apistable.ai/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "A polished museum exhibition poster titled \"BOTANICAL ATLAS\" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.",
"aspect_ratio": "1:1",
"resolution": "1K",
"n": 1
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'qwen-image-3.0-pro',
input: {
prompt: 'A polished museum exhibition poster titled "BOTANICAL ATLAS" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.',
aspect_ratio: '1:1',
resolution: '1K',
n: 1
}
})
};
fetch('https://apistable.ai/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/tasks/create_task"
payload = {
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "A polished museum exhibition poster titled \"BOTANICAL ATLAS\" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.",
"aspect_ratio": "1:1",
"resolution": "1K",
"n": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}Alibaba
Qwen Image 3.0 Pro
面向密集版式与细节质感的 3.0 Pro 图像接口,支持 1K/2K 与精确像素尺寸(512–2048)、可选提示词重写、最多 3 张参考图编辑与单次最多 6 张输出。
POST
/
api
/
v1
/
tasks
/
create_task
Qwen Image 3.0 Pro
curl --request POST \
--url https://apistable.ai/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "A polished museum exhibition poster titled \"BOTANICAL ATLAS\" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.",
"aspect_ratio": "1:1",
"resolution": "1K",
"n": 1
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'qwen-image-3.0-pro',
input: {
prompt: 'A polished museum exhibition poster titled "BOTANICAL ATLAS" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.',
aspect_ratio: '1:1',
resolution: '1K',
n: 1
}
})
};
fetch('https://apistable.ai/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/tasks/create_task"
payload = {
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "A polished museum exhibition poster titled \"BOTANICAL ATLAS\" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.",
"aspect_ratio": "1:1",
"resolution": "1K",
"n": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}参数与输入模式
model 与 input 必填,省略可选字段时使用模型默认值;完整字段定义见下方 Body 参数列表。
| 请求场景 | input 必填字段 |
|---|---|
| 文生图 | prompt |
| 参考图编辑 | prompt、image_urls(1–3 张公网 URL 或 PNG Data URL) |
特殊参数规则
- 精确像素(
size: "widthxheight"):覆盖aspect_ratio与resolution。宽 × 高大于2,250,000像素按 2K 计费,等于或小于按 1K 计费。 - 提示词重写(
prompt_extend_mode):须同时传prompt_extend: true。direct支持文生图与编辑;agent仅支持无参考图的文生图,传入image_urls会被拒绝。
使用场景
将以下示例提交到POST /api/v1/tasks/create_task,并将提示词与图片链接替换为你的内容。
{
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "A polished museum exhibition poster titled \"BOTANICAL ATLAS\" with four labeled botanical plates arranged in a crisp grid on cream archival paper, refined serif typography.",
"aspect_ratio": "1:1",
"resolution": "1K",
"n": 2
}
}
{
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "Preserve the illustrated diagram layout and existing labels; add a clean callout line and label pointing to the upper petal.",
"image_urls": [
"https://cdn.example.com/product.png"
],
"resolution": "1K"
}
}
{
"model": "qwen-image-3.0-pro",
"input": {
"prompt": "Top-down architectural garden plan with winding flagstone paths, wooden pergola, pond, and labeled planting beds in warm daylight.",
"size": "1600x1200",
"prompt_extend": true,
"prompt_extend_mode": "agent"
}
}
通过 查询任务 或 callback_url(Webhook 安全与验签)获取结果,提交错误见 创建任务。结果链接保留 14 天;超过 24 小时未完成的任务将标记失败且不扣费。
试用与价格
每次请求作为一个执行项,最多生成n(1–6)张图片,按实际交付张数计费。每张输入参考图另加 0.5 积分($0.0025),每笔成功请求仅计一次,不乘 n。部分成功仅按交付张数加一次参考图费结算,全失败不扣费。余额查询见 查询积分余额。| 计费项 | 积分 | USD |
|---|---|---|
| 1K 输出(每交付张) | 7 | $0.035 |
| 2K 输出(每交付张) | 14 | $0.070 |
| 参考图输入(每请求每张一次) | +0.5 | +$0.0025 |
在线试用
设置参数并在线生成图片。
查看价格
查看输出单价、充值赠送折合价与参考图计费说明。
授权
登录 APIstable 后,在 API Key 管理 创建并复制密钥。
每次调用都要在 HTTP 请求头传入:
Authorization: Bearer YOUR_API_KEY
将 YOUR_API_KEY 替换为你创建的 API Key。
请求体
application/json
回调
POST{$request.body#/callback_url}Webhook
请求体
application/json
任务成功或失败后,APIstable 向创建任务时传入的 callback_url 发送 JSON POST。验签后返回 HTTP 2xx 确认接收。
用 data.status 判断生成结果。部分成功也返回 succeeded。data.result.urls 列出成功图片,图片保留 14 天。全部失败时为 failed,data.result 为 null,data.message 提供失败原因。
签名和去重使用 X-APIstable-Signature、X-APIstable-Timestamp 和 X-APIstable-Event-Id。详见 Webhook 安全与验签。
Webhook 请求体示例
{
"code": 200,
"msg": "success",
"data": {
"task_id": "00000000-0000-4000-8000-000000000001",
"model": "qwen-image-3.0-pro",
"status": "succeeded",
"created_at": "2026-11-13T08:30:00.000Z",
"completed_at": "2026-11-13T08:30:08.000Z",
"duration": 8000,
"charged_credits": 7,
"message": "",
"input": "{\"prompt\":\"A ceramic teapot in soft morning light\",\"aspect_ratio\":\"1:1\",\"resolution\":\"1K\",\"n\":1}",
"result": {
"urls": [
"https://cdn.example.com/generated/image.png"
],
"items": [
{
"id": "00000000-0000-4000-8000-000000000002",
"status": "succeeded",
"charged_credits": 7,
"urls": [
"https://cdn.example.com/generated/image.png"
]
}
]
}
}
}
响应
2XX
已接收 Webhook。
响应
已受理。使用 task_id 查询任务,或通过 callback_url 接收结果。