အကြောင်းအရာသို့ ကျော်ရန်

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"

ဤတောင်းဆိုချက်: ၀.၀၀၅ $ ၅ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Open model ပုံတည်းဖြတ်ခြင်း ရည်ညွှန်း ထည့်သွင်းချက်များ

စာသားစတိုင်ဖော်ပြချက်အစား ရည်ညွှန်းချက် အက္ခရာပုံ 1 ပုံမှ 8 ပုံ၏ စတိုင်ဖြင့် SVG အက္ခရာပုံများကို ဖန်တီးသည်

Open model · ပုံ

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

ရည်ညွှန်းပုံများကို အသုံးပြု၍ ပြန်လည်ဖန်တီးမည့် စတိုင်အတိုင်း အက္ခရာများကို vector glyph များအဖြစ် ပြောင်းလဲမည့် စာသား။

•လိုအပ်သည် reference_image_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ် · 8 အထိ

ပုံတစ်ပုံစီတွင် glyph အက္ခရာတစ်လုံးစီ ပြသထားသော ပုံ URL 1 ခုမှ 8 ခုအဖြစ် ပေးထားသည့် စတိုင်ရည်ညွှန်းချက်များ။ ၎င်းတို့၏အသွင်အပြင်က ဖန်တီးမည့် glyph စတိုင်ကို လမ်းညွှန်ပေးသည်။

အဆင့်မြင့် fill_color · stroke_color · temperature · top_p · top_k · repetition_penalty · max_tokens · output_size · stroke_width · seed · enable_safety_checker
မူလ black

SVG/CSS က ပံ့ပိုးသည့် မည်သည့်အရောင်ဖော်ပြချက်ဖြင့်မဆို သတ်မှတ်ထားသော glyph ဖြည့်အရောင်။

Glyph outline ဆက်တင်: ဤရွေးချယ်နိုင်သောအရောင်ကို ပေးပါက ဖန်တီးထားသော glyph လမ်းကြောင်းတိုင်းပတ်လည်တွင် stroke တစ်ခု ထည့်ပေးသည်။

မူလ 0.1

နမူနာရွေးချယ်ရာတွင် အသုံးပြုသည့် temperature။

မူလ 0.95

Nucleus sampling ထိန်းချုပ်မှု (top-p)။

မူလ 5

top-k sampling အတွက် ဆက်တင်။

မူလ 1

ထပ်တလဲလဲဖြစ်မှုအပေါ် သက်ရောက်သည့် penalty။

မူလ 8192

ဖန်တီးမည့် တိုကင်များ၏ အမြင့်ဆုံးကန့်သတ်ချက်။

မူလ 512

SVG အရွယ်အစားကို pixel ဖြင့် သတ်မှတ်သည့် ကန့်သတ်ချက်။ အကျယ်နှင့် အမြင့် အချိုးမပျက်စေဘဲ ပိုကြီးသော dimension တွင် အသုံးချသည်။

မူလ 1

သတ်မှတ်ထားသော stroke_color နှင့်သာ အကျိုးသက်ရောက်ပြီး SVG ယူနစ်များဖြင့် တိုင်းတာသည့် outline အထူ။

တူညီသောရလဒ်များ ပြန်လည်ရရှိရန် ကျပန်းဖြစ်မှုကို ထိန်းချုပ်သည့် seed။

POST /run/vecglypher/image-to-svg?wait=20 ကုန်ကျစရိတ် → ၀.၀၀၅ $
# 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 သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Vecglypher · Image to SVG အကြောင်း

`reference_image_urls` ရှိ ရည်ညွှန်းချက် အက္ခရာပုံ 1 ပုံမှ 8 ပုံ၏ စတိုင်နှင့် ကိုက်ညီသော ဗက်တာ အက္ခရာပုံများအဖြစ် `prompt` ထဲရှိ စာသားကို ရေးသားသည်။ ပုံတစ်ပုံစီတွင် စာလုံးတစ်လုံးစီ ပါဝင်သည်။ ထွက်ရလဒ်မှာ `output_size` ဖြင့် 64 မှ 4096 px အထိ အရွယ်သတ်မှတ်နိုင်သော SVG လမ်းကြောင်းများ ဖြစ်သည်။ `fill_color`၊ `stroke_color` နှင့် `stroke_width` တို့က အသွင်အပြင်ကို သတ်မှတ်ပြီး `temperature` နှင့် `max_tokens` ကဲ့သို့သော ဆမ်ပလင်းထိန်းချုပ်မှုများကို ရရှိနိုင်သည်။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
ရည်ညွှန်းပုံများကို အသုံးပြု၍ ပြန်လည်ဖန်တီးမည့် စတိုင်အတိုင်း အက္ခရာများကို vector glyph များအဖြစ် ပြောင်းလဲမည့် စာသား။
reference_image_urlsလိုအပ်သည် images
အမျိုးအစားurl[] · image
အကြောင်းအရာ ၈ ခုထက် မပိုပါ
ပုံတစ်ပုံစီတွင် glyph အက္ခရာတစ်လုံးစီ ပြသထားသော ပုံ URL 1 ခုမှ 8 ခုအဖြစ် ပေးထားသည့် စတိုင်ရည်ညွှန်းချက်များ။ ၎င်းတို့၏အသွင်အပြင်က ဖန်တီးမည့် glyph စတိုင်ကို လမ်းညွှန်ပေးသည်။
temperatureရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.1
၀ – ၂
နမူနာရွေးချယ်ရာတွင် အသုံးပြုသည့် temperature။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
တူညီသောရလဒ်များ ပြန်လည်ရရှိရန် ကျပန်းဖြစ်မှုကို ထိန်းချုပ်သည့် seed။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ထည့်သွင်းချက်အပေါ် ဘေးကင်းလုံခြုံရေး စစ်ဆေးမှုများကို ဖွင့်သည်။
top_pရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.95
၀ – ၁
Nucleus sampling ထိန်းချုပ်မှု (top-p)။
top_kရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး5
-၁ – ၁၀၀
top-k sampling အတွက် ဆက်တင်။
repetition_penaltyရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂
ထပ်တလဲလဲဖြစ်မှုအပေါ် သက်ရောက်သည့် penalty။
max_tokensရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး8192
၂၅၆ – ၁၆,၃၈၄
ဖန်တီးမည့် တိုကင်များ၏ အမြင့်ဆုံးကန့်သတ်ချက်။
output_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး512
၆၄ – ၄,၀၉၆
SVG အရွယ်အစားကို pixel ဖြင့် သတ်မှတ်သည့် ကန့်သတ်ချက်။ အကျယ်နှင့် အမြင့် အချိုးမပျက်စေဘဲ ပိုကြီးသော dimension တွင် အသုံးချသည်။
fill_colorရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးblack
SVG/CSS က ပံ့ပိုးသည့် မည်သည့်အရောင်ဖော်ပြချက်ဖြင့်မဆို သတ်မှတ်ထားသော glyph ဖြည့်အရောင်။
stroke_colorရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
Glyph outline ဆက်တင်: ဤရွေးချယ်နိုင်သောအရောင်ကို ပေးပါက ဖန်တီးထားသော glyph လမ်းကြောင်းတိုင်းပတ်လည်တွင် stroke တစ်ခု ထည့်ပေးသည်။
stroke_widthရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀.၁ – ၅၀
သတ်မှတ်ထားသော stroke_color နှင့်သာ အကျိုးသက်ရောက်ပြီး SVG ယူနစ်များဖြင့် တိုင်းတာသည့် outline အထူ။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး 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-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
image
anyဖန်တီးထားသော vector glyph များပါဝင်သည့် SVG ဖိုင်။
svg_content
stringမူရင်း SVG markup ပါဝင်သည့် string။
seed
integerဖန်တီးမှုအတွင်း အသုံးပြုသည့် seed တန်ဖိုး။
timings
objectလုပ်ဆောင်မှုအဆင့်အလိုက် ခွဲခြားဖော်ပြထားသော ဖန်တီးမှုကြာချိန်များ။

နောက်ထပ် မော်ဒယ်များ: ပုံတည်းဖြတ်ခြင်း

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/vecglypher/image-to-svg.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt