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

OpenRouter [Vision]

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

မော်ဒယ် id openrouter/router/vision
# 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/openrouter/router/vision?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",
    "model": "openai/gpt-6-sol"
  }'

# 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 ကီး ရယူရန်
OpenRouter LLM

ဖော်ပြစာ၊ OCR သို့မဟုတ် ရုပ်မြင်မေးဖြေမှုအတွက် ရွေးချယ်နိုင်သော မျိုးစုံသုံး LLM ထံ ပုံများ သို့မဟုတ် PDFs ပါသည့် ပရောမ့်ကို လမ်းကြောင်းပေးသည်

OpenRouter · စာသား

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

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

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

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

•လိုအပ်သည်

ပုံတွင် အသုံးပြုသည့် ပရောမ့်။

•လိုအပ်သည်

အသုံးပြုမည့် မော်ဒယ်ကို သတ်မှတ်သည့် အမည်။

အဆင့်မြင့် system_prompt · images · temperature · max_tokens · reasoning · enable_web_search · pdf_urls · web_search_options

မော်ဒယ်အား ညွှန်ကြားချက် သို့မဟုတ် အကြောင်းအရာ ပေးပို့သည့် စနစ်ပရောမ့်။

image_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

လုပ်ဆောင်ရန် ပုံများ၏ URL များဖြစ်သည်။

မူလ 1

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

ထွက်ရလဒ် တိုကင်အရေအတွက်ကို context length မှ ပရောမ့်အရှည်နုတ်ထားသည့် တန်ဖိုးထက် မပိုစေရန် ကန့်သတ်သည်။ ဖန်တီးမှုသည် သတ်မှတ်ထားသော ကန့်သတ်ချက်ကို မကျော်နိုင်ပါ။

စာရွက်စာတမ်းတည်နေရာများကို PDF များသာပါဝင်သော စာရင်းအဖြစ် ပေးပါ။ .pdf ဖိုင်များကို ညွှန်ပြသော http(s) URL များ သို့မဟုတ် data:application/pdf;base64,... ပုံစံရှိ data URI များကို အသုံးပြုနိုင်သည်။ မော်ဒယ်က PDF များကို မူလအတိုင်း မလုပ်ဆောင်နိုင်သည့်အခါ OpenRouter ၏ စာရွက်စာတမ်း parser က ၎င်းတို့ကို ကိုင်တွယ်ပေးသည်။

ရှာဖွေရေးအင်ဂျင်ရွေးချယ်မှု၊ ထွက်ရလဒ်ကန့်သတ်ချက်နှင့် ဒိုမိန်းစစ်ထုတ်မှု ပါဝင်သည့် ဝဘ်ရှာဖွေမှုဖွဲ့စည်းပုံ။ enable_web_search သည် true ဖြစ်သည့်အခါသာ အသုံးပြုသည်။

POST /run/openrouter/router/vision?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/openrouter/router/vision?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",
    "model": "openai/gpt-6-sol"
  }'

# 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 ကီး ရယူရန်

OpenRouter [Vision] အကြောင်း

`prompt` နှင့် `model` တွင် vision စွမ်းရည်ရှိသော ဘာသာစကားမော်ဒယ်အမည်ကို လက်ခံပြီး စာသားဖြင့် ဖြေဆိုသည်။ `image_urls` မှတစ်ဆင့် ပုံများနှင့် `pdf_urls` မှတစ်ဆင့် စာရွက်စာတမ်းများကို ပူးတွဲနိုင်ပြီး ၎င်းသည် PDF ဖိုင်များကိုသာ လက်ခံသည်။ `system_prompt`၊ 0 မှ 2 အထိ `temperature`၊ `max_tokens`၊ ရွေးချယ်နိုင်သော ဆင်ခြင်ချက်ထွက်ရလဒ်နှင့် ဝဘ်ရှာဖွေမှုတို့ကိုလည်း ပံ့ပိုးသည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
image_urlsရွေးချယ်နိုင်သည် images
အမျိုးအစားurl[] · image
လုပ်ဆောင်ရန် ပုံများ၏ URL များဖြစ်သည်။
pdf_urlsရွေးချယ်နိုင်သည်
အမျိုးအစားstring[]
စာရွက်စာတမ်းတည်နေရာများကို PDF များသာပါဝင်သော စာရင်းအဖြစ် ပေးပါ။ .pdf ဖိုင်များကို ညွှန်ပြသော http(s) URL များ သို့မဟုတ် data:application/pdf;base64,... ပုံစံရှိ data URI များကို အသုံးပြုနိုင်သည်။ မော်ဒယ်က PDF များကို မူလအတိုင်း မလုပ်ဆောင်နိုင်သည့်အခါ OpenRouter ၏ စာရွက်စာတမ်း parser က ၎င်းတို့ကို ကိုင်တွယ်ပေးသည်။
promptလိုအပ်သည်
အမျိုးအစားstring
ပုံတွင် အသုံးပြုသည့် ပရောမ့်။
system_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
မော်ဒယ်အား ညွှန်ကြားချက် သို့မဟုတ် အကြောင်းအရာ ပေးပို့သည့် စနစ်ပရောမ့်။
modelလိုအပ်သည်
အမျိုးအစားstring
အသုံးပြုမည့် မော်ဒယ်ကို သတ်မှတ်သည့် အမည်။
reasoningရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
နောက်ဆုံးအဖြေတွင် reasoning ထည့်သွင်းမည် မထည့်သွင်းမည်။
temperatureရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂
အဖြေကွဲပြားမှု ထိန်းချုပ်မှု၊ 0 သည် ထည့်သွင်းချက်မပြောင်းလဲသရွေ့ တူညီသောအဖြေကို အာမခံသည်။ တန်ဖိုးမြှင့်လေ အဖြေများသည် ခန့်မှန်းရလွယ်သော ပုံမှန်အဖြေများမှ ဝေးကွာကာ ပိုမိုကွဲပြားပြီး ရှားပါးသောအဖြေများ ဖြစ်လာသည်။
max_tokensရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
≥ ၁
ထွက်ရလဒ် တိုကင်အရေအတွက်ကို context length မှ ပရောမ့်အရှည်နုတ်ထားသည့် တန်ဖိုးထက် မပိုစေရန် ကန့်သတ်သည်။ ဖန်တီးမှုသည် သတ်မှတ်ထားသော ကန့်သတ်ချက်ကို မကျော်နိုင်ပါ။
web_search_optionsရွေးချယ်နိုင်သည်
အမျိုးအစားobject
ရှာဖွေရေးအင်ဂျင်ရွေးချယ်မှု၊ ထွက်ရလဒ်ကန့်သတ်ချက်နှင့် ဒိုမိန်းစစ်ထုတ်မှု ပါဝင်သည့် ဝဘ်ရှာဖွေမှုဖွဲ့စည်းပုံ။ enable_web_search သည် true ဖြစ်သည့်အခါသာ အသုံးပြုသည်။
web_search_options.engineရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးauto
autonativeexa
ရှာဖွေရေးအင်ဂျင်ရွေးချယ်မှု - native search မရရှိပါက 'auto' နှင့် 'native' နှစ်ခုစလုံးသည် Exa သို့ ပြန်လည်အသုံးပြုသည်။ 'auto' သည် ရရှိနိုင်သော provider-native search ကို အသုံးပြုပြီး 'native' သည် OpenAI၊ Anthropic၊ Google၊ xAI သို့မဟုတ် Perplexity ၏ built-in search ကို ဦးစားပေးသည်။ Exa ၏ search API ကိုသာ အသုံးပြုရန် 'exa' ကို ရွေးချယ်ပါ။
web_search_options.max_resultsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
၁ – ၂၅
Exa ရှာဖွေမှုတစ်ကြိမ်စီအတွက် ထွက်ရလဒ်ကန့်သတ်ချက်၊ 1 မှ 25 အထိဖြစ်ပြီး မူလတန်ဖိုးမှာ 5 ဖြစ်သည်။ Native provider search သည် ဤဆက်တင်ကို လျစ်လျူရှုသည်။
web_search_options.max_usesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
≥ ၁
တောင်းဆိုချက်တစ်ခုစီအတွက် ရှာဖွေမှုကန့်သတ်ချက်၊ native search အတွက် Anthropic ထံ ပေးပို့သော်လည်း အခြား native provider များက လျစ်လျူရှုသည်။ ကန့်သတ်ချက်ကျော်လွန်သော ခေါ်ဆိုမှုများသည် အမှားထွက်ရလဒ် ရရှိပြီး မလုပ်ဆောင်ပါ။
web_search_options.max_total_resultsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
≥ ၁
တောင်းဆိုချက်တစ်ခုအတွင်း ရှာဖွေမှုအားလုံးအတွက် ပေါင်းစပ်ထွက်ရလဒ် ကန့်သတ်ချက်။
web_search_options.search_context_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
lowmediumhigh
Exa အတွက် ထွက်ရလဒ်တစ်ခုစီ ရယူမည့်ပမာဏ၊ နှစ်ခုစလုံးပေးထားပါက max_characters က အစားထိုးပြီး native provider search အတွက် လျစ်လျူရှုသည်။ 5K characters အတွက် low၊ 15K အတွက် medium၊ 30K အတွက် high ကို ရွေးချယ်ပါ။ မသတ်မှတ်ထားပါက Exa သည် ထွက်ရလဒ်တစ်ခုလျှင် ခန့်မှန်းခြေ 2–4K အထိ အလိုက်သင့်ညှိပေးသည်။
web_search_options.max_charactersရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
၁ – ၁၀၀,၀၀၀
Exa အတွက် ရလဒ်တစ်ခုစီ၏ အကြောင်းအရာတွင် ပါဝင်နိုင်သည့် အများဆုံး စာလုံးအရေအတွက်။ ဆက်တင်နှစ်ခုလုံး ပေးထားပါက search_context_size အစား ဤဆက်တင်ကို အသုံးပြုသည်။ အများဆုံး စာလုံးအရေအတွက်ကို 1 မှ 100,000 အတွင်း အတိအကျ သတ်မှတ်ပါ။ ပံ့ပိုးသူ၏ မူရင်းရှာဖွေမှုက ဤဆက်တင်ကို လျစ်လျူရှုသည်။
web_search_options.allowed_domainsရွေးချယ်နိုင်သည်
အမျိုးအစားstring[]
Exa နှင့် native search provider အများစုအတွက် domain allowlist၊ ထွက်ရလဒ်များကို စာရင်းပါ ဒိုမိန်းများအတွင်းသာ ကန့်သတ်သည်။ Google native search တွင် မပံ့ပိုးပါ။
web_search_options.excluded_domainsရွေးချယ်နိုင်သည်
အမျိုးအစားstring[]
Exa ရှာဖွေမှုများနှင့် ကိုက်ညီသော native provider များအတွက် ဒိုမိန်းဖယ်ရှားရန်စာရင်းဖြစ်သည်။ Google နှင့် OpenAI native ရှာဖွေမှုများတွင် ဤစာရင်းကို အသုံးမပြုနိုင်ပါ။ စာရင်းပါ ဒိုမိန်းများမှ ရရှိသော ရလဒ်များကို ဖယ်ရှားထားသည်။
web_search_options.user_locationရွေးချယ်နိုင်သည်
အမျိုးအစားobject
native ရှာဖွေမှုရလဒ်များ၏ ပထဝီဝင်ဆိုင်ရာ ဦးစားပေးမှုကို သက်ရောက်စေသော အသုံးပြုသူ၏ ခန့်မှန်းတည်နေရာဖြစ်သည်။ Exa သည် ဤအချက်အလက်ကို အသုံးမပြုပါ။
web_search_options.user_location.typeရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးapproximate
တည်နေရာအမျိုးအစားဖြစ်သည်။ ပံ့ပိုးထားသော တန်ဖိုးတစ်ခုတည်းမှာ 'approximate' ဖြစ်သည်။
web_search_options.user_location.cityရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
'San Francisco' ကဲ့သို့ မြို့အမည်ဖြစ်သည်။
web_search_options.user_location.regionရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
'California' ကဲ့သို့ ပြည်နယ် သို့မဟုတ် ဒေသအမည်ဖြစ်သည်။
web_search_options.user_location.countryရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
'US' ကဲ့သို့ အက္ခရာနှစ်လုံးဖြင့် ဖော်ပြထားသော နိုင်ငံအမှတ်အသားဖြစ်သည်။
web_search_options.user_location.timezoneရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
'America/Los_Angeles' ကဲ့သို့ IANA စံနှုန်းဖြင့် ဖော်ပြထားသော အချိန်ဇုန်အမှတ်အသားဖြစ်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openrouter/router/vision",
  "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": 14340,
    "usd": "14.34",
    "charged": 14340,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "openai/gpt-6-sol"
  },
  "output": {
    "output": "A close-up of a tiger's face focusing on its bright orange iris and the area around its eye, with white fur eyebrows and a contrasting black and rich orange striped fur pattern. The word \"FLUX\" is overlaid in bold, white, brush-stroke styled text across the tiger's face.",
    "usage": {
      "prompt_tokens": 1,
      "completion_tokens": 1,
      "total_tokens": 0,
      "cost": 1.0,
      "prompt_tokens_details": {
        "cached_tokens": 0,
        "cache_write_tokens": 0
      }
    }
  },
  "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-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
output
stringမော်ဒယ်မှ ထုတ်လုပ်သော ရလဒ်။
usage
object {prompt_tokens, completion_tokens, total_tokens, cost, prompt_tokens_details} | nullတိုကင်အသုံးပြုမှု အသေးစိတ်ဖြစ်သည်။

နောက်ထပ် မော်ဒယ်များ: LLM

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