Lompat ke konten

LTX 2.5 Pro Image to Video

Integrasikan

ID model lightricks/ltx-2.5/image-to-video/pro
# 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/lightricks/ltx-2.5/image-to-video/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_m47cpdni6njc4mezryvt9kg2/0-fUu2PV5voQYZjKUW9sc_1_qYL5cs4B.png",
    "prompt": "The camera glides forward and slowly tilts up toward the peaks, icebergs drift gently, clouds move across the sky and the morning light grows brighter.",
    "duration": 6,
    "resolution": "720p",
    "generate_audio": false
  }'

# 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"

Permintaan ini: $0,72 720 kredit API · ≈ ₽77,46 Jalankan di halaman ini

Dapatkan kunci API
Lightricks Gambar ke Video Audio native6–10 dtkhingga 1080p #camera-control#first-last-frame

Menganimasikan gambar awal, dengan opsi menuju gambar akhir, menjadi klip LTX 2.5 Pro berdurasi 6 hingga 10 detik dengan audio.

Contoh

Input
Output · ~39 dtk

PromptThe camera glides forward and slowly tilts up toward the peaks, icebergs drift gently, clouds move across the sky and the morning light grows brighter.

6 s720pgenerate_audio: false$0,72 · 720 kredit API

Buat permintaan

Kontrol dibuat dari skema model. Kode dan harga diperbarui saat Anda mengubahnya.

•wajib 151 / 5000

Prompt yang memandu pembuatan video.

•wajib image_url
Jatuhkan file, atau

URL yang mengarah ke gambar yang mengawali video output.

duration 6 s

Pemilihan durasi video: tentukan durasi dalam detik atau pilih 'auto' agar model yang menentukan. Durasi maksimum adalah 10 detik.

resolution

Resolusi yang digunakan untuk output video.

aspect_ratio bawaan auto

Rasio aspek video, dengan pengaturan yang berasal dari gambar tersedia melalui 'auto'.

camera_motion

Gerakan kamera opsional untuk video output.

Lanjutan end_image · fps
end_image_url
Jatuhkan file, atau

Target transisi opsional, diberikan sebagai URL gambar. Menyertakannya membuat video yang dibuat bertransisi dari bingkai awal ke gambar akhir ini.

fps bawaan 25

Bingkai rate video output, diukur dalam bingkai per detik.

POST /run/lightricks/ltx-2.5/image-to-video/pro?wait=20 estimasi harga → $0,72
# 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/lightricks/ltx-2.5/image-to-video/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_m47cpdni6njc4mezryvt9kg2/0-fUu2PV5voQYZjKUW9sc_1_qYL5cs4B.png",
    "prompt": "The camera glides forward and slowly tilts up toward the peaks, icebergs drift gently, clouds move across the sky and the morning light grows brighter.",
    "duration": 6,
    "resolution": "720p",
    "generate_audio": false
  }'

# 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"

Jalankan permintaan ini

Key Anda tetap berada di browser ini: key hanya dikirim ke Doitong API dan disimpan (localStorage) hanya jika Anda mencentang Ingat. Dapatkan kunci API

Tentang LTX 2.5 Pro Image to Video

Image-to-video LTX 2.5 Pro menganimasikan bingkai pertama, dapat berakhir pada bingkai akhir, menambahkan audio yang dibuat, dan menerima gerakan kamera bernama (dolly, jib, static, atau focus shift). 6, 8, atau 10 detik atau panjang otomatis, 720p atau 1080p, 24, 25, atau 50 fps.

Parameter

Kirim nama kanonis atau nama asli, bukan keduanya. Nama kanonis

NamaTipe BawaanDiizinkan Deskripsi
image_urlwajib image
Tipeurl · image
URL yang mengarah ke gambar yang mengawali video output.
end_image_urlopsional end_image
Tipeurl · image
Target transisi opsional, diberikan sebagai URL gambar. Menyertakannya membuat video yang dibuat bertransisi dari bingkai awal ke gambar akhir ini.
promptwajib
Tipestring
≤ 5.000 karakter
Prompt yang memandu pembuatan video.
durationopsional
Tipeenum
Bawaanauto
6810auto
Pemilihan durasi video: tentukan durasi dalam detik atau pilih 'auto' agar model yang menentukan. Durasi maksimum adalah 10 detik.
resolutionopsional
Tipeenum
Bawaan1080p
720p1080p
Resolusi yang digunakan untuk output video.
aspect_ratioopsional
Tipeenum
Bawaanauto
auto16:99:16
Rasio aspek video, dengan pengaturan yang berasal dari gambar tersedia melalui 'auto'.
fpsopsional
Tipeenum
Bawaan25
242550
Bingkai rate video output, diukur dalam bingkai per detik.
generate_audioopsional
Tipeboolean
Bawaantrue
Toggle pembuatan audio untuk video output.
camera_motionopsional
Tipeenum
dolly_indolly_outdolly_leftdolly_rightjib_upjib_downstaticfocus_shift
Gerakan kamera opsional untuk video output.
wajib Nama kanonis, juga diterima

Parameter file menerima URL publik https://, URI data: hingga 10 MB, atau file_url dari unggahan. File

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lightricks/ltx-2.5/image-to-video/pro",
  "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": 720,
    "usd": "0.72",
    "charged": 720,
    "refunded": 0
  },
  "input": {
    "prompt": "Fireflies swirl around the fox as it slows down and looks back over its shoulder",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "duration": 6,
    "resolution": "720p",
    "camera_motion": "static"
  },
  "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "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"
  }
}
File Anda, pilihan AndaSetiap outputs[].url adalah salinan di penyimpanan kami: disimpan selamanya (dikenai biaya per GB-bulan) atau 7 hari gratis, sesuai setelan akun atau ?storage=.
Struktur sama di setiap modeltype, url, content_type, width, height, dan duration, untuk gambar, video, dan audio. output adalah objek hasil milik model.
Field output
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}File video hasil.

Model lainnya: Gambar ke Video

Untuk agen AI: halaman ini dalam Markdown tersedia di https://doitong.com/id/developers/models/lightricks/ltx-2.5/image-to-video/pro.md. Semua model dan panduan: https://doitong.com/developers/llms.txt