コンテンツへスキップ

Krea 3 Text to Image

統合

モデルID krea/v3/text-to-image
# 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/v3/text-to-image?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.025 25 APIクレジット このページで実行

APIキーを取得
Krea テキストから画像 #text-to-image#image-generation#prompt-expansion#krea

berryまたはjamバリアント、プロンプト拡張、約4.2メガピクセルまでのサイズに対応するKrea 3テキスト画像生成

Krea · 画像

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

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

リクエストを作成

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

•必須 88 / 5000

目的の出力画像の説明。

image_size デフォルト auto

出力サイズ。`auto`を指定すると、プロンプトエキスパンダーが約2048×2048の比率を選択します。サイズは合計4,220,160ピクセル(1680×2512)の上限内で、16の倍数に切り上げられます。

詳細設定 negative_prompt · model · reasoning_level · output_format · seed · enable_safety_checker
0 / 1024

画像から除外する内容。この入力を使用するのはberryのみです。

model デフォルト berry

モデルバリアントの選択。berryは品質を、jamは速度を優先します。

reasoning_level デフォルト medium

推論の労力。生成速度と、ハーネスがプロンプトの理解に費やす処理量のトレードオフを制御します。労力を増やすと時間がかかります。

output_format デフォルト png

生成される画像の形式。

以前に生成した出力を追加編集するたびに、新しい潜在ノイズシードを選択します。

POST /run/krea/v3/text-to-image?wait=20 見積もり → $0.025
# 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/v3/text-to-image?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 3 Text to Imageについて

最大5000文字の`prompt`から画像を生成します。`model`でberry(品質)またはjam(速度)を選択し、`reasoning_level`はlowまたはmediumです。`image_size`はプリセットまたはautoを指定でき、最大4,220,160ピクセルまで16の倍数に丸められます。`negative_prompt`(berryのみ)、`seed`、pngまたはjpegに対応します。

パラメータ

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 5,000文字
目的の出力画像の説明。
model任意
型enum
デフォルトberry
berryjam
モデルバリアントの選択。berryは品質を、jamは速度を優先します。
image_size任意
型object
デフォルトauto
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
出力サイズ。`auto`を指定すると、プロンプトエキスパンダーが約2048×2048の比率を選択します。サイズは合計4,220,160ピクセル(1680×2512)の上限内で、16の倍数に切り上げられます。
reasoning_level任意
型enum
デフォルトmedium
lowmedium
推論の労力。生成速度と、ハーネスがプロンプトの理解に費やす処理量のトレードオフを制御します。労力を増やすと時間がかかります。
negative_prompt任意
型string
デフォルト
≤ 1,024文字
画像から除外する内容。この入力を使用するのはberryのみです。
seed任意
型integer | null
以前に生成した出力を追加編集するたびに、新しい潜在ノイズシードを選択します。
output_format任意
型enum
デフォルトpng
pngjpeg
生成される画像の形式。
enable_safety_checker任意
型boolean
デフォルトtrue
出力画像の安全でない内容のスクリーニング。無効化にはアカウント認証が必要です。
必須

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v3/text-to-image",
  "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": 25,
    "usd": "0.025",
    "charged": 25,
    "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
      }
    ],
    "seed": 42,
    "prompt": "string",
    "timings": {},
    "has_nsfw_concepts": [
      false
    ]
  },
  "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}生成された画像。
seed
integer生成時に潜在ノイズを供給したシード。
prompt
string出力の生成に使用した拡張済みプロンプト。
timings
objectステージごとの生成時間を秒単位で測定した値。`inference`でのGPUサンプリング総時間を含みます。
has_nsfw_concepts
array of boolean画像ごとの安全性評価。

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

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