コンテンツへスキップ

Train Flux LoRA

統合

モデルID flux-lora-fast-training
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-lora-fast-training?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

例と同様のファイル: $2.00 2,000 APIクレジット 実行前にファイルを計測します このページで実行

APIキーを取得
Black Forest Labs トレーニング 高速 #lora#personalization

画像のzipから人物、被写体、スタイルを学習するFlux LoRAトレーニング

Black Forest Labs · ファイル

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須

ZIPアーカイブのURLで画像を指定します。各画像には、同名のキャプションテキストファイルを任意で組み合わせられます。少なくとも4枚を目安とし、画像セットは大きいほど一般に良い結果になります。

LoRAの学習ステップ数。

詳細設定 trigger_word · data_archive_format · create_masks · is_style · is_input_format_already_preprocessed

キャプションがない場合に代替として使用するトリガーワードを指定します。既存のキャプションがある場合、trigger_wordは使用されません。トリガーワードを使用しない場合はNoneに設定します。

アーカイブ形式。省略するとURLから推測します。

POST /run/flux-lora-fast-training?wait=20 見積もり → $2.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-lora-fast-training?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Train Flux LoRAについて

画像のzipアーカイブ(`images_data_url`)からLoRAをファインチューニングします。対応するキャプションテキストファイルを含めることもできます。概念名には`trigger_word`を使用し、スタイル学習には`is_style`を指定します。これによりセグメンテーションとキャプション付けが無効になります。`create_masks`で被写体に対する損失の重みを高め、`steps`は1~10000を指定できます。diffusers LoRAの重みと設定ファイルを返します。

パラメータ

名前型 デフォルト許可される値 説明
images_data_url必須
型string
ZIPアーカイブのURLで画像を指定します。各画像には、同名のキャプションテキストファイルを任意で組み合わせられます。少なくとも4枚を目安とし、画像セットは大きいほど一般に良い結果になります。
trigger_word任意
型string | null
キャプションがない場合に代替として使用するトリガーワードを指定します。既存のキャプションがある場合、trigger_wordは使用されません。トリガーワードを使用しない場合はNoneに設定します。
create_masks任意
型boolean
デフォルトtrue
Trueにすると、マスクに基づく学習損失の重み付けを有効にします。人物画像では、可能な限り顔マスクを使用します。
steps任意
型integer | null
1 – 10,000
LoRAの学習ステップ数。
is_style任意
型boolean
デフォルトfalse
Trueにするとスタイル学習を有効にし、トリガーワードでスタイルを指定します。このモードではトリガーワードがキャプションの代わりになり、セグメンテーションは無効になります。
is_input_format_already_preprocessed任意
型boolean
デフォルトfalse
指定データの前処理状態。Trueは前処理済みデータセットであることを示します。デフォルトのFalseでは、'photo.jpg'と'photo.txt'のようにベース名が一致する未加工の画像/キャプションペアが必要です。
data_archive_format任意
型string | null
アーカイブ形式。省略するとURLから推測します。
必須

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-lora-fast-training",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 2000,
    "usd": "2.00",
    "charged": 2000,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "config_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "debug_preprocessed_output": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
diffusers_lora_file
object {url, content_type, file_name, file_size}diffusers形式のトレーニング済みLoRA重みを指すURL。
config_file
object {url, content_type, file_name, file_size}学習設定ファイルのURL。
debug_preprocessed_output
object {url, content_type, file_name, file_size} | null前処理後の画像の場所を示すURL。

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/flux-lora-fast-training.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt