APIMart 上的 Wan 2.7 Image API(wan2.7-image)运行阿里巴巴 Wan 2.7 图片模型的标准版。它支持文生图、图片编辑、最多 9 张输入的多图参考、框选编辑和最多 12 张的组图,分辨率为 1K 或 2K,按成功生成的张数计费。
服务亮点
生成一组内容连贯的多张图片(最多12张)
增强推理能力,提升画质(仅文生图时生效)
3–10 项,比例之和需等于 100%(仅非组图模式可用)

Image link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|
wan2.7-image | 0.216Credits(~$0.0216)/张 | 0.2052Credits(~$0.0205)/张 | 0.1944Credits(~$0.0194)/张 | 0.27Credits(~$0.027)/张 | 20% |
* 实际费用以最终输出为准。
在 APIMart 用 Wan 2.7 Image API,根据文字生成图片,用最多 9 张参考图或框选区域编辑图片,并一次生成最多 12 张连贯组图,分辨率 1K 或 2K,按张计费。
50K+
活跃用户
99.9%
在线率
2x
更快
20%
成本节省
在 APIMart 用一个 POST 请求调用 Wan 2.7 Image API。生成是异步的:先提交任务,再轮询任务接口获取图片地址。
把 APIMart 密钥保存在环境变量 APIMART_API_KEY 中,每次请求时以 Authorization: Bearer <key> 发送。
向 POST /v1/images/generations 发送 model wan2.7-image、提示词、size 和 resolution,传入 image_urls 即为编辑。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后从 data.result.images[0].url[0] 读取图片地址,并把文件保存到自己的存储。
完整参数、编辑规则与返回字段见 Wan 2.7 Image API 文档。
curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-image",
"prompt": "清晨温馨的花店橱窗,木门,一桶桶郁金香陈列其中,柔和晨光,写实摄影",
"n": 1,
"size": "16:9",
"resolution": "2K"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "wan2.7-image",
"prompt": "清晨温馨的花店橱窗,木门,一桶桶郁金香陈列其中,柔和晨光,写实摄影",
"n": 1,
"size": "16:9",
"resolution": "2K"
}
resp = requests.post(f"{API_BASE}/v1/images/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["images"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(3)
else:
raise TimeoutError(f"task {task_id} did not finish in time; continue GET polling with this task ID")curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-image",
"prompt": "把产品放在大理石厨房台面上,旁边摆着新鲜柠檬,柔和日光,标签保持不变",
"n": 1,
"image_urls": [
"https://example.com/product.jpg"
],
"resolution": "2K"
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | 默认值: wan2.7-image | 使用 wan2.7-image。 |
prompt | string | 是 | 默认值: — | 图片描述,最多 5,000 字符。编辑时可选,但建议填写。 |
image_urls | array | 否 | 默认值: — | 最多 9 张输入图(URL 或 Base64;JPEG、PNG、WEBP 或 BMP;240–8000 像素;每张最大 20 MB)。传入即切换为编辑模式,输出比例跟随最后一张图。 |
n | integer | 否 | 默认值: 1 | 每次请求的图片数:1–4 张,开启 enable_sequential 时 1–12 张。按张计费。 |
size | string | 否 | 默认值: 2K | 1K 或 2K、比例(1:1、16:9、9:16、4:3、3:4、3:2、2:3)或像素尺寸。 |
resolution | string | 否 | 默认值: — | 1K 或 2K,可与 size 中的比例组合使用。 |
negative_prompt | string | 否 | 默认值: — | 需要避免的元素。 |
enable_sequential | boolean | 否 | 默认值: false | 生成一组连贯的图片,例如分镜。n 最大 12。 |
bbox_list | array | 否 | 默认值: — | 每张输入图的编辑区域,每张最多 2 个框;没有框的图传 []。 |
color_palette | array | 否 | 默认值: — | 3–10 个 hex 颜色及占比,占比合计 100%。组图模式下不生效。 |
thinking_mode | boolean | 否 | 默认值: true | 增强推理以提升质量,耗时更长。仅对无输入图且非组图的文生图生效。 |
seed | integer | 否 | 默认值: — | 0 到 2147483647,参数相同时结果更一致。 |
watermark | boolean | 否 | 默认值: false | 在右下角添加 AI 生成水印。 |
nsfw_check | boolean | 否 | 默认值: false | 提交前用 omni-moderation-latest 审核提示词和输入图片。 |
两个 Wan 2.7 Image 模型使用相同的请求格式,在 APIMart 都按张计费。按需要的分辨率和细节来选择。
| 型号 | 适用场景 | 分辨率 |
|---|---|---|
| Wan 2.7 Image API当前页面 | 日常文生图、编辑和组图,最高 2K,每张价格更低 | 1K / 2K |
| Wan 2.7 Image Pro API | 细节丰富的 4K 文生图,编辑和组图最高 2K | 1K / 2K / 4K |
来自 APIMart 博客的教程、对比与价格分析。
标准版 wan2.7-image 在生成和编辑上能做什么
最高 2K 的日常图片工作流
三步完成从注册到第一张 Wan 2.7 Image 图片
注册 APIMart、充值,并在控制台创建 API 密钥。
在上方试用文生图和图片编辑,写代码前先看每张图的费用。
参照下方示例从后端提交任务,再轮询获取结果。
看看创作者如何改变他们的图像工作流。以下为 Wan 2.7 Image 系列原始使用反馈,可能涉及不同版本。
“wan2.7 generate image 的质量超出了我的预期,色彩还原和纹理细节都非常出色,我们每天都在用 wan 做产品营销内容。”
陈磊
DesignWorks 创意总监
“wan 接入非常简单,一个小时就集成进我们的平台了。通过 APIMart 调用稳定可靠,完全满足生产需求。”
林晓彤
UI/UX 设计师
“wan 模型能捕捉到其他工具忽略的风格细节,客户经常问我是怎么这么快产出高质量图稿的。”
Marcus Weber
自由插画师
“APIMart 的 wan2.7 generate image 定价非常有竞争力。我们每周生成数百张图片,成本只有以前的一小部分。”
Emma Rodriguez
市场营销经理
“从其他图像模型切换到 wan 只需要改一个参数,接口完全兼容,迁移成本极低。”
刘伟
全栈开发者
“我们所有的广告概念稿都依赖 wan 来生成。速度快、质量高,大大提升了我们团队的产出效率。”
Sophie Anderson
AdVision 艺术总监
关于 wan2.7-image、它与 Pro 的对比以及调用方式
Wan 2.7 Image 是阿里巴巴 Wan 2.7 图片模型的标准版,支持文生图、图片编辑、多图参考、交互式编辑和组图生成,最高 2K。在 APIMart 的 model ID 是 wan2.7-image。
Wan 2.7 Image Pro(wan2.7-image-pro)的文生图支持 4K,文档称其细节更好;两者的编辑和组图最高都是 2K。Wan 2.7 Image 是生成更快的标准版,每张价格也更低。
不是。Wan 2.7 Image(wan2.7-image)生成静态图片。视频用的 Wan 2.7 API 是独立的 wan2.7 模型,有自己的页面。
在 image_urls 传入一张或多张图片,并在提示词中描述修改。要编辑特定区域,加上 bbox_list,每张图最多 2 个框,坐标为以左上角为原点的绝对像素值。
每次请求最多 9 张:JPEG、PNG、WEBP 或 BMP,边长 240 到 8000 像素,宽高比在 1:8 到 8:1 之间,每张不超过 20 MB。
可以。普通模式下 n 为 1 到 4 张。开启 enable_sequential 后 n 最多 12 张,并组成一组连贯的图片;该模式下 thinking_mode 和 color_palette 不生效。
所有模式都支持 1K 或 2K(默认 2K),像素范围 768×768 到 2048×2048。size 也可设为 1:1、16:9、9:16、4:3、3:4、3:2、2:3,或 1024x1024 这样的像素尺寸。
model(wan2.7-image)必填,文生图时 prompt 也必填。可选字段:image_urls、n、size、resolution、negative_prompt、enable_sequential、bbox_list、color_palette、thinking_mode、seed、watermark 和 nsfw_check。
提交到 POST /v1/images/generations,从 data[0].task_id 读取任务 ID。每隔几秒轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后读取 data.result.images[0].url[0]。
Wan 2.7 Image 按成功生成的张数计费,分辨率和比例不影响价格,预估费用为单价乘以 n。当前价格见本页价格表;黄金会员立省 20%,铂金和钻石会员最高省 28%。
都不是。APIMart 没有为 Wan 2.7 Image 提供免费额度,按生成张数付费。阿里巴巴以托管 API 提供 Wan 2.7,没有公开模型权重,因此没有官方下载。
注册 APIMart、充值,然后在 API 密钥页面创建密钥,以 Authorization: Bearer <key> 发送。同一个密钥可以调用所有 Wan 模型以及 APIMart 上的其他模型。
探索同类型的其他模型。

GPT Image 2
GPT Image 2 delivers next-gen AI image generation from text prompts with near-perfect text rendering, native 4K output, and deep world knowledge. As the latest in the GPT Image series, this GPT Image API supports model, prompt, and other parameters — ideal for production workflows.

Qwen Image 2.0 Pro
Qwen-Image-2.0-Pro is the highest-fidelity variant of Alibaba’s Qwen image model, designed to generate and edit production-quality visuals from text or reference images. It delivers native 2K resolution with strong detail, accurate composition, and advanced text rendering, making it suitable for infographics, posters, and marketing assets. 

Qwen Image 2.0
Qwen-Image-2.0 is an AI image model that combines “generation and editing” capabilities, supports extremely long descriptions, and delivers high-quality 2K output. It is particularly well-suited for image creation that requires clear text and professional design aesthetics.

GPT Image 1 Official
GPT-Image-1 is an AI generative model that integrates text and image understanding, specializing in high-quality image creation and editing.