{"id":26852,"date":"2026-11-12T18:41:12","date_gmt":"2026-11-12T11:41:12","guid":{"rendered":"https:\/\/itnews.blogdee.com\/?p=26852"},"modified":"2026-11-12T18:41:12","modified_gmt":"2026-11-12T11:41:12","slug":"%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-self-service-llm-gateway-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-amazon-bedrock-%e0%b9%81%e0%b8%a5%e0%b8%b0-litellm","status":"publish","type":"post","link":"https:\/\/itnews.blogdee.com\/?p=26852","title":{"rendered":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Self-Service LLM Gateway \u0e14\u0e49\u0e27\u0e22 Amazon Bedrock \u0e41\u0e25\u0e30 LiteLLM"},"content":{"rendered":"<p>\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 AI coding assistants \u0e42\u0e14\u0e22\u0e21\u0e35\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e19\u0e49\u0e2d\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14 \u0e17\u0e35\u0e21\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e17\u0e31\u0e49\u0e07 latency \u0e41\u0e25\u0e30 error \u0e44\u0e14\u0e49 \u0e02\u0e13\u0e30\u0e17\u0e35\u0e48\u0e17\u0e35\u0e21\u0e01\u0e32\u0e23\u0e40\u0e07\u0e34\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e49\u0e19\u0e17\u0e38\u0e19\u0e01\u0e32\u0e23\u0e2d\u0e19\u0e38\u0e21\u0e32\u0e19 (inference costs) \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a\u0e17\u0e35\u0e21\u0e41\u0e25\u0e30\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e01\u0e15\u0e4c\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19<\/p>\n<p>\u0e2b\u0e32\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e43\u0e19\u0e23\u0e30\u0e14\u0e31\u0e1a Production \u0e04\u0e27\u0e23\u0e1e\u0e34\u0e08\u0e32\u0e23\u0e13\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21 Amazon Bedrock Guardrails \u0e40\u0e0a\u0e48\u0e19 content filtering \u0e41\u0e25\u0e30 grounding \u0e01\u0e48\u0e2d\u0e19\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07<\/p>\n<h2 id=\"Prerequisites\">\u0e02\u0e49\u0e2d\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19<\/h2>\n<p>LiteLLM Enterprise \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e17\u0e35\u0e48\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e21\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Production \u0e0b\u0e36\u0e48\u0e07\u0e23\u0e27\u0e21\u0e16\u0e36\u0e07 gateway \u0e41\u0e1a\u0e1a open source \u0e40\u0e02\u0e49\u0e32\u0e01\u0e31\u0e1a single sign-on, audit logs, delegated admin roles \u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19<\/p>\n<h2 id=\"Implementing cost controls\">\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e04\u0e48\u0e32\u0e43\u0e0a\u0e49\u0e08\u0e48\u0e32\u0e22<\/h2>\n<p>\u0e01\u0e32\u0e23\u0e08\u0e33\u0e01\u0e31\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e08\u0e48\u0e32\u0e22\u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e44\u0e27\u0e49\u0e43\u0e19 Step 2 (max_budget: 250, budget_duration: 7d) \u0e08\u0e30\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a\u0e43\u0e0a\u0e49\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 7 \u0e27\u0e31\u0e19\u0e41\u0e1a\u0e1a rolling \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e25\u0e30 API key \u0e2b\u0e32\u0e01\u0e21\u0e35\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 model_info costs \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e25\u0e30\u0e42\u0e21\u0e40\u0e14\u0e25<\/p>\n<h3 id=\"Developer self-service portal\">\u0e1e\u0e2d\u0e23\u0e4c\u0e17\u0e31\u0e25\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e15\u0e19\u0e40\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32<\/h3>\n<p>\u0e01\u0e32\u0e23\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e02\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30 \/chat\/completions \u0e08\u0e30\u0e21\u0e35 header \u0e40\u0e0a\u0e48\u0e19 x-litellm-key-remaining-requests-{model} \u0e0b\u0e36\u0e48\u0e07\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e2b\u0e47\u0e19 RPM \u0e41\u0e25\u0e30 TPM \u0e17\u0e35\u0e48\u0e40\u0e2b\u0e25\u0e37\u0e2d\u0e2d\u0e22\u0e39\u0e48\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e42\u0e21\u0e40\u0e14\u0e25\u0e19\u0e31\u0e49\u0e19\u0e46 \u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07<\/p>\n<h3 id=\"Operational lessons\">\u0e1a\u0e17\u0e40\u0e23\u0e35\u0e22\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e07\u0e32\u0e19<\/h3>\n<p>\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e19\u0e35\u0e49 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 load balancer idle timeouts \u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22 900 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 \u0e41\u0e25\u0e30\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 timeout \u0e02\u0e2d\u0e07 LiteLLM \u0e43\u0e2b\u0e49\u0e2a\u0e2d\u0e14\u0e04\u0e25\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19 \u0e42\u0e14\u0e22\u0e04\u0e27\u0e23\u0e41\u0e22\u0e01\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e17\u0e23\u0e32\u0e1f\u0e1f\u0e34\u0e01\u0e02\u0e2d\u0e07\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32<\/p>\n<p>\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a CI\/CD pipelines \u0e41\u0e25\u0e30 automated code review tools \u0e04\u0e27\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49 Amazon Bedrock \u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e1a inference profiles \u0e41\u0e25\u0e30 quotas \u0e02\u0e2d\u0e07\u0e15\u0e19\u0e40\u0e2d\u0e07<\/p>\n<h3>\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e17\u0e35\u0e48\u0e04\u0e27\u0e23\u0e23\u0e39\u0e49<\/h3>\n<ul>\n<li>LiteLLM &#8211; \u0e40\u0e1b\u0e47\u0e19 gateway \u0e17\u0e35\u0e48\u0e21\u0e35\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27\u0e41\u0e25\u0e30\u0e16\u0e39\u0e01\u0e19\u0e33\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19 Enterprise \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Production Amazon Bedrock &#8211; \u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07 AWS \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e42\u0e21\u0e40\u0e14\u0e25 AI \u0e41\u0e25\u0e30\u0e23\u0e31\u0e01\u0e29\u0e32\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 Inference costs &#8211; \u0e04\u0e37\u0e2d\u0e15\u0e49\u0e19\u0e17\u0e38\u0e19\u0e17\u0e35\u0e48\u0e40\u0e01\u0e34\u0e14\u0e02\u0e36\u0e49\u0e19\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e42\u0e21\u0e40\u0e14\u0e25 AI \u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e19\u0e38\u0e21\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e04\u0e33\u0e02\u0e2d Rolling 7-day window &#8211; \u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e19\u0e31\u0e1a\u0e0a\u0e48\u0e27\u0e07\u0e40\u0e27\u0e25\u0e32 7 \u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e40\u0e04\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e08\u0e33\u0e01\u0e31\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e08\u0e48\u0e32\u0e22 RPM \u0e41\u0e25\u0e30 TPM &#8211; \u0e04\u0e37\u0e2d\u0e2d\u0e31\u0e15\u0e23\u0e32\u0e15\u0e48\u0e2d\u0e19\u0e32\u0e17\u0e35 (Requests Per Minute \u0e41\u0e25\u0e30 Tokens Per Minute) \u0e17\u0e35\u0e48\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49<\/li>\n<\/ul>\n<p>\u0e17\u0e35\u0e48\u0e21\u0e32: <a href=\"https:\/\/aws.amazon.com\/blogs\/machine-learning\/building-a-self-service-llm-gateway-with-amazon-bedrock-and-litellm\/\" target=\"_blank\" rel=\"noopener nofollow\">AWS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e16\u0e36\u0e07\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e15\u0e39\u0e17\u0e32\u0e07\u0e40\u0e02\u0e49\u0e32 (gateway) \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e42\u0e21\u0e40\u0e14\u0e25\u0e20\u0e32\u0e29\u0e32\u0e02\u0e19\u0e32\u0e14\u0e43\u0e2b\u0e0d\u0e48 (LLM) \u0e41\u0e1a\u0e1a\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e15\u0e19\u0e40\u0e2d\u0e07 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 LiteLLM \u0e41\u0e25\u0e30 Amazon Bedrock\u2026<\/p>\n","protected":false},"author":1,"featured_media":26851,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[4234,54,2564,88],"class_list":["post-26852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing","tag-amazon-bedrock","tag-cloud","tag-litellm","tag-llm"],"_links":{"self":[{"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/posts\/26852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26852"}],"version-history":[{"count":0,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/posts\/26852\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=\/wp\/v2\/media\/26851"}],"wp:attachment":[{"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnews.blogdee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}