flux-2デフォルト最安Flux 2 API — 接続と支払いの方法
Flux 2 — 新しいFLUXの生成モデル。テキストから画像への生成、画像から画像への変換に対応。
チャネル比較
過去7日間
flux-2:flow| チャネル | 価格 |
|---|---|
Pixel flux-2デフォルト最安 | $0.033333から per image |
Flow flux-2:flow | $0.04から per image |
必要な結果を作成
flux-2Flux 2とは
Flux 2 — 新しいFLUXの生成モデル。テキストから画像への生成、画像から画像への変換に対応。
契約の概要
- 入力
- text, image
- 出力
- image
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大90秒
強み
- 料金:画像単位
- 入力:テキスト、画像
- 設定可能なオプション:5個
- メディア生成用のAPIキー1つ
用途
- 記事やソーシャルメディア用のイラスト
- 商品画像
- バナーとカバー
- デザインプロトタイプ
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":"flux-2","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","tier":"pro","mode":"text-to-image","resolution":"1K"}}'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": "flux-2",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"tier": "pro",
"mode": "text-to-image",
"resolution": "1K"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でFlux 2にリクエストする際のパラメータ。
prompt必須image_urlaspect_ratiotiermoderesolutioninput_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 | Pro (top quality) (default) · Flex (fast) | Pro (最高品質) | Pro (top quality): $0.033333, Flex (fast): $0.066667 |
mode | option selection | Generate (text → image) (default) · Image-to-Image | 生成(テキスト → 画像) | Included in the base price |
resolution | option selection | 1K (default) · 2K | 1K | 1K: $0.033333, 2K: $0.046667 |
input_urls | Array<URLs>, 0–8 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です。
Flux 2の価格
Flux 2の料金: から $0.033333 per image。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
デフォルトのリクエストにかかる料金
パラメーターを指定しない場合、リクエストには次の値が使用されます: Resolution — 1K, Version and quality — Pro (top quality), Mode — Generate (text → image), Frame format — 1:1。 このリクエストの料金は$0.033333です。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
Pixelflux-2$0.033333から正確な価格
| バージョン \ 解像度 | 1K | 2K |
|---|---|---|
| Pro (最高品質) | $0.033333 | $0.046667 |
| Flex(高速) | $0.066667 | $0.16 |
すべての組み合わせ(JSON): /api/media/price-table?model=flux-2
Flowflux-2:flow$0.04から正確な価格
| バージョン \ 解像度 | 1K | 2K |
|---|---|---|
| Pro (最高品質) | $0.04 | $0.10 |
| Flex(高速) | $0.066667 | $0.266667 |
すべての組み合わせ(JSON): /api/media/price-table?model=flux-2%3Aflow
README
Flux 2の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Flux 2
公開モデル: flux-2
ジョブを作成: 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): Pro (top quality) (default) · Flex (fast); デフォルト: Pro (top quality)
- `mode` (option selection): Generate (text → image) (default) · Image-to-Image; デフォルト: Generate (text → image)
- `resolution` (option selection): 1K (default) · 2K; デフォルト: 1K
- `input_urls` (Array<URLs>, 0–8 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; デフォルト: —
## 公開バリアント
- `flux-2`: Pixel
- `flux-2:flow`: FlowFlux 2 APIに関するよくある質問
Flux 2の料金はいくらですか?
Flux 2の料金はから $0.033333 per imageです。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。