[{"data":1,"prerenderedAt":460},["ShallowReactive",2],{"navigation_docs":3,"-administration-budgets":160,"-administration-budgets-surround":455},[4,21,62,82,103,149],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":20},"Get Started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":16,"path":17,"stem":18,"icon":19},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F2.quickstart","i-lucide-play-circle",false,{"title":22,"icon":23,"path":24,"stem":25,"children":26,"page":20},"Gateway","i-lucide-network","\u002Fgateway","2.gateway",[27,32,37,42,47,52,57],{"title":28,"path":29,"stem":30,"icon":31},"Overview","\u002Fgateway\u002Foverview","2.gateway\u002F1.overview","i-lucide-waypoints",{"title":33,"path":34,"stem":35,"icon":36},"Models and Routing","\u002Fgateway\u002Fmodels-and-routing","2.gateway\u002F2.models-and-routing","i-lucide-brain",{"title":38,"path":39,"stem":40,"icon":41},"Smart Router","\u002Fgateway\u002Fsmart-routing","2.gateway\u002F3.smart-routing","i-lucide-route",{"title":43,"path":44,"stem":45,"icon":46},"Context Engine","\u002Fgateway\u002Fcontext-engine","2.gateway\u002F4.context-engine","i-product-context-engine",{"title":48,"path":49,"stem":50,"icon":51},"Data Integrations","\u002Fgateway\u002Fdata-integrations","2.gateway\u002F5.data-integrations","i-lucide-database",{"title":53,"path":54,"stem":55,"icon":56},"Tools","\u002Fgateway\u002Ftools","2.gateway\u002F6.tools","i-lucide-wrench",{"title":58,"path":59,"stem":60,"icon":61},"Guardrails","\u002Fgateway\u002Fguardrails","2.gateway\u002F7.guardrails","i-lucide-shield-alert",{"title":63,"icon":64,"path":65,"stem":66,"children":67,"page":20},"Compliance","i-lucide-shield-check","\u002Fcompliance","3.compliance",[68,72,77],{"title":69,"path":70,"stem":71,"icon":64},"Data Governance","\u002Fcompliance\u002Fdata-governance","3.compliance\u002F01.data-governance",{"title":73,"path":74,"stem":75,"icon":76},"Network Access","\u002Fcompliance\u002Fnetwork-access","3.compliance\u002F02.network-access","i-lucide-lock",{"title":78,"path":79,"stem":80,"icon":81},"Audit Logs","\u002Fcompliance\u002Faudit-logs","3.compliance\u002F03.audit-logs","i-lucide-scroll-text",{"title":83,"icon":84,"path":85,"stem":86,"children":87,"page":20},"Observability","i-lucide-eye","\u002Fobservability","4.observability",[88,93,98],{"title":89,"path":90,"stem":91,"icon":92},"Organization","\u002Fobservability\u002Forganization","4.observability\u002F1.organization","i-lucide-building-2",{"title":94,"path":95,"stem":96,"icon":97},"Application","\u002Fobservability\u002Fapplication","4.observability\u002F2.application","i-lucide-activity",{"title":99,"path":100,"stem":101,"icon":102},"Metrics","\u002Fobservability\u002Fmetrics","4.observability\u002F3.metrics","i-lucide-bar-chart-2",{"title":104,"icon":105,"path":106,"stem":107,"children":108,"page":20},"Administration","i-lucide-settings","\u002Fadministration","5.administration",[109,114,119,129,144],{"title":110,"path":111,"stem":112,"icon":113},"Organization and Projects","\u002Fadministration\u002Forganizations-and-projects","5.administration\u002F1.organizations-and-projects","i-lucide-box",{"title":115,"path":116,"stem":117,"icon":118},"Members and Access","\u002Fadministration\u002Fmembers-and-access","5.administration\u002F2.members-and-access","i-lucide-shield-user",{"title":120,"path":121,"stem":122,"children":123,"icon":76},"Authentication","\u002Fadministration\u002Fauthentication","5.administration\u002F3.authentication",[124],{"title":125,"path":126,"stem":127,"icon":128},"Connect Model APIs","\u002Fadministration\u002Fauthentication\u002Fconnect-model-apis","5.administration\u002F3.authentication\u002F31.connect-model-apis","i-lucide-cpu",{"title":130,"path":131,"stem":132,"children":133,"icon":143},"Connections","\u002Fadministration\u002Fconnections","5.administration\u002F4.connections",[134,139],{"title":135,"path":136,"stem":137,"icon":138},"Connect MCP Servers","\u002Fadministration\u002Fconnections\u002Fmcp-connections","5.administration\u002F4.connections\u002F42.mcp-connections","i-lucide-plug",{"title":140,"path":141,"stem":142,"icon":51},"Connect Data Sources","\u002Fadministration\u002Fconnections\u002Fdata-sources-connections","5.administration\u002F4.connections\u002F43.data-sources-connections","i-lucide-link",{"title":145,"path":146,"stem":147,"icon":148},"Budgets","\u002Fadministration\u002Fbudgets","5.administration\u002F5.budgets","i-lucide-wallet",{"title":150,"icon":151,"path":152,"stem":153,"children":154,"page":20},"Reference","i-lucide-book-open","\u002Freference","6.reference",[155],{"title":156,"path":157,"stem":158,"icon":159},"Using the API","\u002Freference\u002Fapi-usage","6.reference\u002F1.api-usage","i-lucide-terminal-square",{"id":161,"title":145,"body":162,"description":448,"extension":449,"links":450,"meta":451,"navigation":452,"path":146,"seo":453,"stem":147,"__hash__":454},"docs\u002F5.administration\u002F5.budgets.md",{"type":163,"value":164,"toc":432},"minimark",[165,169,175,180,183,187,227,234,239,248,253,267,271,281,287,301,305,309,333,337,375,379,411,415],[166,167,168],"p",{},"Budgets set USD limits on API spend over a daily, weekly, or monthly period. Choose whether a budget only tracks spend or blocks new Gateway requests when its limit is reached.",[170,171,174],"who-panel",{":applies-to":172,":roles":173},"[\"LLM requests\"]","[\"Organization Admin\", \"Workspace Admin\", \"Project Admin\", \"App Admin\"]","Organization Admins manage organization budgets. Workspace Admins, Project Admins, and App Admins can manage budgets for applications they can update.",[176,177,179],"h2",{"id":178},"why-use-it","Why use it",[166,181,182],{},"Set a spending boundary at the level that owns the traffic. Organization budgets apply across the organization; application budgets can add tighter limits for one application or its API keys.",[176,184,186],{"id":185},"how-it-works","How it works",[166,188,189,190,194,195,194,198,194,201,204,205,208,209,211,212,214,215,218,219,222,223,226],{},"A budget combines a ",[191,192,193],"strong",{},"Scope",", a ",[191,196,197],{},"Limit per",[191,199,200],{},"Period",[191,202,203],{},"USD amount",", and an ",[191,206,207],{},"action",". Scope selects which requests the budget covers. ",[191,210,197],{}," determines whether one amount is shared across the scope or each project, application, or API key gets its own amount. ",[191,213,200],{}," sets how often the amount resets: ",[191,216,217],{},"Daily",", ",[191,220,221],{},"Weekly",", or ",[191,224,225],{},"Monthly",".",[166,228,229,230,233],{},"Budget spend is based on priced API request usage. See ",[231,232,99],"a",{"href":100}," for how Optiak calculates cost.",[235,236,238],"h3",{"id":237},"scopes","Scopes",[166,240,241,242,244,245,247],{},"A budget makes two distinct choices: ",[191,243,193],{}," selects the requests to count, and ",[191,246,197],{}," determines how the amount is shared across that scope.",[249,250],"hierarchy-diagram",{":branches":251,":root":252},"[{\"title\":\"Scope\",\"description\":\"Which requests count toward the budget?\",\"icon\":\"i-lucide-filter\",\"children\":[{\"title\":\"Organization\",\"description\":\"All organization requests.\",\"icon\":\"i-lucide-building-2\"},{\"title\":\"Projects\",\"description\":\"Requests from selected projects.\",\"icon\":\"i-lucide-boxes\"},{\"title\":\"Applications\",\"description\":\"Requests from selected applications.\",\"icon\":\"i-lucide-box\"},{\"title\":\"API keys\",\"description\":\"Requests from selected keys.\",\"icon\":\"i-lucide-key-round\"}]},{\"title\":\"Limit per\",\"description\":\"How is the amount divided within the scope?\",\"icon\":\"i-lucide-split\",\"children\":[{\"title\":\"Organization\",\"icon\":\"i-lucide-building-2\",\"description\":\"One shared limit.\"},{\"title\":\"Project, application, or API key\",\"icon\":\"i-lucide-shapes\",\"description\":\"A separate limit for each entity.\"}]}]","{\"title\":\"Budget\",\"description\":\"A USD limit, period, and action for API spend.\",\"icon\":\"i-lucide-wallet\"}",[166,254,255,256,258,259,261,262,258,264,266],{},"For example, an organization-scoped budget with ",[191,257,197],{}," set to ",[191,260,94],{}," gives each application its own cap. An organization-scoped budget with ",[191,263,197],{},[191,265,89],{}," creates one shared cap for all organization traffic.",[235,268,270],{"id":269},"track-and-block","Track and block",[166,272,273,276,277,280],{},[191,274,275],{},"Track only"," records spend against the limit. It does not block requests or send an alert. ",[191,278,279],{},"Block requests"," rejects new requests after spend reaches the limit.",[166,282,283,284,286],{},"Every applicable budget with ",[191,285,279],{}," is checked. If any one is exhausted, the Gateway rejects the request; a looser budget does not override a stricter one.",[166,288,289,290,292,293,297,298,226],{},"For Chat Completions and Responses, the Gateway checks budgets after authentication and before planning. If any applicable ",[191,291,279],{}," budget is exhausted, it rejects the request with HTTP ",[294,295,296],"code",{},"403"," and error type ",[294,299,300],{},"budget_limit_exceeded",[176,302,304],{"id":303},"set-it-up","Set it up",[235,306,308],{"id":307},"organization-budgets","Organization budgets",[166,310,311,312,315,316,318,319,321,322,194,324,326,327,329,330,332],{},"In the console, open ",[191,313,314],{},"Company setup"," → ",[191,317,145],{},". Organization Admins can set the ",[191,320,193],{}," to the organization, selected projects, or selected applications. Choose ",[191,323,197],{},[191,325,200],{},", enter the USD limit, and select ",[191,328,275],{}," or ",[191,331,279],{},". The organization form does not list individual API keys; create organization budgets scoped to specific keys through the API. To cap keys within one application instead, use the Application budget where it belongs.",[235,334,336],{"id":335},"application-budgets","Application budgets",[166,338,339,340,315,343,345,346,348,349,352,353,355,356,348,358,360,361,364,365,367,368,218,370,222,372,374],{},"In the application, open ",[191,341,342],{},"Configuration",[191,344,145],{},". Users with permission to update the application can set ",[191,347,193],{}," to ",[191,350,351],{},"This application"," or select specific API keys. For ",[191,354,351],{},", set ",[191,357,197],{},[191,359,94],{}," for one shared cap or ",[191,362,363],{},"API key"," for a separate cap on each current and future key. When you select specific keys, each selected key gets its own cap. Choose a ",[191,366,200],{}," of ",[191,369,217],{},[191,371,221],{},[191,373,225],{}," for the budget. Application budgets can add stricter limits, but they cannot loosen an organization budget that also applies.",[176,376,378],{"id":377},"limits-and-behavior","Limits and behavior",[380,381,382,386,389,399,402,405,408],"ul",{},[383,384,385],"li",{},"Budgets reset in UTC: daily budgets reset at the start of each day, weekly budgets reset on Monday, and monthly budgets reset on the first day of the month.",[383,387,388],{},"The organization and each application can each have up to 100 budgets.",[383,390,391,392,218,394,222,396,398],{},"After creation, you cannot change a budget's ",[191,393,193],{},[191,395,197],{},[191,397,200],{}," in the console. Create a new budget with the desired settings, then delete the old one when it is no longer needed.",[383,400,401],{},"Enter a positive USD limit with up to two decimal places.",[383,403,404],{},"Requests already in progress finish, so concurrent traffic can exceed the limit.",[383,406,407],{},"Spend counting is best-effort. If the counter store cannot be read, the Gateway allows the request; if a spend write fails, the counter may not include that attempt.",[383,409,410],{},"Budgets apply to Gateway API requests, not MCP Gateway tool calls.",[176,412,414],{"id":413},"related","Related",[380,416,417,422,427],{},[383,418,419,421],{},[231,420,99],{"href":100},": how Optiak calculates and reports cost.",[383,423,424,426],{},[231,425,110],{"href":111},": manage projects and applications.",[383,428,429,431],{},[231,430,120],{"href":121},": create and manage Application API keys.",{"title":433,"searchDepth":434,"depth":434,"links":435},"",2,[436,437,442,446,447],{"id":178,"depth":434,"text":179},{"id":185,"depth":434,"text":186,"children":438},[439,441],{"id":237,"depth":440,"text":238},3,{"id":269,"depth":440,"text":270},{"id":303,"depth":434,"text":304,"children":443},[444,445],{"id":307,"depth":440,"text":308},{"id":335,"depth":440,"text":336},{"id":377,"depth":434,"text":378},{"id":413,"depth":434,"text":414},"Set daily, weekly, or monthly API spend limits for your organization, projects, applications, and API keys.","md",null,{},{"icon":148},{"title":145,"description":448},"HG9Scx45LXtYoeNlR7sWEI6IAKB-CurmO2Y6BACtJFA",[456,458],{"title":140,"path":141,"stem":142,"description":457,"icon":51,"children":-1},"Manage source access and file uploads for organization Data Integrations.",{"title":156,"path":157,"stem":158,"description":459,"icon":159,"children":-1},"How to call Optiak from your application.",1795006122940]