सामग्री पर जाएँ

LTX 2.3 Quality · Inpaint

इंटीग्रेट करें

मॉडल id ltx-2.3-quality/inpaint
# 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/inpaint?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "mask_video_url": "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 वीडियो से वीडियो नेटिव ऑडियो

प्रॉम्प्ट से वीडियो के मास्क किए गए क्षेत्रों को फिर से जनरेट करता है और बाकी फ़ुटेज बनाए रखता है

Lightricks · वीडियो

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

मास्क के भीतर बनाए जाने वाले कंटेंट को निर्दिष्ट करने वाला टेक्स्ट।

•आवश्यक video_url
फ़ाइल ड्रॉप करें, या

इनपेंटिंग के लिए स्रोत वीडियो।

•आवश्यक
फ़ाइल ड्रॉप करें, या

वीडियो मास्क, जिसमें काले क्षेत्र स्रोत सामग्री को बनाए रखते हैं और सफ़ेद क्षेत्र पुनर्निर्माण के लिए सामग्री चिह्नित करते हैं।

डिफ़ॉल्ट 121

निर्मित आउटपुट में फ़्रेम की संख्या।

उन्नत negative_prompt · video_quality · video_write_mode · video_strength · frames_per_second · num_inference_steps · guidance_scale · seed · enable_prompt_expansion · enable_safety_checker
डिफ़ॉल्ट color distortion, ove...

नकारात्मक प्रॉम्प्ट, जो बताता है कि निर्माण में किन चीज़ों से बचना चाहिए।

video_quality डिफ़ॉल्ट high

आउटपुट वीडियो पर लागू किया गया गुणवत्ता प्रीसेट।

video_write_mode डिफ़ॉल्ट balanced

परिणामी वीडियो का लेखन मोड।

डिफ़ॉल्ट 1

संरक्षित सामग्री में स्रोत-वीडियो की संरचना कितनी रखी जाए, यह सेट करें। IC-LoRA वीडियो गाइड की ताकत बढ़ाने पर संरचना अधिक सुरक्षित रहती है।

डिफ़ॉल्ट 24

आउटपुट वीडियो फ़्रेम दर, फ़्रेम प्रति सेकंड में मापी जाती है।

डिफ़ॉल्ट 15

चलाए जाने वाले इन्फ़रेंस चरणों की संख्या सेट करें, अधिकतम 30 तक; इसे अपरिवर्तित छोड़ने पर 15 का उपयोग होता है।

डिफ़ॉल्ट 1

इस स्केल का उपयोग करके classifier-free guidance समायोजित करें; इसका डिफ़ॉल्ट ट्यूनिंग उच्च गुणवत्ता और तेज़ निर्माण, दोनों के लिए है।

निर्माण को पुनरुत्पाद्य बनाने वाली सीड। इसे None पर सेट करने से सीड यादृच्छिक रूप से चुनी जाती है।

POST /run/ltx-2.3-quality/inpaint?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/inpaint?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "mask_video_url": "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"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

LTX 2.3 Quality · Inpaint के बारे में

वीडियो के किसी हिस्से को संपादित करता है। `video_url`, `mask_video_url` दें, जिसमें सफ़ेद क्षेत्र फिर से जनरेट किए जाते हैं और काले क्षेत्र बनाए रखे जाते हैं, तथा नई सामग्री का वर्णन करने वाला `prompt` दें। `video_strength` (0 से 1) नियंत्रित करता है कि स्रोत संरचना कितनी दृढ़ता से संरक्षित की जाए। `num_frames` 1 से 60 fps पर 9 से 481 तक होता है।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
मास्क के भीतर बनाए जाने वाले कंटेंट को निर्दिष्ट करने वाला टेक्स्ट।
video_urlआवश्यक video
प्रकारurl · video
इनपेंटिंग के लिए स्रोत वीडियो।
mask_video_urlआवश्यक
प्रकारurl · video
वीडियो मास्क, जिसमें काले क्षेत्र स्रोत सामग्री को बनाए रखते हैं और सफ़ेद क्षेत्र पुनर्निर्माण के लिए सामग्री चिह्नित करते हैं।
video_strengthवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0 – 1
संरक्षित सामग्री में स्रोत-वीडियो की संरचना कितनी रखी जाए, यह सेट करें। IC-LoRA वीडियो गाइड की ताकत बढ़ाने पर संरचना अधिक सुरक्षित रहती है।
num_framesवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट121
9 – 481
निर्मित आउटपुट में फ़्रेम की संख्या।
frames_per_secondवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट24
1 – 60
आउटपुट वीडियो फ़्रेम दर, फ़्रेम प्रति सेकंड में मापी जाती है।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट15
8 – 30
चलाए जाने वाले इन्फ़रेंस चरणों की संख्या सेट करें, अधिकतम 30 तक; इसे अपरिवर्तित छोड़ने पर 15 का उपयोग होता है।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
1 – 20
इस स्केल का उपयोग करके classifier-free guidance समायोजित करें; इसका डिफ़ॉल्ट ट्यूनिंग उच्च गुणवत्ता और तेज़ निर्माण, दोनों के लिए है।
generate_audioवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
लौटाए गए MP4 के लिए ऑडियो-ट्रैक टॉगल: बंद होने पर केवल वीडियो वाली फ़ाइल बनती है और चालू होने पर ऑडियो शामिल होता है।
negative_promptवैकल्पिक
प्रकारstring
डिफ़ॉल्टcolor distortion, overexposure, static, blurry details, subtitles, style, artwork, painting, frame, still, dim overall tone, worst quality, low quality, JPEG compression artifacts, ugly, mutilated, extra fingers, poorly drawn hands, poorly drawn face, deformed, disfigured, malformed limbs, fused fingers, motionless frame, cluttered background, three legs, crowded background, walking backwards
नकारात्मक प्रॉम्प्ट, जो बताता है कि निर्माण में किन चीज़ों से बचना चाहिए।
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/inpaint",
  "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",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "mask_video_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निर्माण के दौरान लागू किया गया वास्तविक seed।
prompt
stringनिर्माण प्रॉम्प्ट, जिसमें उपयोग से पहले किया गया कोई भी विस्तार शामिल है।

और मॉडल: वीडियो से वीडियो

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/ltx-2.3-quality/inpaint.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt