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

Telestyle V2 Style Transfer

ပေါင်းစည်းရန်

မော်ဒယ် id telestyle-v2
# 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/telestyle-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_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"

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

API ကီး ရယူရန်
Open model ပုံတည်းဖြတ်ခြင်း #stylized#transform#editing

ဒုတိယစတိုင်ကိုးကားရုပ်ပုံ၏ အသွင်အပြင်ကို အသုံးပြု၍ အကြောင်းအရာရုပ်ပုံကို ပြန်လည်ဖန်တီးပေးသည့် စတိုင်လွှဲပြောင်းမှု

Open model · ပုံ

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

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

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

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

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

စတိုင်လွှဲပြောင်းရန် အကြောင်းအရာနှင့် ဖွဲ့စည်းပုံကို ပေးသည့် ပုံသို့ ညွှန်ပြသော URL။ ပုံက စတိုင်ကို လက်ခံရရှိသည့်အခါ နှစ်ခုစလုံးကို ထိန်းသိမ်းထားသည်။

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

အကြောင်းအရာပုံ၏ စတိုင်ကို ပြန်လည်ပြောင်းရန် အသုံးပြုသည့် ပုံ URL။ ရည်ညွှန်းပုံက ပစ္စည်းနှင့် အနုပညာစတိုင်အပြင် အရောင်နှင့် အလင်းရောင်ကို ပေးသည်။

image_size

ထွက်ရလဒ်ပုံ၏ အရွယ်အစား။ ပေးထားမှသာ အကြောင်းအရာပုံ၏ အရွယ်အစားကို အစားထိုးသည်။

num_images မူလ 1

ဖန်တီးရန် တောင်းဆိုထားသည့် ပုံအရေအတွက်။

အဆင့်မြင့် negative_prompt · acceleration · output_format · lora_scale · lightning_lora_scale · num_inference_steps · guidance_scale · seed · use_lightning_lora · use_content_description · use_style_description · enable_safety_checker
မူလ

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် အနုတ်လက္ခဏာ ပရောမ့်။

acceleration မူလ none

ပုံဖန်တီးမှု အရှိန်မြှင့်မုဒ်။ 'regular' သည် num_inference_steps နှင့် သီးခြားသတ်မှတ်ထားသော 10 အဆင့်ဖြင့် downstream အရှိန်မြှင့်လမ်းကြောင်းကို အသုံးပြုသည်။ မူလမုဒ် 'none' သည် num_inference_steps ကို လိုက်နာပြီး မူလ Lightning စနစ်သည် သတ်မှတ်ထားသော 4 အဆင့်ကို အသုံးပြုသည်။

output_format မူလ png

ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။

မူလ 1

TeleStyleV2 adapter အင်အား။ ပိုမိုနူးညံ့သော စတိုင်အကျိုးသက်ရောက်မှုအတွက် ရည်ညွှန်းအကောင်အထည်ဖော်မှု၏ 1.0 ထက် လျှော့ချနိုင်သည်။

မူလ 1

Lightning LoRA အင်အား။ ပိုမိုနူးညံ့သော စတိုင်အကျိုးသက်ရောက်မှုအတွက် ရည်ညွှန်းအကောင်အထည်ဖော်မှု၏ 1.0 ထက် လျှော့ချနိုင်သည်။

မူလ 4

လုပ်ဆောင်ရန် inference အဆင့်အရေအတွက်။

မူလ 1

Classifier Free Guidance ၏ အတိုကောက်ဖြစ်သော CFG ကို အသုံးပြု၍ ဖန်တီးမှုသည် သင့်ပရောမ့်ကို မည်မျှနီးကပ်စွာ လိုက်နာမည်ကို သတ်မှတ်ပါ။

တူညီသောပုံရလဒ်များ ပြန်လည်ရရှိရန် seed။ ပုံကို အကြိမ်တိုင်း တူညီစွာ ပြန်ဖန်တီးလိုပါက seed၊ ထည့်သွင်းချက်အားလုံးနှင့် မော်ဒယ်ဗားရှင်းကို မပြောင်းလဲထားပါ။

POST /run/telestyle-v2?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/telestyle-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_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 သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Telestyle V2 Style Transfer အကြောင်း

`content_image_url` ရှိ အကြောင်းအရာနှင့် ဖွဲ့စည်းပုံကို ထိန်းသိမ်းပြီး `style_image_url` ရှိ စတိုင်၊ ပစ္စည်းအသွင်၊ အလင်းရောင်နှင့် အရောင်တို့ကို အသုံးချသည်။ `lora_scale` (0 မှ 4) သည် စတိုင်အားကို ထိန်းချုပ်ပြီး ရွေးချယ်နိုင်သော Lightning LoRA ကို မူလအတိုင်း ဖွင့်ထားကာ 4-step မူလတန်ဖိုးကို အသုံးပြုသည်။ ထွက်ရလဒ်အရွယ်အစားကို `image_size` ကြိုတင်သတ်မှတ်ချက်များဖြင့် သတ်မှတ်နိုင်ပြီး ခေါ်ဆိုမှုတစ်ကြိမ်လျှင် ပုံ 1 မှ 4 ပုံအထိ jpeg သို့မဟုတ် png အဖြစ် ဖန်တီးနိုင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
content_image_urlလိုအပ်သည်
အမျိုးအစားurl · image
စတိုင်လွှဲပြောင်းရန် အကြောင်းအရာနှင့် ဖွဲ့စည်းပုံကို ပေးသည့် ပုံသို့ ညွှန်ပြသော URL။ ပုံက စတိုင်ကို လက်ခံရရှိသည့်အခါ နှစ်ခုစလုံးကို ထိန်းသိမ်းထားသည်။
style_image_urlလိုအပ်သည်
အမျိုးအစားurl · image
အကြောင်းအရာပုံ၏ စတိုင်ကို ပြန်လည်ပြောင်းရန် အသုံးပြုသည့် ပုံ URL။ ရည်ညွှန်းပုံက ပစ္စည်းနှင့် အနုပညာစတိုင်အပြင် အရောင်နှင့် အလင်းရောင်ကို ပေးသည်။
lora_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၄
TeleStyleV2 adapter အင်အား။ ပိုမိုနူးညံ့သော စတိုင်အကျိုးသက်ရောက်မှုအတွက် ရည်ညွှန်းအကောင်အထည်ဖော်မှု၏ 1.0 ထက် လျှော့ချနိုင်သည်။
use_lightning_loraရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
true ဖြစ်သောအခါ မူလ LoRA နှင့်အတူ Lightning LoRA ကို အသုံးပြုမပြု ထိန်းချုပ်သည်။
lightning_lora_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၄
Lightning LoRA အင်အား။ ပိုမိုနူးညံ့သော စတိုင်အကျိုးသက်ရောက်မှုအတွက် ရည်ညွှန်းအကောင်အထည်ဖော်မှု၏ 1.0 ထက် လျှော့ချနိုင်သည်။
use_content_descriptionရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
true ဖြစ်သောအခါ အကြောင်းအရာပုံ၏ ဖော်ပြချက်ဖြင့် ပရောမ့်ကို ဖြည့်စွက်သည်။ ဖော်ပြချက်ကို VLM က ရေးသားသည်။
use_style_descriptionရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
true ဖြစ်သောအခါ စတိုင်ပုံ၏ ဖော်ပြချက်ဖြင့် ပရောမ့်ကို ဖြည့်စွက်သည်။ ဖော်ပြချက်ကို VLM က ရေးသားသည်။
image_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
ထွက်ရလဒ်ပုံ၏ အရွယ်အစား။ ပေးထားမှသာ အကြောင်းအရာပုံ၏ အရွယ်အစားကို အစားထိုးသည်။
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် အနုတ်လက္ခဏာ ပရောမ့်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး4
၂ – ၅၀
လုပ်ဆောင်ရန် inference အဆင့်အရေအတွက်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂၀
Classifier Free Guidance ၏ အတိုကောက်ဖြစ်သော CFG ကို အသုံးပြု၍ ဖန်တီးမှုသည် သင့်ပရောမ့်ကို မည်မျှနီးကပ်စွာ လိုက်နာမည်ကို သတ်မှတ်ပါ။
accelerationရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးnone
noneregular
ပုံဖန်တီးမှု အရှိန်မြှင့်မုဒ်။ 'regular' သည် num_inference_steps နှင့် သီးခြားသတ်မှတ်ထားသော 10 အဆင့်ဖြင့် downstream အရှိန်မြှင့်လမ်းကြောင်းကို အသုံးပြုသည်။ မူလမုဒ် 'none' သည် num_inference_steps ကို လိုက်နာပြီး မူလ Lightning စနစ်သည် သတ်မှတ်ထားသော 4 အဆင့်ကို အသုံးပြုသည်။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
ဖန်တီးရန် တောင်းဆိုထားသည့် ပုံအရေအတွက်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
တူညီသောပုံရလဒ်များ ပြန်လည်ရရှိရန် seed။ ပုံကို အကြိမ်တိုင်း တူညီစွာ ပြန်ဖန်တီးလိုပါက seed၊ ထည့်သွင်းချက်အားလုံးနှင့် မော်ဒယ်ဗားရှင်းကို မပြောင်းလဲထားပါ။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
လုံခြုံရေးစစ်ဆေးမှု ဖွင့်ခြင်း၊ true သည် စစ်ဆေးမှုကို ဖွင့်ပေးသည်။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpng
ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "telestyle-v2",
  "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": 71,
    "usd": "0.071",
    "charged": 71,
    "refunded": 0
  },
  "input": {
    "content_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "style_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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
      }
    ],
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "",
    "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-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
images
array of object {url, content_type, file_name, file_size, width, height}စတိုင်အသုံးချထားသော ပုံ သို့မဟုတ် ပုံများ။
has_nsfw_concepts
array of booleanဖန်တီးထားသော ပုံတွင် NSFW အယူအဆများ ပါဝင်ခြင်း ရှိ၊ မရှိကို ဖော်ပြသည်။
prompt
stringအကြောင်းအရာပုံနှင့် စတိုင်ပုံနှစ်ခုစလုံးမှ ဖန်တီးထားသော ပရောမ့်။
seed
integerဖန်တီးမှုအတွင်း အသုံးပြုသည့် seed တန်ဖိုး။

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