Image Alibaba

Wan Image API

透過 RunAPI 使用 Wan Image API,包含 model skill、統一驗證與按用量計費。

runapi.ai
curl -X POST https://runapi.ai/api/v1/wan/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.7-image",
  "prompt": "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。"
}'
import { WanClient } from "@runapi.ai/wan";

const client = new WanClient();
const result = await client.textToImage.run({
    model: "wan-2.7-image",
    prompt: "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Wan\WanClient;

$client = new WanClient();
$result = $client->textToImage->run([
        'model' => 'wan-2.7-image',
        'prompt' => '生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。',
]);
require "runapi/wan"

client = RunApi::Wan::Client.new
result = client.text_to_image.run(
    model: "wan-2.7-image",
    prompt: "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。"
)
npx skills add runapi-ai/wan -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/wan v1
OVERVIEW

關於 Wan Image

Wan Image API 以在 image 領域兼顧品質與成本而聞名。安裝其 model skill,將文件、schema、價格備註與 setup 步驟帶入你的 app workflow。

供應商
Alibaba
模態
Image

比較所有 API 變體

變體 計費方式 定價
wan-2.7-image call $0.050 查看 →
wan-2.7-image-pro call $0.120 查看 →
PRICING

Wan Image 定價

Endpoint 解析度 時長 價格
text_to_image 1k, 2k, 4k $0.05 / image

顯示 wan-2.7-image 的定價。其他變體保有各自的 endpoint 定價。

Agent 整合

透過 Agent 執行 Wan Image

運作方式

Wan Image 快速入門

  1. 選擇模型

    挑選符合輸出類型、品質門檻與延遲目標的模型與變體。

  2. 設定

    設定 RunAPI key,並在 coding workspace 安裝 model skill。

  3. 開發

    使用 skill 指引,在你的 app 內加入模型功能。

  4. 接收

    透過 task ID 查詢、在支援時串流,或處理 webhook callback。

CONTEXT

什麼是 Wan Image API?

Wan Image API 讓你使用 Alibaba 家族中的 image 模型。透過 RunAPI 使用時,可享有統一 API、共用計費,以及把實作脈絡帶入 app workspace 的 model skill。

供應商
Alibaba
查看全部 →
模態
Image
瀏覽模型 →

為什麼透過 RunAPI 使用 Wan Image API

一組驗證,全部供應商通用

一把 RunAPI 金鑰就能開通整個目錄。無需分開註冊帳戶,也不用為每個整合各自輪替金鑰。

統一價格與計費

以美元按次計費,每月結帳。失敗的生成不收費。

內含 schema 的 skill

型別化 schema 與 setup 備註打包在 model skill 內,讓實作從正確契約開始。

Wan Image 常見問題

我應該先從哪個版本開始?

先選擇符合你品質標準中最便宜的版本。大多數團隊會先用快速版本,之後再升級到專業版用於正式上線。

有免費方案嗎?

建立帳戶和 API Key 免費。API 呼叫採預付儲值、按量計費,儲值後即可使用。

你們支援串流結果嗎?

只要該功能可用,RunAPI 會提供端到端串流。

失敗的請求如何計費?

生成失敗不會收費。

輸出結果有快取嗎?

生成結果會儲存,並可透過任務 ID 取回。輸入內容不會快取。

可以商業使用嗎?

可以——除非模型授權明確限制,否則每個版本都包含商業使用權;若有例外,會在版本頁面標示。

相似模型

如果你喜歡 Wan Image API,可以試試這些

開始用 Wan Image API 開發。