跳至內容

Ltx 2.3 Quality · Ingredient

整合

模型 id ltx-2.3-quality/ingredient
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ltx-2.3-quality/ingredient?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

像範例一樣的檔案: $0.27 270 API 點數 · ≈ ₽29.05 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Lightricks · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填

引導影片生成的文字。為獲得最佳結果,請整理為 'Reference sheet: ... Generated video: ...'。

•必填 image_url
拖放檔案,或

Ingredient 參考表圖像 URL,用於識別要保留的內容:角色、道具和場景位置應以清晰面板呈現在表中。

resolution 預設 {"height":896,"width"...

最終影片尺寸,遵循官方 2x 精修階段。預設會保留 Ingredient LoRA 在工作流程初始階段使用的 768x448 訓練尺寸。

預設 121

生成輸出的影格數。

進階 negative_prompt · video_quality · video_write_mode · frames_per_second · guidance_scale · ingredient_strength · reference_strength · seed · enable_prompt_expansion · enable_safety_checker
預設 worst quality, incons...

指定生成應避免內容的負面提示詞。

video_quality 預設 high

套用至輸出影片的品質預設。

video_write_mode 預設 balanced

結果影片的寫入模式。

預設 24

輸出影片影格率,以每秒影格數表示。

預設 1

無分類器引導的強度。

預設 1

提高此強度設定時,所提供 Ingredient IC-LoRA 的參考表身分與道具會更加突出。

預設 1

參考表引導強度:降低可給模型更多自由,使用 1.0 則完整套用參考表。

使生成結果可重現的種子。設為 None 會隨機選擇種子。

POST /run/ltx-2.3-quality/ingredient?wait=20 報價 → $0.27
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ltx-2.3-quality/ingredient?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Ltx 2.3 Quality · Ingredient

根據文字 `prompt` 和 `image_url` 建立影片,後者指向包含角色、道具和場景乾淨分格的參考表,以維持一致性。`ingredient_strength` 和 `reference_strength`(0 到 2)控制參考表對結果的影響程度。`num_frames` 範圍為 9 到 481,`frames_per_second` 範圍為 1 到 60,也可透過 `generate_audio` 關閉音訊。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
prompt必填
類型string
引導影片生成的文字。為獲得最佳結果,請整理為 'Reference sheet: ... Generated video: ...'。
image_url必填 image
類型url · image
Ingredient 參考表圖像 URL,用於識別要保留的內容:角色、道具和場景位置應以清晰面板呈現在表中。
num_frames選填
類型integer
預設值121
9 – 481
生成輸出的影格數。
resolution選填
類型object
預設值{"height":896,"width":1536}
autosquare_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
最終影片尺寸,遵循官方 2x 精修階段。預設會保留 Ingredient LoRA 在工作流程初始階段使用的 768x448 訓練尺寸。
frames_per_second選填
類型number
預設值24
1 – 60
輸出影片影格率,以每秒影格數表示。
guidance_scale選填
類型number
預設值1
1 – 20
無分類器引導的強度。
ingredient_strength選填
類型number
預設值1
0 – 2
提高此強度設定時,所提供 Ingredient IC-LoRA 的參考表身分與道具會更加突出。
reference_strength選填
類型number
預設值1
0 – 2
參考表引導強度:降低可給模型更多自由,使用 1.0 則完整套用參考表。
generate_audio選填
類型boolean
預設值true
返回 MP4 的音訊軌切換:關閉會產生僅含影片的檔案,開啟則包含音訊。
negative_prompt選填
類型string
預設值worst quality, inconsistent motion, blurry, jittery, distorted
指定生成應避免內容的負面提示詞。
seed選填
類型integer | null
使生成結果可重現的種子。設為 None 會隨機選擇種子。
enable_prompt_expansion選填
類型boolean
預設值true
控制是否啟用提示詞擴展。
enable_safety_checker選填
類型boolean
預設值true
控制是否啟用安全性檢查。
video_quality選填
類型enum
預設值high
lowmediumhighmaximum
套用至輸出影片的品質預設。
video_write_mode選填
類型enum
預設值balanced
fastbalancedsmall
結果影片的寫入模式。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ltx-2.3-quality/ingredient",
  "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": 270,
    "usd": "0.27",
    "charged": 270,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42,
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
video
object {url, content_type, file_name, file_size}模型產生的影片。
seed
integer生成期間實際套用的種子。
prompt
string生成提示詞,包括使用前套用的任何擴寫內容。

更多模型:圖像轉影片

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/ltx-2.3-quality/ingredient.md. 所有模型與指南: https://doitong.com/developers/llms.txt