Flux Fill Pro API
マスクによるインペイント、またはキャンバスを拡張するアウトペイント。
- ~15s
- 平均生成時間
- 9 credits
- 最低価格
画像 · Flux 2 Maxで生成 プレイグラウンド
Flux Fill Proをここで試す。
料金
シンプルな生成単位課金。
9 クレジット/1生成あたり ≈ $0.09
- 成功した生成にのみ課金されます。失敗したジョブは自動的に返金されます。
- Apiframeの全モデルでひとつのクレジット残高を共有。モデルごとのプランはありません。
- 無料クレジットで開始。サブスクリプションは不要です。
- 大きなプランにはボリュームディスカウントがあります。
スペック
ひと目でわかる。
クイックスタート
Flux Fill Pro APIの呼び出し方。
APIキーを添えてPOST /v2/images/editリクエストをひとつ送るだけ。呼び出しはポーリング可能なjobIdを返します。webhook_urlを渡せば、結果は完成と同時にプッシュされます。
flux-fill-proを別のモデルに替えても、他は何も変わりません。
const response = await fetch("https://api.apiframe.ai/v2/images/edit", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "flux-fill-pro",
"fluxFillParams": {
"image": "https://example.com/input.jpg",
"mode": "inpaint",
"mask": "https://example.com/input.jpg",
"outpaint": "Zoom out 1.5x"
}
}),
});
const { jobId } = await response.json();
console.log(jobId); 入力スキーマ
Flux Fill Proが受け付けるすべてのフィールドと型、デフォルト値。完全なリファレンスはドキュメントにあります。
| フィールド | 型 | 説明 |
|---|---|---|
| prompt 必須 | string | 生成する内容のテキスト説明。 |
| model 必須 | string | このエンドポイントのモデル識別子。 デフォルト:"flux-fill-pro" · "flux-fill-pro" |
| fluxFillParams.image | string (URL) | Source image (URL) |
| fluxFillParams.mode | string | Mode デフォルト:"inpaint" · "inpaint", "outpaint" |
| fluxFillParams.mask | string (URL) | White = repaint, black = keep. Required for inpaint. |
| fluxFillParams.outpaint | string | Required for outpaint mode. デフォルト:"Zoom out 1.5x" · "Zoom out 1.5x", "Zoom out 2x", "Make square", "Left outpaint", "Right outpaint", "Top outpaint", "Bottom outpaint" |
| fluxFillParams.prompt | string | Prompt |
| fluxFillParams.prompt_upsampling | boolean | Prompt upsampling デフォルト:false |
| fluxFillParams.steps | number | Steps デフォルト:50 · min 1, max 50, step 1 |
| fluxFillParams.guidance | number | Guidance デフォルト:3 · min 2, max 5, step 0.1 |
| fluxFillParams.safety_tolerance | number | 1 = strictest, 6 = most permissive. デフォルト:2 · min 1, max 6, step 1 |
| fluxFillParams.output_format | string | Output format デフォルト:"jpg" · "jpg", "png" |
| fluxFillParams.seed | number | Reuse a number to reproduce the same result. step 1 |
Fluxのバージョン
ApiframeのすべてのFlux 画像モデル。パラメータひとつで切り替えられます。
Flux Fill Proに関する質問
Flux Fill Proで出荷する前にチームがよく尋ねる質問。その他はドキュメントをご覧ください。
Flux Fill Pro の API はありますか?
はい。Apiframe は単一の REST エンドポイント(POST /v2/images/edit、model: "flux-fill-pro")で Flux Fill Pro を提供します。対応するすべてのモデルで、統一されたAPI・キー・請求をご利用いただけ、Black Forest Labs の個別アカウントは不要です。
Flux Fill Pro API の料金はいくらですか?
Flux Fill Pro は Apiframe のシンプルな従量課金制で、成功した生成分のみお支払いいただきます。プランと数量割引は料金ページをご覧ください。
Flux Fill Pro API はどのように呼び出しますか?
X-API-Key と、model: "flux-fill-pro" を含む JSON ボディを添えて /v2/images/edit に POST リクエストを送ります。レスポンスで返る jobId を GET /v2/jobs/{id} でポーリングするか、Webhook で結果を受け取ります。
Flux Fill Pro はどんなパラメータに対応していますか?
Flux Fill Pro は、共通の prompt・webhook_url に加えて、fluxFillParams の下にネストされた 11 個のモデル固有パラメータを受け付けます。型やデフォルト値を含む一覧は上記の入力スキーマをご覧ください。
9,800+
開発者と企業
公式パートナー