Flux 1.1 Pro icon

Flux 1.1 Pro API

高精細でシャープなディテールのフォトリアルな生成。

Flux 1.1 Pro を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。

model: "flux-1.1-pro"
Flux 1.1 Pro candid 35mm film portrait of a weathered elderly fisherman at dawn in soft natural light

Flux 1.1 Pro の特長

  • 1:1, 3:4, 4:3 を含む 5 種類のアスペクト比に対応。
  • 画像から画像への編集と参照画像に対応。
  • 高速処理 — 1回の生成あたり平均約10秒。
  • Black Forest Labs のアカウント不要の従量課金。成功した生成分だけお支払いいただきます。
  • Apiframe のすべてのモデルで、1つのAPIキー・統一請求・冪等性・Webhookに対応。

Flux 1.1 Pro で作成

Apiframeの Flux 1.1 Pro API で生成した出力例です。

Flux 1.1 Pro candid 35mm film portrait of an elderly fisherman at dawn with weathered skin in soft natural light

A candid portrait of an elderly fisherman at dawn, weathered skin, soft natural light, shot on 35mm film.

Flux 1.1 Pro minimalist coffee bag label reading 'NORTH ROAST' with 'Single Origin Ethiopia' beneath it

A minimalist coffee bag label reading 'NORTH ROAST' with 'Single Origin Ethiopia' beneath it.

Flux 1.1 Pro ultra-detailed 4MP macro shot of a dew-covered spiderweb glistening at sunrise

An ultra-detailed macro shot of a dew-covered spiderweb at sunrise, 4MP.

Flux 1.1 Pro studio product photo of a glass perfume bottle on polished black stone with soft reflections on a clean white background

A glass perfume bottle on polished black stone, studio lighting, soft reflections, clean white background.

Flux 1.1 Pro photo of a busy Tokyo street at night with neon signs, a red umbrella in the foreground, and rain reflecting the lights

A busy Tokyo street at night with neon signs, a red umbrella in the foreground, rain reflecting the lights.

Flux 1.1 Pro landscape of a misty Norwegian fjord at golden hour with dramatic cliffs and a small wooden boat near the shore

A misty Norwegian fjord at golden hour, dramatic cliffs, a small wooden boat near the shore.

概要

エンドポイント
POST /v2/images/generate
モデルID
flux-1.1-pro
パラメータキー
fluxParams
モダリティ
画像
プロバイダー
Black Forest Labs
平均完了時間
~10s

機能

アスペクト比1:1, 3:4, 4:3, 9:16, 16:9
画像入力対応
平均時間~10秒

クイックスタート

APIキーを添えて POST /v2/images/generate に1回リクエストを送るだけで Flux 1.1 Pro による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。

curl -X POST https://api.apiframe.ai/v2/images/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "flux-1.1-pro",
        "fluxParams": {
            "image_prompt": "https://example.com/input.jpg",
            "image_prompt_strength": 0.5,
            "output_format": "jpg",
            "output_quality": 90
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "flux-1.1-pro",
        "fluxParams": {
            "image_prompt": "https://example.com/input.jpg",
            "image_prompt_strength": 0.5,
            "output_format": "jpg",
            "output_quality": 90
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
  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-1.1-pro",
    "fluxParams": {
      "image_prompt": "https://example.com/input.jpg",
      "image_prompt_strength": 0.5,
      "output_format": "jpg",
      "output_quality": 90
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

レスポンスとジョブのライフサイクル

生成は非同期で行われます。送信が成功すると 202 AcceptedjobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。

1. 送信レスポンス (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. 結果をポーリング

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

入力スキーマ

Flux 1.1 Pro エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。

パラメータ 必須 デフォルト 許可値 / 範囲 説明
prompt string 必須 生成する内容のテキスト説明。
model string 必須 "flux-1.1-pro" "flux-1.1-pro" このエンドポイントのモデル識別子。
fluxParams.image_prompt string (URL) 任意 Reference image (URL)
fluxParams.image_prompt_strength number 任意 0.5 min 0, max 1, step 0.05 How closely to follow the reference image (0–1).
fluxParams.output_format string 任意 "jpg" "jpg", "png", "webp" Output format
fluxParams.output_quality number 任意 90 min 0, max 100, step 1 Output quality
fluxParams.raw boolean 任意 false Disable Flux’s built-in prompt enhancement for a more literal result.
fluxParams.seed number 任意 step 1 Reuse a number to reproduce the same result.

よくある質問

Flux 1.1 Pro APIに関するよくある質問をまとめました。

Flux 1.1 Pro の API はありますか?

はい。Apiframe は単一の REST エンドポイント(`POST /v2/images/generate`、`model: "flux-1.1-pro"`)で Flux 1.1 Pro を提供します。対応するすべてのモデルで、統一されたAPI・キー・請求をご利用いただけ、Black Forest Labs の個別アカウントは不要です。

Flux 1.1 Pro API の料金はいくらですか?

Flux 1.1 Pro は Apiframe のシンプルな従量課金制で、成功した生成分のみお支払いいただきます。プランと数量割引は料金ページをご覧ください。

Flux 1.1 Pro API はどのように呼び出しますか?

`X-API-Key` と、`model: "flux-1.1-pro"` を含む JSON ボディを添えて `/v2/images/generate` に POST リクエストを送ります。レスポンスで返る `jobId` を `GET /v2/jobs/{id}` でポーリングするか、Webhook で結果を受け取ります。

Flux 1.1 Pro はどんなパラメータに対応していますか?

Flux 1.1 Pro は、共通の `prompt`・`webhook_url` に加えて、`fluxParams` の下にネストされた 6 個のモデル固有パラメータを受け付けます。型やデフォルト値を含む一覧は上記の入力スキーマをご覧ください。

解決しませんでしたか?

Flux 1.1 Pro API で開発を始めよう

APIキーを取得すれば数分で Flux 1.1 Pro を統合できます — 従量課金。

無料クレジットですぐに開始
すべてのモデルを1つのAPIで
Webhook・SDK・冪等性に対応
プロバイダーのアカウント不要

ご質問はありますか? Discordに参加 または 営業に問い合わせる