コンテンツへスキップ

Krea 2 Text to Image Turbo LoRA

統合

モデルID krea-2/turbo/lora
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/krea-2/turbo/lora?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

このリクエスト: $0.01 10 APIクレジット このページで実行

APIキーを取得
Krea テキストから画像 高速 #stylized#transform#typography#realism

最大 3 つのカスタム LoRA を適用し、学習済みの被写体やスタイルを反映する Krea 2 Turbo テキストから画像生成

Krea · 画像

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

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

リクエストを作成

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

•必須 88 / 5000

目的の画像を指定するテキストによる基本説明。

image_size デフォルト square_hd

生成画像の寸法。

num_images デフォルト 1

生成する画像の枚数。

詳細設定 acceleration · output_format · seed · enable_prompt_expansion · enable_safety_checker · loras
acceleration デフォルト none

画像生成の高速化設定。

output_format デフォルト png

出力画像のエンコード形式。デフォルトは "png" です。

再現可能な生成のために乱数性を制御するシード。画像 *i* に割り当てられるシードは `seed + i` です。

デフォルト []

適用するLoRAの重み。最大3件です。

POST /run/krea-2/turbo/lora?wait=20 見積もり → $0.01
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/krea-2/turbo/lora?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

このリクエストを実行

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

Krea 2 Text to Image Turbo LoRAについて

`prompt` から画像を生成し、Krea 2 trainer で作成したものなど、`loras` 内の最大 3 つの重みを適用します。6 種類の `image_size` プリセット、1 から 4 枚の画像、`acceleration`、任意のプロンプト拡張、png または jpeg、`seed` にも対応します。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 5,000文字
目的の画像を指定するテキストによる基本説明。
seed任意
型integer | null
再現可能な生成のために乱数性を制御するシード。画像 *i* に割り当てられるシードは `seed + i` です。
image_size任意
型object
デフォルトsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
生成画像の寸法。
num_images任意 num_outputs
型integer
デフォルト1
1 – 4
生成する画像の枚数。
acceleration任意
型enum
デフォルトnone
noneregular
画像生成の高速化設定。
enable_prompt_expansion任意
型boolean
デフォルトfalse
LLMによるプロンプト拡張の切り替え。trueの場合、品質向上を目的としたより詳細な画像プロンプトを使用し、拡張に失敗した場合は元のプロンプトをそのまま使用します。
enable_safety_checker任意
型boolean
デフォルトtrue
出力の安全性チェック切り替え。trueでチェックを有効にし、アカウント認証のないリクエストには設定にかかわらずチェックを適用します。チェックを無効にするには認証が必要です。安全でないと判定された結果は黒い画像に置き換えられます。
output_format任意
型enum
デフォルトpng
jpegpng
出力画像のエンコード形式。デフォルトは "png" です。
loras任意
型object[]
デフォルト[]
≤ 3項目
適用するLoRAの重み。最大3件です。
loras[].path必須
型string
LoRAの重みの場所。URL、owner/repo形式のHuggingFaceリポジトリID、またはローカルパスで指定します。
loras[].scale任意
型number
デフォルト1
0 – 4
LoRAに適用するスケール係数。範囲は0.0~4.0です。
必須 正式名称(こちらも使用可能)

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea-2/turbo/lora",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string",
    "actual_prompt": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, content_type, file_name, file_size, width, height}モデルが生成した画像。
timings
object秒単位で表したリクエストのタイミング測定値。
seed
integer画像または複数画像の生成に適用されたシード。
has_nsfw_concepts
array of boolean生成結果における画像ごとのNSFWコンテンツ指標。
prompt
string出力の生成に使用されたプロンプト。
actual_prompt
string | nullプロンプト拡張が有効な場合に生成へ使用された最終プロンプト。拡張処理の結果を反映します。

その他のモデル: テキストから画像

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