wan-2-7-image最便宜Wan 2.7 Image API — 如何接入并付费
Wan 2.7 Image — 图像生成和编辑(Alibaba Wan)。不使用 input_urls 时进行 T2I;通过 input_urls 进行 I2I(最多 9 个)。
渠道对比
最近 7 天
wan-2-7-image:white默认| 渠道 | 价格 |
|---|---|
Pixel wan-2-7-image最便宜 | $0.0288 起 per image |
白色 wan-2-7-image:white默认 | $0.0288 起 per image |
组合你需要的输出结果
wan-2-7-image什么是 Wan 2.7 Image
Wan 2.7 Image — 图像生成和编辑(Alibaba Wan)。不使用 input_urls 时进行 T2I;通过 input_urls 进行 I2I(最多 9 个)。
契约概览
- 输入
- text, image
- 输出
- image
- 模式
- 异步(任务 + 轮询)
- 状态轮询
- 每 3 秒 · 最多 90 秒
优势
- 定价:按图像计费
- 输入:文本、图像
- 5 个可配置选项
- 媒体生成使用一个 API 密钥
应用场景
- 文章和社交媒体插图
- 产品图像
- 横幅和封面
- 设计原型
API 契约
生成是异步的:先创建任务,然后轮询状态直至完成。
- 创建任务
- POST /api/media/generate
- 检查状态
- GET /api/media/jobs/{jobId}
- 输入
- text, image
- 输出
- image
- 轮询
- 每 3 秒 · 最多 90 秒
- 鉴权
- Authorization: Bearer sk-pv-…
请求示例
在 Bearer 请求头中传递密钥。API 会返回 jobId 用于轮询状态。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"wan-2-7-image","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","tier":"standard","mode":"text-to-image","enable_sequential":false,"resolution":"2K","n":"1","watermark":false,"thinking_mode":"false"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "wan-2-7-image",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"tier": "standard",
"mode": "text-to-image",
"enable_sequential": false,
"resolution": "2K",
"n": "1",
"watermark": false,
"thinking_mode": "false"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API 请求参数
通过 GetVibe API 向 Wan 2.7 Image 发起请求的参数。
prompt必填image_urlaspect_ratiotiermodeenable_sequentialresolutionnseedwatermarkthinking_modecolor_palettebbox_listinput_urlsimage_file_idimage_base64input_file_idsinput_base64| 参数 | 类型 | 取值 | 默认值 | 价格 |
|---|---|---|---|---|
prompt必填 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
tier | option selection | Standard (default) · Pro (quality) | Standard | Standard: $0.0288, Pro (quality): $0.08 |
mode | option selection | Generation (default) · Image-to-Image | 生成 | Generation: $0.0288, Image-to-Image: $0.032 |
enable_sequential | yes/no | Yes · No (default) | 否 | Yes: $0.032, No: $0.0288 |
resolution | option selection | 1K · 2K (default) · 4K | 2K | 1K: $0.0288, 2K: $0.0288, 4K: $0.08 |
n | option selection | 1 (default) · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 | 1 | 1: $0.0288, 2: $0.064, 3: $0.096, 4: $0.128, 5: $0.16, 6: $0.192, 7: $0.224, 8: $0.256, 9: $0.288, 10: $0.32, 11: $0.352, 12: $0.384 |
seed | text / number | any value | — | Included in the base price |
watermark | yes/no | Yes · No (default) | 否 | Included in the base price |
thinking_mode | option selection | Disabled (default) · Enabled | Disabled | Included in the base price |
color_palette | Array<objects>, 3–10 items | object: hex, ratio | — | Included in the base price |
bbox_list | array | List of values | — | Included in the base price |
input_urls | Array<URLs>, 0–9 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
请求:POST https://getvibeapi.com/api/media/generate。价格以 USD 计。
Wan 2.7 Image 的价格
Wan 2.7 Image 的费用:从 $0.0288 per image。价格按当前汇率动态计算,最终扣费见 API 响应(priceRub)。以 USD 支付,无订阅。
默认请求的实际费用
若不传参数,请求将使用这些取值:Resolution — 2K, Version and quality — Standard, Mode — Generation, Sequential generation (up to 12 images) — No。 该请求的费用为 $0.0288。
各渠道及所有参数组合的价格
每个渠道的每种参数组合价格。这正是成功生成时扣除的金额,与下方链接的机器可读价格表一致。
Pixelwan-2-7-image$0.0288 起精确价格
| Quality · Sequential generation (up to 12 images) · Number of images \ Mode | 生成 | Image-to-Image |
|---|---|---|
| Standard · No · 1 | $0.0288 | $0.032 |
| Standard · No · 2 | $0.064 | $0.064 |
| Standard · No · 3 | $0.096 | $0.096 |
| Standard · No · 4 | $0.128 | $0.128 |
| Standard · Yes · 1 | $0.032 | $0.032 |
| Standard · Yes · 2 | $0.064 | $0.064 |
| Standard · Yes · 3 | $0.096 | $0.096 |
| Standard · Yes · 4 | $0.128 | $0.128 |
| Standard · Yes · 5 | $0.16 | $0.16 |
| Standard · Yes · 6 | $0.192 | $0.192 |
| Standard · Yes · 7 | $0.224 | $0.224 |
| Standard · Yes · 8 | $0.256 | $0.256 |
| Standard · Yes · 9 | $0.288 | $0.288 |
| Standard · Yes · 10 | $0.32 | $0.32 |
| Standard · Yes · 11 | $0.352 | $0.352 |
| Standard · Yes · 12 | $0.384 | $0.384 |
| Pro (quality) · No · 1 | $0.08 | $0.08 |
| Pro (quality) · No · 2 | $0.16 | $0.16 |
| Pro (quality) · No · 3 | $0.24 | $0.24 |
| Pro (quality) · No · 4 | $0.32 | $0.32 |
| Pro (quality) · Yes · 1 | $0.08 | $0.08 |
| Pro (quality) · Yes · 2 | $0.16 | $0.16 |
| Pro (quality) · Yes · 3 | $0.24 | $0.24 |
| Pro (quality) · Yes · 4 | $0.32 | $0.32 |
| Pro (quality) · Yes · 5 | $0.40 | $0.40 |
| Pro (quality) · Yes · 6 | $0.48 | $0.48 |
| Pro (quality) · Yes · 7 | $0.56 | $0.56 |
| Pro (quality) · Yes · 8 | $0.64 | $0.64 |
| Pro (quality) · Yes · 9 | $0.72 | $0.72 |
| Pro (quality) · Yes · 10 | $0.80 | $0.80 |
| Pro (quality) · Yes · 11 | $0.88 | $0.88 |
| Pro (quality) · Yes · 12 | $0.96 | $0.96 |
所有组合(JSON): /api/media/price-table?model=wan-2-7-image
白色wan-2-7-image:white$0.0288 起精确价格
| Quality · Sequential generation (up to 12 images) · Number of images \ Mode | 生成 |
|---|---|
| Standard · No · 1 | $0.0288 |
README
Wan 2.7 Image 的机器可读契约包含请求 schema、操作、限制、轮询和响应示例。
# Wan 2.7 Image
公开模型:wan-2-7-image
创建任务: POST /api/media/generate
检查状态: GET /api/media/jobs/{jobId}
## 输入参数
- `prompt` (text): text description; 默认: required
- `image_url` (URL): Public image URL; 默认: —
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4; 默认: 1:1
- `tier` (option selection): Standard (default) · Pro (quality); 默认: Standard
- `mode` (option selection): Generation (default) · Image-to-Image; 默认: Generation
- `enable_sequential` (yes/no): Yes · No (default); 默认: No
- `resolution` (option selection): 1K · 2K (default) · 4K; 默认: 2K
- `n` (option selection): 1 (default) · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12; 默认: 1
- `seed` (text / number): any value; 默认: —
- `watermark` (yes/no): Yes · No (default); 默认: No
- `thinking_mode` (option selection): Disabled (default) · Enabled; 默认: Disabled
- `color_palette` (Array<objects>, 3–10 items): object: hex, ratio; 默认: —
- `bbox_list` (array): List of values; 默认: —
- `input_urls` (Array<URLs>, 0–9 items): Public HTTP(S) URLs; 默认: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); 默认: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; 默认: —
- `input_file_ids` (Array<strings>): List of values; 默认: —
- `input_base64` (Array<strings>): List of values; 默认: —
## 公开变体
- `wan-2-7-image`: Pixel
- `wan-2-7-image:white`: White关于 Wan 2.7 Image API 的常见问题
Wan 2.7 Image 的价格是多少?
Wan 2.7 Image 的价格:从 $0.0288 per image。价格按当前汇率动态计算。
是否兼容 OpenAI SDK?
是的,API 完全兼容 OpenAI。只需将 base_url 改为 https://getvibeapi.com/v1 并设置密钥——其余代码不变。