跳至內容

LongCat Video · Text to Video · 720p

整合

模型 id longcat-video/text-to-video/720p
# 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/longcat-video/text-to-video/720p?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

取得 API 金鑰
Meituan · 影片

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

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

建立請求

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

•必填

引導影片生成的提示詞。

aspect_ratio 預設 16:9

輸出影片的長寬比。

預設 162

生成輸出的影格數。

進階 negative_prompt · video_output_type · video_quality · video_write_mode · acceleration · num_inference_steps · num_refine_inference_steps · guidance_scale · fps · seed · enable_prompt_expansion · enable_safety_checker
預設 Bright tones, overexp...

生成影片時使用的負面提示詞。

video_output_type 預設 X264 (.mp4)

結果影片的輸出類型。

video_quality 預設 high

結果影片的品質等級。

video_write_mode 預設 balanced

結果影片的寫入模式。

acceleration 預設 regular

影片生成期間套用的加速等級。

預設 40

影片生成期間執行的推論步驟數。

預設 40

精修期間執行的推論步驟數。

預設 4

生成影片時套用的引導比例。

預設 30

輸出影片的影格率。

初始化亂數生成的種子值。

POST /run/longcat-video/text-to-video/720p?wait=20 報價 → $0.216
# 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/longcat-video/text-to-video/720p?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

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

關於 LongCat Video · Text to Video · 720p

根據提示詞建立影片,並加入由 `num_refine_inference_steps`(8 至 50)設定的細化階段。`aspect_ratio` 可為 16:9、9:16 或 1:1,`num_frames` 為 17 至 961(預設 162),預設影格率為 30 fps。也接受負面提示詞和 1 至 10 的 `guidance_scale`。輸出可為 mp4、webm、ProRes mov 或 GIF。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
引導影片生成的提示詞。
negative_prompt選填
類型string
預設值Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards
生成影片時使用的負面提示詞。
num_frames選填
類型integer
預設值162
17 – 961
生成輸出的影格數。
num_inference_steps選填
類型integer
預設值40
8 – 50
影片生成期間執行的推論步驟數。
num_refine_inference_steps選填
類型integer
預設值40
8 – 50
精修期間執行的推論步驟數。
guidance_scale選填
類型number
預設值4
1 – 10
生成影片時套用的引導比例。
aspect_ratio選填
類型enum
預設值16:9
16:99:161:1
輸出影片的長寬比。
fps選填
類型integer
預設值30
1 – 60
輸出影片的影格率。
seed選填
類型integer | null
初始化亂數生成的種子值。
enable_prompt_expansion選填
類型boolean
預設值false
控制是否啟用提示詞擴展。
enable_safety_checker選填
類型boolean
預設值true
受帳戶權限限制的安全檢查切換鈕:未授權請求仍必須檢查,停用檢查需要授權。
video_output_type選填
類型enum
預設值X264 (.mp4)
X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif)
結果影片的輸出類型。
video_quality選填
類型enum
預設值high
lowmediumhighmaximum
結果影片的品質等級。
video_write_mode選填
類型enum
預設值balanced
fastbalancedsmall
結果影片的寫入模式。
acceleration選填
類型enum
預設值regular
noneregular
影片生成期間套用的加速等級。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "longcat-video/text-to-video/720p",
  "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": 216,
    "usd": "0.216",
    "charged": 216,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "prompt": "realistic filming style, a person wearing a dark helmet, a deep-colored jacket, blue jeans, and bright yellow shoes rides a skateboard along a winding mountain road. The skateboarder starts in a standing position, then gradually lowers into a crouch, extending one hand to touch the road surface while maintaining a low center of gravity to navigate a sharp curve. After completing the turn, the skateboarder rises back to a standing position and continues gliding forward. The background features lush green hills flanking both sides of the road, with distant snow-capped mountain peaks rising against a clear, bright blue sky. The camera follows closely from behind, smoothly tracking the skateboarder’s movements and capturing the dynamic scenery along the route. The scene is shot in natural daylight, highlighting the vivid outdoor environment and the skateboarder’s fluid actions.",
    "seed": 42,
    "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
    }
  },
  "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 是模型自己的結果物件。
輸出欄位
prompt
string用於生成輸出的提示詞。
seed
integer生成期間套用的種子值。
video
object {url, content_type, file_name, file_size}生成產生的影片檔案。

更多模型:文字轉影片

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/longcat-video/text-to-video/720p.md. 所有模型與指南: https://doitong.com/developers/llms.txt