Qwen Image 2.1 Turbo
Alibaba の Qwen Image 2.1 Turbo を、1 つの API キーと前払い料金で Advanced Computing API から呼び出せます。
- 入力
- テキスト
- 画像
- プロバイダー
- Alibaba
- 出力
- 画像
- 入力
- テキスト · 画像
Qwen Image 2.1 Turbo is billed per generated image, at one price for every resolution.
| Resolution | Per image |
|---|---|
| 1K, 2K | $0.016 |
- Aspect ratio doesn't change the price.
- Reference images are free.
- A failed generation costs nothing.
実際の請求額は料金ページの価格に従います。 料金を見る
ほかの Advanced Computing モデルと同じ API とキーで使えます。リクエストをコピーし、キーを入れて送信してください。
input フィールド
mode フィールドは必須です。生成方法を指定し、モードごとに固有のフィールドがあります。_url または _urls で終わるフィールドは入力素材です。
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
mode必須 | string | — | How to generate. Each mode takes its own fields. One of: text |
prompt必須 | string | — | What to generate, in natural language. 1 to 2000 characters |
seed任意 | integer | — | Fixes the random seed, so the same input repeats its output. 0 to 2147483647 |
enhance_prompt任意 | boolean | true | Whether the model may rewrite the prompt in more detail before generating. |
resolution任意 | string | 2K | Resolution of the output. One of: 1K, 2K |
aspect_ratio任意 | string | 1:1 | Width to height ratio of the output. One of: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9 |
mode必須string
How to generate. Each mode takes its own fields.
One of: text
prompt必須string
What to generate, in natural language.
1 to 2000 characters
seed任意integer
Fixes the random seed, so the same input repeats its output.
0 to 2147483647
enhance_prompt任意boolean = true
Whether the model may rewrite the prompt in more detail before generating.
resolution任意string = 2K
Resolution of the output.
One of: 1K, 2K
aspect_ratio任意string = 1:1
Width to height ratio of the output.
One of: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9
curl https://advanced-computing.com/api/v1/generations \
-H "Authorization: Bearer $AC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2-1-turbo",
"input": {
"mode": "text",
"prompt": "A lighthouse on a cliff at dawn, mist rolling over the sea",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}'自分のパラメータでモデルを試せます。各生成は表示価格で残高から差し引かれます。