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

Qwen Image 2512 Trainer

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

मॉडल id qwen-image-2512-trainer
# 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/qwen-image-2512-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

उदाहरण जैसी फ़ाइलें: $1.50 1,500 API क्रेडिट चलाने से पहले आपकी फ़ाइलों को मापा जाता है इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Alibaba ट्रेनिंग #lora#personalization

कैप्शन वाली इमेज के zip से Qwen Image 2512 के लिए LoRA प्रशिक्षित करता है

Alibaba · फ़ाइल

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

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

अनुरोध बनाएँ

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

•आवश्यक

टेक्स्ट-टू-इमेज मॉडल को प्रशिक्षित करने के लिए उपयोग किए जाने वाले ZIP आर्काइव का URL। कैप्शन फ़ाइल के बिना इमेज default_caption का उपयोग करती है; दोनों में से कोई भी न होने पर प्रशिक्षण विफल हो जाता है। ऐसी कैप्शन/प्रॉम्प्ट वाली मिलान करती टेक्स्ट फ़ाइलों के साथ इमेज पैकेज करें जो लक्ष्य इमेज का वर्णन करती हों: image.EXT को image.txt के साथ जोड़ें, जैसे photo.jpg को photo.txt के साथ।

डिफ़ॉल्ट 1000

कुल training step count।

उन्नत default_caption · learning_rate

लापता caption फ़ाइलों के स्थान पर उपयोग किया जाने वाला caption; इसके बजाय None देने पर उनकी अनुपस्थिति त्रुटि मानी जाती है।

डिफ़ॉल्ट 0.0005

लर्निंग के दौरान LoRA पैरामीटर अपडेट करने के लिए उपयोग की जाने वाली दर।

POST /run/qwen-image-2512-trainer?wait=20 कोटेशन → $1.50
# 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/qwen-image-2512-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Qwen Image 2512 Trainer के बारे में

आपके अपने डेटा पर LoRA को फ़ाइन-ट्यून करता है। `image_data_url` उस zip की ओर संकेत करता है जिसमें इमेज और उनसे मेल खाते टेक्स्ट कैप्शन होते हैं (photo.jpg के साथ photo.txt)। `steps` की सीमा 1 से 30000 (डिफ़ॉल्ट 1000) है, `learning_rate` समायोजित किया जा सकता है, और `default_caption` अनुपलब्ध कैप्शन भरता है। diffusers LoRA वेट और एक कॉन्फ़िगरेशन फ़ाइल लौटाता है।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
image_data_urlआवश्यक
प्रकारstring
टेक्स्ट-टू-इमेज मॉडल को प्रशिक्षित करने के लिए उपयोग किए जाने वाले ZIP आर्काइव का URL। कैप्शन फ़ाइल के बिना इमेज default_caption का उपयोग करती है; दोनों में से कोई भी न होने पर प्रशिक्षण विफल हो जाता है। ऐसी कैप्शन/प्रॉम्प्ट वाली मिलान करती टेक्स्ट फ़ाइलों के साथ इमेज पैकेज करें जो लक्ष्य इमेज का वर्णन करती हों: image.EXT को image.txt के साथ जोड़ें, जैसे photo.jpg को photo.txt के साथ।
learning_rateवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0.0005
लर्निंग के दौरान LoRA पैरामीटर अपडेट करने के लिए उपयोग की जाने वाली दर।
stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट1000
1 – 30,000
कुल training step count।
default_captionवैकल्पिक
प्रकारstring | null
लापता caption फ़ाइलों के स्थान पर उपयोग किया जाने वाला caption; इसके बजाय None देने पर उनकी अनुपस्थिति त्रुटि मानी जाती है।
आवश्यक

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "qwen-image-2512-trainer",
  "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": 1500,
    "usd": "1.50",
    "charged": 1500,
    "refunded": 0
  },
  "input": {
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "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
    },
    "config_file": {
      "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
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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 हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
diffusers_lora_file
object {url, content_type, file_name, file_size}diffusers format में trained LoRA weights की ओर संकेत करने वाला URL।
config_file
object {url, content_type, file_name, file_size}प्रशिक्षित मॉडल की कॉन्फ़िगरेशन फ़ाइल का URL।

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