HERMES + FLUX 2

Hermes Agent で Flux 2 を使う。

Black Forest Labs の Flux 2 は2つの品質層を備えています——Pro は1枚あたり5セントで高速生成を、Flex は14セントでより高い忠実度を実現します。どちらもテキスト→画像とマルチソース remix に対応し、解像度は 1k または 2k を選べます。Hermes Agent は custom:runapi プロバイダーで呼び出します——チャット用に設定したのと同じキーとベース URL です。

1つの APIキー · テキスト→画像 + remix エンドポイント · 1k / 2k 解像度
RunAPI を使って Hermes Agent から Flux 2 Pro で画像を生成します。

要件:
- Hermes Agent ですでに設定済みの custom:runapi プロバイダーを使用します
- https://runapi.ai/v1/text_to_image の RunAPI text_to_image エンドポイントを呼び出します
- model を "flux-2-pro-text-to-image" に設定します
- RUNAPI_API_KEY 環境変数が認可を提供します
- 任意で output_resolution を "1k" または "2k" に、aspect_ratio で寸法を制御します
- レスポンスは非同期です——タスクが完了するまでタスクステータスエンドポイントをポーリングし、画像 URL を取得します
curl -X POST https://runapi.ai/v1/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2-pro-text-to-image",
    "prompt": "a ceramic vase with dried flowers on a linen tablecloth, natural window light, 35mm film grain",
    "aspect_ratio": "3:4",
    "output_resolution": "2k"
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "flux-2-pro-text-to-image"
}
curlコマンドをコピーしてテスト flux-2
仕組み

Hermes Agent で Flux 2 を使う3ステップ

1

Configure RunAPI

Set the RUNAPI_API_KEY environment variable. If you already added RunAPI as a custom:runapi provider in Hermes Agent for chat, the same key and base_url work for Flux 2 image generation — no extra configuration needed.

export RUNAPI_API_KEY=runapi_xxx
2

Call Flux 2

Send a POST request to the text_to_image endpoint with model set to flux-2-pro-text-to-image. Include a prompt, and optionally set aspect_ratio (1:1, 4:3, 16:9, etc.) and output_resolution (1k or 2k). For multi-source remixing, use the remix_image endpoint with source_image_urls instead.

text_to_image
3

Get the result

The endpoint returns a task ID. Poll the task status endpoint until the status changes to completed, then retrieve the generated image URL from the response. RunAPI SDKs and the CLI handle polling automatically.

task_id: tsk_abc123
パラメータ

Flux 2 API パラメータ

パラメータ 説明
model string Required. flux-2-pro-text-to-image, flux-2-flex-text-to-image, flux-2-pro-remix-image, or flux-2-flex-remix-image.
prompt string Text description of the image to generate.
aspect_ratio string Optional. Output aspect ratio: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, or 2:3. Remix endpoints also accept auto.
output_resolution string Optional. 1k (default) or 2k. Higher resolution costs more per image.
source_image_urls array Required for remix_image. Array of source image URLs to blend or transform.
callback_url string Optional. Webhook URL for async completion notification.

Hermes AgentのFlux 2とは?

Black Forest LabsのFlux 2は高い素材忠実度のフォトリアルな画像生成を提供します。Hermes AgentはRunAPI custom provider経由でFlux 2を呼び出し、大規模な反復制作を実現します——同じプロンプトから手動ファインチューニングなしにブランド一貫性のある数十のバリアントを生成します。

Flux 2の活用例

大規模なブランド一貫性画像

同じプロンプトからブランド一貫性のある数十の画像バリアントを生成し、Hermes AgentがFlux 2タスクを並行ディスパッチして全結果を収集し、各出力を手動処理する必要がありません。

ライフスタイル・エディトリアル写真の代替

正確なライティング・被写界深度・素材効果でライフスタイル写真とエディトリアル写真コンテンツを生成し、マーケティングキャンペーン向けのストック写真ライセンスを置き換えます。

ゲーム・クリエイティブプロジェクトのコンセプトアート

ゲーム開発・映画・クリエイティブプロジェクト向けにリアルな環境・キャラクターデザイン・プロップのコンセプトアートを生成し、400万画素の出力がさらなる制作に十分な細部を提供します。

FAQ

Flux 2 + Hermes Agent のよくある質問

Hermes Agent の基本設定

まだ設定していませんか?Hermes Agent の RunAPI セットアップガイドから始めましょう。

Hermes Agent セットアップガイド →

Flux 2 モデルカタログ

すべての Flux 2 バリアント、価格、API ドキュメントを確認する。

Flux 2 モデル →

今すぐ Hermes Agent で Flux 2 を試す。

無料の RunAPI キーを取得し、custom:runapi プロバイダーを設定して、Flux 2 Pro または Flex で画像生成を始めましょう。