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

Vecglypher · Image to SVG

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

मॉडल id vecglypher/image-to-svg
# 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/vecglypher/image-to-svg?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",
    "images": [
      "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"

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

API कुंजी प्राप्त करें
Open model इमेज एडिटिंग रेफ़रेंस इनपुट

टेक्स्ट शैली के विवरण के बजाय 1 से 8 संदर्भ ग्लिफ़ इमेज की शैली में SVG ग्लिफ़ जनरेट करता है

Open model · इमेज

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

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

अनुरोध बनाएँ

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

•आवश्यक

ऐसा टेक्स्ट जिसके अक्षर वेक्टर ग्लिफ़ बनते हैं और संदर्भ इमेज उनकी पुनरुत्पादित की जाने वाली शैली निर्धारित करती हैं।

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

1 से 8 इमेज URL के रूप में दी गई शैली संदर्भ, जिनमें से हर इमेज में एक ग्लिफ़ अक्षर दिखाया गया है। उनका रूप जनरेट की गई ग्लिफ़ शैली का मार्गदर्शन करता है।

उन्नत fill_color · stroke_color · temperature · top_p · top_k · repetition_penalty · max_tokens · output_size · stroke_width · seed · enable_safety_checker
डिफ़ॉल्ट black

SVG/CSS द्वारा समर्थित किसी भी रंग नोटेशन का उपयोग करके निर्दिष्ट किया गया ग्लिफ़ fill।

ग्लिफ़ आउटलाइन सेटिंग: यह वैकल्पिक रंग देने पर हर जनरेट किए गए ग्लिफ़ पथ के चारों ओर स्ट्रोक जोड़ता है।

डिफ़ॉल्ट 0.1

सैंपलिंग के लिए उपयोग किया जाने वाला तापमान।

डिफ़ॉल्ट 0.95

Nucleus sampling नियंत्रण (top-p)।

डिफ़ॉल्ट 5

टॉप-k सैंपलिंग की सेटिंग।

डिफ़ॉल्ट 1

दोहराव पर लागू किया जाने वाला दंड।

डिफ़ॉल्ट 8192

जनरेट किए जाने वाले टोकन की ऊपरी सीमा।

डिफ़ॉल्ट 512

पिक्सेल में SVG आकार सीमा, जो width और height का अनुपात बनाए रखते हुए बड़े आयाम पर लागू होती है।

डिफ़ॉल्ट 1

आउटलाइन की मोटाई, केवल निर्दिष्ट stroke_color के साथ प्रभावी होती है और SVG इकाइयों में मापी जाती है।

दोहराए जा सकने वाले परिणामों के लिए यादृच्छिकता नियंत्रित करने वाला सीड।

POST /run/vecglypher/image-to-svg?wait=20 कोटेशन → $0.005
# 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/vecglypher/image-to-svg?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",
    "images": [
      "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 कुंजी प्राप्त करें

Vecglypher · Image to SVG के बारे में

`prompt` के टेक्स्ट को `reference_image_urls` में दी गई 1 से 8 संदर्भ ग्लिफ़ इमेज की शैली से मेल खाते वेक्टर ग्लिफ़ के रूप में लिखता है। प्रत्येक इमेज में एक अलग अक्षर होता है। आउटपुट SVG पाथ होते हैं, जिनका आकार `output_size` से 64 से 4096 px तक सेट किया जाता है। `fill_color`, `stroke_color` और `stroke_width` रूप-रंग सेट करते हैं, और `temperature` तथा `max_tokens` जैसे सैंपलिंग नियंत्रण उपलब्ध हैं।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
ऐसा टेक्स्ट जिसके अक्षर वेक्टर ग्लिफ़ बनते हैं और संदर्भ इमेज उनकी पुनरुत्पादित की जाने वाली शैली निर्धारित करती हैं।
reference_image_urlsआवश्यक images
प्रकारurl[] · image
≤ 8 आइटम
1 से 8 इमेज URL के रूप में दी गई शैली संदर्भ, जिनमें से हर इमेज में एक ग्लिफ़ अक्षर दिखाया गया है। उनका रूप जनरेट की गई ग्लिफ़ शैली का मार्गदर्शन करता है।
temperatureवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0.1
0 – 2
सैंपलिंग के लिए उपयोग किया जाने वाला तापमान।
seedवैकल्पिक
प्रकारinteger | null
दोहराए जा सकने वाले परिणामों के लिए यादृच्छिकता नियंत्रित करने वाला सीड।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
इनपुट पर सुरक्षा-जाँच सक्षम करता है।
top_pवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0.95
0 – 1
Nucleus sampling नियंत्रण (top-p)।
top_kवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट5
-1 – 100
टॉप-k सैंपलिंग की सेटिंग।
repetition_penaltyवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0 – 2
दोहराव पर लागू किया जाने वाला दंड।
max_tokensवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट8192
256 – 16,384
जनरेट किए जाने वाले टोकन की ऊपरी सीमा।
output_sizeवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट512
64 – 4,096
पिक्सेल में SVG आकार सीमा, जो width और height का अनुपात बनाए रखते हुए बड़े आयाम पर लागू होती है।
fill_colorवैकल्पिक
प्रकारstring
डिफ़ॉल्टblack
SVG/CSS द्वारा समर्थित किसी भी रंग नोटेशन का उपयोग करके निर्दिष्ट किया गया ग्लिफ़ fill।
stroke_colorवैकल्पिक
प्रकारstring | null
ग्लिफ़ आउटलाइन सेटिंग: यह वैकल्पिक रंग देने पर हर जनरेट किए गए ग्लिफ़ पथ के चारों ओर स्ट्रोक जोड़ता है।
stroke_widthवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0.1 – 50
आउटलाइन की मोटाई, केवल निर्दिष्ट stroke_color के साथ प्रभावी होती है और SVG इकाइयों में मापी जाती है।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

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

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "vecglypher/image-to-svg",
  "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": 5,
    "usd": "0.005",
    "charged": 5,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "svg_content": "string",
    "seed": 42,
    "timings": {}
  },
  "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 मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
image
anyजनरेट किए गए वेक्टर ग्लिफ़ वाली SVG फ़ाइल।
svg_content
stringरॉ SVG मार्कअप वाली स्ट्रिंग।
seed
integerनिर्माण के दौरान लागू किया गया सीड मान।
timings
objectप्रोसेसिंग के चरणों के अनुसार विभाजित निर्माण का समय।

और मॉडल: इमेज एडिटिंग

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