qwen-image-2-1デフォルトQwen Image 2.1 API — 接続と支払いの方法
Qwen Image 2.1 — 生成と編集を1つのモデルで実行(docs.Pixel/market/qwen2-1/*)。最大10枚の参照画像、マスクベースの局所編集、ネイティブの透明(アルファ)出力に対応。
チャネル比較
過去7日間
| チャネル | 価格 |
|---|---|
Pixel qwen-image-2-1デフォルト | $0.026667から per image |
必要な結果を作成
qwen-image-2-1このモデルはカタログに最低価格のみ掲載されています。
Qwen Image 2.1とは
Qwen Image 2.1 — 生成と編集を1つのモデルで実行(docs.Pixel/market/qwen2-1/*)。最大10枚の参照画像、マスクベースの局所編集、ネイティブの透明(アルファ)出力に対応。
契約の概要
- 入力
- text, image
- 出力
- image
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大90秒
強み
- 料金:画像単位
- 入力:テキスト、画像
- 設定可能なオプション:8
- メディア生成に1つの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":"qwen-image-2-1","prompt":"a beautiful landscape","opts":{"mode":"text-to-image","aspect_ratio":"1:1","resolution":"1K","background":"opaque","output_format":"png","enhance_prompt":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": "qwen-image-2-1",
"prompt": "a beautiful landscape",
"opts": {
"mode": "text-to-image",
"aspect_ratio": "1:1",
"resolution": "1K",
"background": "opaque",
"output_format": "png",
"enhance_prompt": false
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でQwen Image 2.1にリクエストする際のパラメータ。
mode必須aspect_ratioresolutionbackgroundoutput_formatenhance_promptseedinput_urlsmask_urlimage_file_idimage_base64input_file_idsinput_base64mask_file_idmask_base64| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
mode必須 | option selection | image-to-image | required | Included in the base price |
aspect_ratio | option selection | 1:1 · 4:3 · 3:4 · 3:2 · 2:3 · 16:9 · 9:16 · auto | 1:1 | Included in the base price |
resolution | option selection | 1K · 2K | 1K | Included in the base price |
background | option selection | opaque · transparent | opaque | Included in the base price |
output_format | option selection | png · webp · jpeg | png | Included in the base price |
enhance_prompt | yes/no | Enhance prompt | false | Included in the base price |
seed | number | Seed (optional) | — | Included in the base price |
input_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
mask_url | URL | Mask (URL; white = change, black = keep) | — | 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 |
mask_file_id | text | Alternative to mask_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
mask_base64 | text | Alternative to mask_url: the file inline, as base64 or a data: URI | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Qwen Image 2.1の価格
Qwen Image 2.1の料金: リクエスト時。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
Pixelqwen-image-2-1$0.026667から正確な価格
| 解像度 | 1K | 2K |
|---|---|---|
| Pixel | $0.026667 | $0.053333 |
すべての組み合わせ(JSON): /api/media/price-table?model=qwen-image-2-1
README
Qwen Image 2.1の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Qwen Image 2.1
公開モデル: qwen-image-2-1
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `mode` (option selection): image-to-image; デフォルト: required
- `aspect_ratio` (option selection): 1:1 · 4:3 · 3:4 · 3:2 · 2:3 · 16:9 · 9:16 · auto; デフォルト: 1:1
- `resolution` (option selection): 1K · 2K; デフォルト: 1K
- `background` (option selection): opaque · transparent; デフォルト: opaque
- `output_format` (option selection): png · webp · jpeg; デフォルト: png
- `enhance_prompt` (yes/no): Enhance prompt; デフォルト: false
- `seed` (number): Seed (optional); デフォルト: —
- `input_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; デフォルト: —
- `mask_url` (URL): Mask (URL; white = change, black = keep); デフォルト: —
- `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; デフォルト: —
- `mask_file_id` (text): Alternative to mask_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `mask_base64` (text): Alternative to mask_url: the file inline, as base64 or a data: URI; デフォルト: —
## 公開バリアント
- `qwen-image-2-1`: PixelQwen Image 2.1 APIに関するよくある質問
Qwen Image 2.1の料金はいくらですか?
Qwen Image 2.1の料金はリクエスト時です。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。