[{"data":1,"prerenderedAt":799},["ShallowReactive",2],{"docs-nav-titles":3,"page-docs_en-\u002Fmodels":52},{"en":4,"id":39},{"\u002Fauthentication":5,"\u002Fchangelog":6,"\u002Fguides\u002Fbilling":7,"\u002Fguides\u002Ferrors":8,"\u002Fguides\u002Fjson-output":9,"\u002Fguides\u002Frate-limits":10,"\u002Fguides\u002Freasoning":11,"\u002Fguides\u002Fstreaming":12,"\u002Fguides\u002Ftool-calling":13,"\u002Fguides\u002Ftop-up":14,"\u002F":15,"\u002Fintegrations\u002Faider":16,"\u002Fintegrations\u002Fclaude-code":17,"\u002Fintegrations\u002Fcline":18,"\u002Fintegrations\u002Fcontinue":19,"\u002Fintegrations\u002Fgoose":20,"\u002Fintegrations\u002Fhermes":21,"\u002Fintegrations":22,"\u002Fintegrations\u002Fkilo-code":23,"\u002Fintegrations\u002Flangchain":24,"\u002Fintegrations\u002Foh-my-pi":25,"\u002Fintegrations\u002Fopenai-sdk":26,"\u002Fintegrations\u002Fopenclaw":27,"\u002Fintegrations\u002Fopencode":28,"\u002Fintegrations\u002Fpi":29,"\u002Fintegrations\u002Fvercel-ai-sdk":30,"\u002Fintegrations\u002Fzed":31,"\u002Fmodels":32,"\u002Fquickstart":33,"\u002Freference\u002Fchat-completions":34,"\u002Freference":22,"\u002Freference\u002Fmessages":35,"\u002Freference\u002Fmodels":36,"\u002Freference\u002Fmodels-retrieve":37,"\u002Fsupport":38},"Authentication","Changelog","Billing","Errors & retries","JSON output","Rate limits","Reasoning content","Streaming","Tool calling","Topping up with QRIS","Introduction","Aider","Claude Code","Cline","Continue","Goose","Hermes Agent","Overview","Kilo Code","LangChain (Python)","Oh My Pi","OpenAI SDKs","OpenClaw","OpenCode","Pi","Vercel AI SDK","Zed","Models","Quickstart","Chat completions","Messages","List models","Retrieve a model","Support",{"\u002Fauthentication":40,"\u002Fchangelog":6,"\u002Fguides\u002Fbilling":7,"\u002Fguides\u002Ferrors":41,"\u002Fguides\u002Fjson-output":42,"\u002Fguides\u002Frate-limits":43,"\u002Fguides\u002Freasoning":44,"\u002Fguides\u002Fstreaming":12,"\u002Fguides\u002Ftool-calling":13,"\u002Fguides\u002Ftop-up":45,"\u002F":46,"\u002Fintegrations\u002Faider":16,"\u002Fintegrations\u002Fclaude-code":17,"\u002Fintegrations\u002Fcline":18,"\u002Fintegrations\u002Fcontinue":19,"\u002Fintegrations\u002Fgoose":20,"\u002Fintegrations\u002Fhermes":21,"\u002Fintegrations":47,"\u002Fintegrations\u002Fkilo-code":23,"\u002Fintegrations\u002Flangchain":24,"\u002Fintegrations\u002Foh-my-pi":25,"\u002Fintegrations\u002Fopenai-sdk":48,"\u002Fintegrations\u002Fopenclaw":27,"\u002Fintegrations\u002Fopencode":28,"\u002Fintegrations\u002Fpi":29,"\u002Fintegrations\u002Fvercel-ai-sdk":30,"\u002Fintegrations\u002Fzed":31,"\u002Fmodels":49,"\u002Fquickstart":33,"\u002Freference\u002Fchat-completions":34,"\u002Freference":47,"\u002Freference\u002Fmessages":35,"\u002Freference\u002Fmodels":50,"\u002Freference\u002Fmodels-retrieve":51,"\u002Fsupport":38},"Autentikasi","Error & retry","Output JSON","Rate limit","Konten reasoning","Isi saldo dengan QRIS","Pengantar","Ringkasan","OpenAI SDK","Model","Daftar model","Ambil satu model",{"id":53,"title":32,"body":54,"description":790,"extension":791,"eyebrow":792,"meta":793,"navTitle":792,"navigation":794,"path":795,"seo":796,"stem":797,"__hash__":798},"docs_en\u002Fmodels.md",{"type":55,"value":56,"toc":782},"minimark",[57,78,81,192,194,277,281,284,336,356,360,377,383,387,422,426,432,475,753,778],[58,59,60,61,65,66,69,70,73,74,77],"p",{},"Laras Router serves two models: ",[62,63,64],"code",{},"deepseek-flash"," (DeepSeek-V4.1-Flash) and ",[62,67,68],{},"deepseek-v4-pro"," (DeepSeek-V4-Pro). Send the one you want as ",[62,71,72],{},"\"model\": \"deepseek-flash\""," or ",[62,75,76],{},"\"model\": \"deepseek-v4-pro\"",".",[79,80,64],"h2",{"id":64},[82,83,84,97],"table",{},[85,86,87],"thead",{},[88,89,90,94],"tr",{},[91,92,93],"th",{},"Property",[91,95,96],{},"Value",[98,99,100,110,118,126,138,149,157,164,171,181],"tbody",{},[88,101,102,106],{},[103,104,105],"td",{},"Model ID",[103,107,108],{},[62,109,64],{},[88,111,112,115],{},[103,113,114],{},"Underlying model",[103,116,117],{},"DeepSeek-V4.1-Flash",[88,119,120,123],{},[103,121,122],{},"Context window",[103,124,125],{},"1M tokens",[88,127,128,131],{},[103,129,130],{},"Maximum output",[103,132,133,134,137],{},"384K tokens (",[62,135,136],{},"max_tokens"," up to 384,000)",[88,139,140,143],{},[103,141,142],{},"Default output cap",[103,144,145,146,148],{},"8,192 tokens when ",[62,147,136],{}," is omitted",[88,150,151,154],{},[103,152,153],{},"Input",[103,155,156],{},"Text only",[88,158,159,161],{},[103,160,12],{},[103,162,163],{},"Yes, Server-Sent Events",[88,165,166,168],{},[103,167,13],{},[103,169,170],{},"Yes",[88,172,173,175],{},[103,174,9],{},[103,176,177,178],{},"Yes, ",[62,179,180],{},"response_format: {\"type\": \"json_object\"}",[88,182,183,186],{},[103,184,185],{},"Reasoning",[103,187,188,189],{},"Yes, returned in ",[62,190,191],{},"reasoning_content",[79,193,68],{"id":68},[82,195,196,204],{},[85,197,198],{},[88,199,200,202],{},[91,201,93],{},[91,203,96],{},[98,205,206,214,221,227,235,243,249,255,261,269],{},[88,207,208,210],{},[103,209,105],{},[103,211,212],{},[62,213,68],{},[88,215,216,218],{},[103,217,114],{},[103,219,220],{},"DeepSeek-V4-Pro-0813",[88,222,223,225],{},[103,224,122],{},[103,226,125],{},[88,228,229,231],{},[103,230,130],{},[103,232,133,233,137],{},[62,234,136],{},[88,236,237,239],{},[103,238,142],{},[103,240,145,241,148],{},[62,242,136],{},[88,244,245,247],{},[103,246,153],{},[103,248,156],{},[88,250,251,253],{},[103,252,12],{},[103,254,163],{},[88,256,257,259],{},[103,258,13],{},[103,260,170],{},[88,262,263,265],{},[103,264,9],{},[103,266,177,267],{},[62,268,180],{},[88,270,271,273],{},[103,272,185],{},[103,274,188,275],{},[62,276,191],{},[79,278,280],{"id":279},"pricing","Pricing",[58,282,283],{},"Prices are per 1M tokens, in USD, and do not change by time of day.",[82,285,286,301],{},[85,287,288],{},[88,289,290,293,297],{},[91,291,292],{},"Token type",[91,294,295],{},[62,296,64],{},[91,298,299],{},[62,300,68],{},[98,302,303,314,325],{},[88,304,305,308,311],{},[103,306,307],{},"Input, cache hit",[103,309,310],{},"$0.010",[103,312,313],{},"$0.060",[88,315,316,319,322],{},[103,317,318],{},"Input, cache miss",[103,320,321],{},"$0.400",[103,323,324],{},"$1.760",[88,326,327,330,333],{},[103,328,329],{},"Output (including reasoning)",[103,331,332],{},"$1.600",[103,334,335],{},"$5.280",[58,337,338,339,342,343,346,347,350,351,355],{},"The provider caches repeated prompt prefixes automatically. The ",[62,340,341],{},"usage"," object of each response tells you how many input tokens were a cache hit (",[62,344,345],{},"prompt_cache_hit_tokens",") and how many were not (",[62,348,349],{},"prompt_cache_miss_tokens","). See ",[352,353,7],"a",{"href":354},"\u002Fguides\u002Fbilling"," for a worked example.",[79,357,359],{"id":358},"output-length","Output length",[58,361,362,363,365,366,369,370,372,373,376],{},"If you omit ",[62,364,136],{},", the gateway applies a cap of 8,192 output tokens. Reasoning tokens count toward the cap, so a long answer to a hard question can stop with ",[62,367,368],{},"finish_reason: \"length\"",". Raise ",[62,371,136],{}," when you expect long output — up to 384,000. A larger value is rejected with ",[62,374,375],{},"400 max_tokens_exceeded","; it is never reduced silently.",[58,378,379,382],{},[62,380,381],{},"max_completion_tokens"," is accepted as an alias. If you send both, the smaller value applies.",[79,384,386],{"id":385},"what-is-not-supported","What is not supported",[388,389,390,401],"ul",{},[391,392,393,397,398,77],"li",{},[394,395,396],"strong",{},"Images and other non-text input."," A message with an image part is rejected with ",[62,399,400],{},"400 unsupported_content",[391,402,403,406,407,73,410,413,414,417,418,73,420,77],{},[394,404,405],{},"Other model IDs."," Names such as ",[62,408,409],{},"deepseek-v4-flash",[62,411,412],{},"gpt-4o"," return ",[62,415,416],{},"404 model_not_found",". Use ",[62,419,64],{},[62,421,68],{},[79,423,425],{"id":424},"list-models-from-the-api","List models from the API",[58,427,428,431],{},[62,429,430],{},"GET \u002Fv1\u002Fmodels"," returns the models your key can call, in the OpenAI list format:",[433,434,439],"pre",{"className":435,"code":436,"language":437,"meta":438,"style":438},"language-bash shiki shiki-themes github-dark-default github-light-default","curl https:\u002F\u002Fapi.larasrouter.com\u002Fv1\u002Fmodels \\\n  -H \"Authorization: Bearer $LARAS_API_KEY\"\n","bash","",[62,440,441,458],{"__ignoreMap":438},[442,443,446,450,454],"span",{"class":444,"line":445},"line",1,[442,447,449],{"class":448},"sjwWW","curl",[442,451,453],{"class":452},"sHdZ9"," https:\u002F\u002Fapi.larasrouter.com\u002Fv1\u002Fmodels",[442,455,457],{"class":456},"s1PA9"," \\\n",[442,459,461,465,468,472],{"class":444,"line":460},2,[442,462,464],{"class":463},"sYnYM","  -H",[442,466,467],{"class":452}," \"Authorization: Bearer ",[442,469,471],{"class":470},"sUq8j","$LARAS_API_KEY",[442,473,474],{"class":452},"\"\n",[433,476,481],{"className":477,"code":478,"filename":479,"language":480,"meta":438,"style":438},"language-json shiki shiki-themes github-dark-default github-light-default","{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"deepseek-flash\",\n      \"object\": \"model\",\n      \"created\": 1760241600,\n      \"owned_by\": \"larasrouter\",\n      \"context_length\": 1000000,\n      \"max_output_tokens\": 384000,\n      \"default_output_tokens\": 8192,\n      \"capabilities\": { \"streaming\": true, \"tools\": true, \"json_output\": true, \"thinking\": true, \"vision\": false },\n      \"pricing\": { \"version\": \"deepseek-flash-2026-09-v1\", \"currency\": \"USD\", \"unit_tokens\": 1000000, \"input_cache_hit\": \"0.010\", \"input\": \"0.400\", \"output\": \"1.600\" }\n    }\n  ]\n}\n","Response","json",[62,482,483,488,503,512,518,531,544,557,570,583,596,609,667,735,741,747],{"__ignoreMap":438},[442,484,485],{"class":444,"line":445},[442,486,487],{"class":470},"{\n",[442,489,490,494,497,500],{"class":444,"line":460},[442,491,493],{"class":492},"sGSaJ","  \"object\"",[442,495,496],{"class":470},": ",[442,498,499],{"class":452},"\"list\"",[442,501,502],{"class":470},",\n",[442,504,506,509],{"class":444,"line":505},3,[442,507,508],{"class":492},"  \"data\"",[442,510,511],{"class":470},": [\n",[442,513,515],{"class":444,"line":514},4,[442,516,517],{"class":470},"    {\n",[442,519,521,524,526,529],{"class":444,"line":520},5,[442,522,523],{"class":492},"      \"id\"",[442,525,496],{"class":470},[442,527,528],{"class":452},"\"deepseek-flash\"",[442,530,502],{"class":470},[442,532,534,537,539,542],{"class":444,"line":533},6,[442,535,536],{"class":492},"      \"object\"",[442,538,496],{"class":470},[442,540,541],{"class":452},"\"model\"",[442,543,502],{"class":470},[442,545,547,550,552,555],{"class":444,"line":546},7,[442,548,549],{"class":492},"      \"created\"",[442,551,496],{"class":470},[442,553,554],{"class":463},"1760241600",[442,556,502],{"class":470},[442,558,560,563,565,568],{"class":444,"line":559},8,[442,561,562],{"class":492},"      \"owned_by\"",[442,564,496],{"class":470},[442,566,567],{"class":452},"\"larasrouter\"",[442,569,502],{"class":470},[442,571,573,576,578,581],{"class":444,"line":572},9,[442,574,575],{"class":492},"      \"context_length\"",[442,577,496],{"class":470},[442,579,580],{"class":463},"1000000",[442,582,502],{"class":470},[442,584,586,589,591,594],{"class":444,"line":585},10,[442,587,588],{"class":492},"      \"max_output_tokens\"",[442,590,496],{"class":470},[442,592,593],{"class":463},"384000",[442,595,502],{"class":470},[442,597,599,602,604,607],{"class":444,"line":598},11,[442,600,601],{"class":492},"      \"default_output_tokens\"",[442,603,496],{"class":470},[442,605,606],{"class":463},"8192",[442,608,502],{"class":470},[442,610,612,615,618,621,623,626,629,632,634,636,638,641,643,645,647,650,652,654,656,659,661,664],{"class":444,"line":611},12,[442,613,614],{"class":492},"      \"capabilities\"",[442,616,617],{"class":470},": { ",[442,619,620],{"class":492},"\"streaming\"",[442,622,496],{"class":470},[442,624,625],{"class":463},"true",[442,627,628],{"class":470},", ",[442,630,631],{"class":492},"\"tools\"",[442,633,496],{"class":470},[442,635,625],{"class":463},[442,637,628],{"class":470},[442,639,640],{"class":492},"\"json_output\"",[442,642,496],{"class":470},[442,644,625],{"class":463},[442,646,628],{"class":470},[442,648,649],{"class":492},"\"thinking\"",[442,651,496],{"class":470},[442,653,625],{"class":463},[442,655,628],{"class":470},[442,657,658],{"class":492},"\"vision\"",[442,660,496],{"class":470},[442,662,663],{"class":463},"false",[442,665,666],{"class":470}," },\n",[442,668,670,673,675,678,680,683,685,688,690,693,695,698,700,702,704,707,709,712,714,717,719,722,724,727,729,732],{"class":444,"line":669},13,[442,671,672],{"class":492},"      \"pricing\"",[442,674,617],{"class":470},[442,676,677],{"class":492},"\"version\"",[442,679,496],{"class":470},[442,681,682],{"class":452},"\"deepseek-flash-2026-09-v1\"",[442,684,628],{"class":470},[442,686,687],{"class":492},"\"currency\"",[442,689,496],{"class":470},[442,691,692],{"class":452},"\"USD\"",[442,694,628],{"class":470},[442,696,697],{"class":492},"\"unit_tokens\"",[442,699,496],{"class":470},[442,701,580],{"class":463},[442,703,628],{"class":470},[442,705,706],{"class":492},"\"input_cache_hit\"",[442,708,496],{"class":470},[442,710,711],{"class":452},"\"0.010\"",[442,713,628],{"class":470},[442,715,716],{"class":492},"\"input\"",[442,718,496],{"class":470},[442,720,721],{"class":452},"\"0.400\"",[442,723,628],{"class":470},[442,725,726],{"class":492},"\"output\"",[442,728,496],{"class":470},[442,730,731],{"class":452},"\"1.600\"",[442,733,734],{"class":470}," }\n",[442,736,738],{"class":444,"line":737},14,[442,739,740],{"class":470},"    }\n",[442,742,744],{"class":444,"line":743},15,[442,745,746],{"class":470},"  ]\n",[442,748,750],{"class":444,"line":749},16,[442,751,752],{"class":470},"}\n",[58,754,755,756,628,759,628,762,765,766,769,770,772,773,777],{},"Each entry also carries the model's limits (",[62,757,758],{},"context_length",[62,760,761],{},"max_output_tokens",[62,763,764],{},"default_output_tokens","), its ",[62,767,768],{},"capabilities",", and its ",[62,771,279],{}," in USD per 1M tokens, so a tool can configure itself from the API. See the ",[352,774,776],{"href":775},"\u002Freference\u002Fmodels","List models reference"," for the full object.",[779,780,781],"style",{},"html pre.shiki code .sjwWW, html code.shiki .sjwWW{--shiki-default:#FFA657;--shiki-light:#953800}html pre.shiki code .sHdZ9, html code.shiki .sHdZ9{--shiki-default:#A5D6FF;--shiki-light:#0A3069}html pre.shiki code .s1PA9, html code.shiki .s1PA9{--shiki-default:#FF7B72;--shiki-light:#CF222E}html pre.shiki code .sYnYM, html code.shiki .sYnYM{--shiki-default:#79C0FF;--shiki-light:#0550AE}html pre.shiki code .sUq8j, html code.shiki .sUq8j{--shiki-default:#E6EDF3;--shiki-light:#1F2328}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html pre.shiki code .sGSaJ, html code.shiki .sGSaJ{--shiki-default:#7EE787;--shiki-light:#116329}",{"title":438,"searchDepth":505,"depth":505,"links":783},[784,785,786,787,788,789],{"id":64,"depth":460,"text":64},{"id":68,"depth":460,"text":68},{"id":279,"depth":460,"text":280},{"id":358,"depth":460,"text":359},{"id":385,"depth":460,"text":386},{"id":424,"depth":460,"text":425},"deepseek-flash (DeepSeek-V4.1-Flash) and deepseek-v4-pro (DeepSeek-V4-Pro) each have a 1M-token context window, up to 384K output tokens, and fixed per-token prices.","md",null,{},true,"\u002Fmodels",{"title":32,"description":790},"models","wDcMG7B49FYNwI_qUX_Fjo3aLZ0wz-wW4GfDsD2pj20",1793333617463]