[{"data":1,"prerenderedAt":346},["ShallowReactive",2],{"docs-nav-titles":3,"page-docs_en-\u002Freference":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":54,"body":55,"description":336,"extension":337,"eyebrow":338,"meta":339,"navTitle":22,"navigation":340,"path":341,"seo":342,"stem":343,"updatedAt":344,"__hash__":345},"docs_en\u002Freference\u002Findex.md","API reference",{"type":56,"value":57,"toc":328},"minimark",[58,67,72,82,97,100,103,110,118,122,125,129,146,237,242,249,252,258,262,306,310,324],[59,60,61,62,66],"p",{},"The public API follows the OpenAI Chat Completions format, so the official OpenAI SDKs and most OpenAI-compatible clients work unchanged. It also serves the Anthropic Messages format at ",[63,64,65],"code",{},"POST \u002Fv1\u002Fmessages",", for Claude Code and the Anthropic SDKs.",[68,69,71],"h2",{"id":70},"base-url","Base URL",[73,74,80],"pre",{"className":75,"code":77,"language":78,"meta":79},[76],"language-text","https:\u002F\u002Fapi.larasrouter.com\u002Fv1\n","text","",[63,81,77],{"__ignoreMap":79},[59,83,84,85,88,89,92,93,96],{},"All requests use HTTPS. Request and response bodies are JSON (",[63,86,87],{},"application\u002Fjson","); streamed responses use Server-Sent Events (",[63,90,91],{},"text\u002Fevent-stream","). Large prompts are supported up to the request size limit; a larger body is rejected with ",[63,94,95],{},"413 request_too_large",".",[68,98,5],{"id":99},"authentication",[59,101,102],{},"Send your API key in either header:",[73,104,108],{"className":105,"code":106,"filename":107,"language":78,"meta":79},[76],"Authorization: Bearer lr_live_…\nx-api-key: lr_live_…\n","Headers",[63,109,106],{"__ignoreMap":79},[59,111,112,113,117],{},"See ",[114,115,5],"a",{"href":116},"\u002Fauthentication"," for key management.",[68,119,121],{"id":120},"endpoints","Endpoints",[123,124],"api-operations",{},[68,126,128],{"id":127},"errors","Errors",[59,130,131,132,134,135,138,139,142,143,96],{},"Every error uses the OpenAI error envelope, except those from ",[63,133,65],{},", which use the Anthropic envelope (see ",[114,136,35],{"href":137},"\u002Freference\u002Fmessages","). Branch on ",[63,140,141],{},"error.code",", never on the message text: the message is in English by default and in Bahasa Indonesia when the request carries ",[63,144,145],{},"Accept-Language: id",[73,147,152],{"className":148,"code":149,"filename":150,"language":151,"meta":79,"style":79},"language-json shiki shiki-themes laras-ink","{\n  \"error\": {\n    \"message\": \"Insufficient balance. Top up to continue.\",\n    \"type\": \"insufficient_quota\",\n    \"code\": \"insufficient_credit\",\n    \"param\": null\n  }\n}\n","Error response","json",[63,153,154,163,172,188,201,214,225,231],{"__ignoreMap":79},[155,156,159],"span",{"class":157,"line":158},"line",1,[155,160,162],{"class":161},"snt3o","{\n",[155,164,166,169],{"class":157,"line":165},2,[155,167,168],{"class":161},"  \"error\"",[155,170,171],{"class":161},": {\n",[155,173,175,178,181,185],{"class":157,"line":174},3,[155,176,177],{"class":161},"    \"message\"",[155,179,180],{"class":161},": ",[155,182,184],{"class":183},"sIGQv","\"Insufficient balance. Top up to continue.\"",[155,186,187],{"class":161},",\n",[155,189,191,194,196,199],{"class":157,"line":190},4,[155,192,193],{"class":161},"    \"type\"",[155,195,180],{"class":161},[155,197,198],{"class":183},"\"insufficient_quota\"",[155,200,187],{"class":161},[155,202,204,207,209,212],{"class":157,"line":203},5,[155,205,206],{"class":161},"    \"code\"",[155,208,180],{"class":161},[155,210,211],{"class":183},"\"insufficient_credit\"",[155,213,187],{"class":161},[155,215,217,220,222],{"class":157,"line":216},6,[155,218,219],{"class":161},"    \"param\"",[155,221,180],{"class":161},[155,223,224],{"class":183},"null\n",[155,226,228],{"class":157,"line":227},7,[155,229,230],{"class":161},"  }\n",[155,232,234],{"class":157,"line":233},8,[155,235,236],{"class":161},"}\n",[238,239],"api-fields",{"part":240},[241],"error",[59,243,244,245,248],{},"Besides the errors listed on each endpoint, any ",[63,246,247],{},"\u002Fv1"," path can return these gateway errors:",[250,251],"api-gateway-errors",{},[59,253,112,254,257],{},[114,255,8],{"href":256},"\u002Fguides\u002Ferrors"," for what to do about each code.",[68,259,261],{"id":260},"response-headers","Response headers",[263,264,265,278],"table",{},[266,267,268],"thead",{},[269,270,271,275],"tr",{},[272,273,274],"th",{},"Header",[272,276,277],{},"Description",[279,280,281,292],"tbody",{},[269,282,283,289],{},[284,285,286],"td",{},[63,287,288],{},"X-Laras-Request-ID",[284,290,291],{},"Billing identity of the request. Present on responses to requests that reached billing; quote it when you contact support about a charge.",[269,293,294,299],{},[284,295,296],{},[63,297,298],{},"Retry-After",[284,300,301,302,305],{},"On ",[63,303,304],{},"429"," responses: seconds to wait before retrying.",[68,307,309],{"id":308},"not-available-yet","Not available yet",[59,311,312,313,316,317,319,320,323],{},"The API serves ",[63,314,315],{},"POST \u002Fv1\u002Fchat\u002Fcompletions",", ",[63,318,65],{},", and ",[63,321,322],{},"GET \u002Fv1\u002Fmodels",". Other OpenAI endpoints — such as embeddings, images, audio, and the Responses API — are not available. The Responses API (used by Codex CLI) is in development.",[325,326,327],"style",{},"html pre.shiki code .snt3o, html code.shiki .snt3o{--shiki-default:#B4B8BF}html pre.shiki code .sIGQv, html code.shiki .sIGQv{--shiki-default:#F7F8F8}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);}",{"title":79,"searchDepth":174,"depth":174,"links":329},[330,331,332,333,334,335],{"id":70,"depth":165,"text":71},{"id":99,"depth":165,"text":5},{"id":120,"depth":165,"text":121},{"id":127,"depth":165,"text":128},{"id":260,"depth":165,"text":261},{"id":308,"depth":165,"text":309},"The public Laras Router API, generated from our OpenAPI contract. OpenAI-compatible, authenticated with an API key.","md",null,{},true,"\u002Freference",{"title":54,"description":336},"reference\u002Findex","2026-10-28","vNyryhpKlyswLaYoaEbwU14ziIl9jZPVxCD1ehVa-NM",1796424411580]