API キーを取得

Alibaba

4Kの大きなキャンバスに、9枚までの画像合成

alibaba/wan-2.7-pro/edit12クレジットから/枚 · $0.12
  • 最大4K
  • 参照画像は最大9枚
  • 7種類のアスペクト比
  • 画像を作成
  • 画像を編集
A cut-crystal whisky glass with ice and condensation on a marble kitchen counter in warm afternoon sun.作例を見る

Wan 2.7 Pro について

Wan 2.7 Pro は、Alibaba の画像モデル Wan 2.7 の大判版です。テキストから画像は標準で2K、約1,600万画素の4Kプランもあり、2Kの編集では長い複数パートの指示にも応えます。最大9枚の参考画像で編集でき、比較を安定させるシードもあります。

POST /jobs/createTask でモデル名に alibaba/wan-2.7-pro/edit を指定すれば呼び出せます。12クレジット/枚から($0.12)。新規アカウントには 30 クレジットが付くので、まず Playground で無料で試せます。

このガイドは今のところ英語のみです。 →

リクエストパラメーター

パラメーター必須説明
aspect_ratioいいえ画面の形:横長、正方形、縦長。 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3
bounding_boxesいいえRectangles marking the areas to edit, in pixels from the top-left corner of the reference image each one belongs to. Up to 2 per image.
color_paletteいいえCustom colour theme: 3 to 10 colours, each with an optional share of the image in percent. Leave the shares empty to split them evenly.
image_urlsはい編集・合成する写真。それぞれの役割をプロンプトに書きます。
promptはいDescribe the image to produce from the source: subject, composition, style, and lighting.
seedいいえ同じ数字を使えば、同じ結果を再現できます。 ≥ 0 · ≤ 2147483647

料金

料金はクレジットで表示され、サイトで使うクレジットと同じです(1クレジット = $0.01)。タスクの受付時に保留され、完了時に実際の料金で精算されます。失敗したタスクは返金されます。

オプションクレジット /枚≈ USD
標準11.25$0.11

タスクごとにクレジットは整数に切り上げられるため、最安の設定で 1 回実行すると 12クレジット/枚($0.12)です。

実行前に正確な金額を知りたいときは、同じボディを POST /jobs/quote に送ってください。

API クイックスタート

Wan 2.7 Pro API を 3 ステップで呼び出す

  1. API キーを作成する. PopNow にログインし、API コンソールでキーを作成します。キーは sk-popnow- で始まり、サイトと同じクレジットを使います。
  2. リクエストを送る. POST /jobs/createTask に、model を alibaba/wan-2.7-pro/edit、input をパラメーター表どおりにして送ります。レスポンスですぐにタスク ID が返ります。
  3. 結果を受け取る. タスク ID で GET /jobs/recordInfo をポーリングするか、callBackUrl を渡せば結果がそこへ送られます。タスクが成功したら出力リンクからダウンロードします。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "alibaba/wan-2.7-pro/edit",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ]
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

プロンプトとリンクはご自身のものに置き換えてください。API タブにレスポンス、ポーリング、コールバックのリファレンスがあります。

Wan 2.7 Pro API についての質問

Wan 2.7 Pro API の料金はいくらですか?

Wan 2.7 Proの最安は画像を編集で、12クレジット($0.12)/枚からです。クレジットはサイトと共通(1クレジット = $0.01)で、新規アカウントには30クレジットが付き、失敗したタスクは返金されます。

Wan 2.7 Pro · 画像を編集 API の制限は?

アスペクト比:1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3;参照画像:9;プロンプトの長さ(文字):5,000。この範囲を超えるリクエストは、課金される前に拒否されます。

Wan 2.7 Pro についてさらに

エンドポイント
Wan 2.7 Pro · 画像を作成