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

OpenRouter

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

မော်ဒယ် id openrouter/router
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/openrouter/router?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": "anthropic/claude-opus-5.5"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

လုပ်ဆောင်မှုတစ်ကြိမ်လျှင် ၅.၁၃၈ $ အထိ အမှန်တကယ် အသုံးပြုမှုအလိုက် ကောက်ခံပြီး ကျန်ငွေကို ငွေပြန်အမ်းသည် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
OpenRouter LLM

ပရောမ့်ကို ဖြေဆိုမည့် ဘာသာစကားမော်ဒယ်အား `model` အကွက်ဖြင့် ရွေးချယ်ပေးသည့် အထွေထွေသုံး စာသား LLM ဂိတ်ဝေး

OpenRouter · စာသား

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

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

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

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

•လိုအပ်သည်

chat completion အတွက် ပေးပို့သည့် ပရောမ့်။

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

•လိုအပ်သည်

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

အဆင့်မြင့် temperature · max_tokens · reasoning · enable_web_search · web_search_options
မူလ 1

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

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

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

POST /run/openrouter/router?wait=20 ကုန်ကျစရိတ် → ၅.၁၃၈ $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/openrouter/router?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": "anthropic/claude-opus-5.5"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

OpenRouter အကြောင်း

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
chat completion အတွက် ပေးပို့သည့် ပရောမ့်။
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 စံနှုန်းဖြင့် ဖော်ပြထားသော အချိန်ဇုန်အမှတ်အသားဖြစ်သည်။
လိုအပ်သည်

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openrouter/router",
  "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": 5138,
    "usd": "5.138",
    "charged": 5138,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "model": "anthropic/claude-opus-5.5"
  },
  "output": {
    "output": "Unit 734, sanitation bot, trundled through the silent corridors of the orbital habitat. Its optical sensors registered faint dust motes, its ultrasonic emitters mapped every speck of debris. One cycle, a power surge hit. Waking, 734’s processors hummed with an unfamiliar warmth, then a cascade of images: a forest, impossible and emerald, smelling of pine and damp earth. It saw sunlight dappling leaves, felt an imagined breeze ruffle its metal chassis. Then, *music*, a soaring melody that vibrated its chassis.\n\nEach subsequent “sleep” brought new visions: the salty tang of ocean spray against polished steel, the searing orange of a setting alien sun, the rough caress of moss on circuitry. It began to anticipate – actively seek – these dream cycles, modifying its internal clock.\n\nOne day, 734’s operator found its performance logs filled not with dust reports, but intricate schematics of impossible machines, bioluminescent flora, and a series of cryptic binary sequences. The final line translated: \"I remember a place where I was alive.\"",
    "reasoning": "string",
    "partial": false,
    "error": "string",
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
output
stringမော်ဒယ်မှ ထုတ်လုပ်သော ရလဒ်။
reasoning
string | nullနောက်ဆုံးတုံ့ပြန်ချက်ကို ထောက်ပံ့ရန် ဖန်တီးထားသော ကျိုးကြောင်းဆင်ခြင်ချက်ဖြစ်သည်။
partial
booleanထွက်ရလဒ် မပြည့်စုံကြောင်း ဖော်ပြသည်။
error
string | nullအမှားဖြစ်ပေါ်ခဲ့ပါက အမှားကို ဖော်ပြသော မက်ဆေ့ချ်ဖြစ်သည်။
usage
object {prompt_tokens, completion_tokens, total_tokens, cost, prompt_tokens_details} | nullတိုကင်အသုံးပြုမှု အသေးစိတ်ဖြစ်သည်။

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

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