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

PhotoMaker

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

मॉडल id photomaker
# 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/photomaker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_archive_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध: ≈$0.022 22 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Tencent इमेज एडिटिंग #editing#customization#realism#personalization

संदर्भ फ़ोटो के आर्काइव से वैयक्तिकृत पोर्ट्रेट जनरेशन, स्टाइल प्रीसेट और वैकल्पिक img2img के साथ

Tencent · इमेज

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

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

अनुरोध बनाएँ

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

•आवश्यक

जिस इमेज को आप बनाना चाहते हैं उसका अधिकतम विवरण के साथ वर्णन करें, ताकि सर्वोत्तम परिणाम मिल सकें।

•आवश्यक

आर्काइव में उपयोग की जाने वाली इमेज, उसके URL द्वारा निर्दिष्ट करें।

num_images डिफ़ॉल्ट 1

एक अनुरोध से बनने वाली इमेज की संख्या सेट करें; बड़े बैच के लिए अधिक निर्माण समय मिलता है।

उन्नत negative_prompt · initial_image_url · base_pipeline · style · initial_image_strength · num_inference_steps · style_strength · guidance_scale · seed · enable_safety_checker
डिफ़ॉल्ट

अनचाही इमेज विवरण निर्दिष्ट करने वाला नेगेटिव प्रॉम्प्ट। इसमें रंग, ऑब्जेक्ट, दृश्य या सूक्ष्म विशेषताएँ और गुण, जैसे मूँछ, धुंधलापन या कम रिज़ॉल्यूशन, बहिष्कृत किए जा सकते हैं।

फ़ाइल ड्रॉप करें, या

img2img प्रोसेसिंग के लिए वैकल्पिक शुरुआती इमेज।

base_pipeline डिफ़ॉल्ट photomaker

इमेज निर्माण के लिए उपयोग की जाने वाली बेस पाइपलाइन।

डिफ़ॉल्ट Photographic
डिफ़ॉल्ट 0.5

लेटेंट-इमेज नॉइज़ स्तर, O पर कोई अतिरिक्त नॉइज़ न होने से लेकर 1 पर अधिकतम तक।

डिफ़ॉल्ट 50

नियंत्रित करें कि Stable Diffusion कितने निर्माण चरण पूरे करता है; अतिरिक्त चरण अधिक विस्तृत अंतिम इमेज दे सकते हैं।

डिफ़ॉल्ट 20
डिफ़ॉल्ट 5

इमेज चयन के लिए प्रॉम्प्ट-अनुरूपता की शक्ति, CFG (Classifier Free Guidance) के रूप में व्यक्त।

Stable Diffusion में इमेज पुनरुत्पादन के लिए seed। मॉडल संस्करण, प्रॉम्प्ट और seed अपरिवर्तित रखकर हर रन में इमेज को बिल्कुल पुनरुत्पादित किया जा सकता है।

POST /run/photomaker?wait=20 कोटेशन → $0.022
# 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/photomaker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_archive_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

PhotoMaker के बारे में

किसी व्यक्ति की फ़ोटो के zip-शैली संग्रह (`image_archive_url`) और आवश्यक टेक्स्ट `prompt` से उसकी नई इमेज बनाता है। `photomaker` या `photomaker-style` बेस पाइपलाइन चुनें और Cinematic, Comic book या Line art जैसी 11 शैलियों में से चुनें। प्रति अनुरोध 1 से 4 इमेज, 20 से 100 इन्फ़रेंस चरण, 1 से 10 तक मार्गदर्शन और 0 से 1 के बीच `initial_image_strength` वाली वैकल्पिक प्रारंभिक इमेज का समर्थन करता है।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
image_archive_urlआवश्यक
प्रकारstring
आर्काइव में उपयोग की जाने वाली इमेज, उसके URL द्वारा निर्दिष्ट करें।
promptआवश्यक
प्रकारstring
जिस इमेज को आप बनाना चाहते हैं उसका अधिकतम विवरण के साथ वर्णन करें, ताकि सर्वोत्तम परिणाम मिल सकें।
base_pipelineवैकल्पिक
प्रकारenum
डिफ़ॉल्टphotomaker
photomakerphotomaker-style
इमेज निर्माण के लिए उपयोग की जाने वाली बेस पाइपलाइन।
initial_image_urlवैकल्पिक
प्रकारurl · image
img2img प्रोसेसिंग के लिए वैकल्पिक शुरुआती इमेज।
initial_image_strengthवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0.5
0 – 1
लेटेंट-इमेज नॉइज़ स्तर, O पर कोई अतिरिक्त नॉइज़ न होने से लेकर 1 पर अधिकतम तक।
styleवैकल्पिक
प्रकारenum
डिफ़ॉल्टPhotographic
(No style)CinematicDisney CharacterDigital ArtPhotographicFantasy artNeonpunkEnhanceComic bookLowpolyLine art
negative_promptवैकल्पिक
प्रकारstring
डिफ़ॉल्ट
अनचाही इमेज विवरण निर्दिष्ट करने वाला नेगेटिव प्रॉम्प्ट। इसमें रंग, ऑब्जेक्ट, दृश्य या सूक्ष्म विशेषताएँ और गुण, जैसे मूँछ, धुंधलापन या कम रिज़ॉल्यूशन, बहिष्कृत किए जा सकते हैं।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट50
20 – 100
नियंत्रित करें कि Stable Diffusion कितने निर्माण चरण पूरे करता है; अतिरिक्त चरण अधिक विस्तृत अंतिम इमेज दे सकते हैं।
style_strengthवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट20
15 – 50
num_imagesवैकल्पिक num_outputs
प्रकारinteger
डिफ़ॉल्ट1
1 – 4
एक अनुरोध से बनने वाली इमेज की संख्या सेट करें; बड़े बैच के लिए अधिक निर्माण समय मिलता है।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट5
1 – 10
इमेज चयन के लिए प्रॉम्प्ट-अनुरूपता की शक्ति, CFG (Classifier Free Guidance) के रूप में व्यक्त।
seedवैकल्पिक
प्रकारinteger | null
Stable Diffusion में इमेज पुनरुत्पादन के लिए seed। मॉडल संस्करण, प्रॉम्प्ट और seed अपरिवर्तित रखकर हर रन में इमेज को बिल्कुल पुनरुत्पादित किया जा सकता है।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
यदि कॉलर अधिकृत है, तो false सेट करके स्क्रीनिंग में ढील दी जा सकती है।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "photomaker",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "refunded": 0
  },
  "input": {
    "image_archive_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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 मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
images
array of object {url, content_type, file_name, file_size, width, height}
seed
integer

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