"use strict";(self.webpackChunkworkshop=self.webpackChunkworkshop||[]).push([[865],{6745:(e,n,i)=>{i.d(n,{A:()=>s});const s=i.p+"assets/images/ai-gateway-2de5a7f678e06b3d7e0fbd62f8219972.gif"},7457:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"define/introduction","title":"Introduction","description":"Businesses are building applications that rely heavily on Artificial Intelligence (AI) to deliver advanced functionalities. They may include:","source":"@site/docs/define/introduction.md","sourceDirName":"define","slug":"/define/introduction","permalink":"/docs/define/introduction","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"Define","permalink":"/docs/category/define"},"next":{"title":"Prerequisites","permalink":"/docs/define/prerequisites"}}');var t=i(4848),a=i(8453);const r={},o="Introduction",l={},c=[{value:"Risks of Unmanaged APIs in AI Applications",id:"risks-of-unmanaged-apis-in-ai-applications",level:2},{value:"AI Gateway in Azure API Management",id:"ai-gateway-in-azure-api-management",level:2}];function d(e){const n={h1:"h1",h2:"h2",header:"header",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"introduction",children:"Introduction"})}),"\n",(0,t.jsx)(n.p,{children:"Businesses are building applications that rely heavily on Artificial Intelligence (AI) to deliver advanced functionalities. They may include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Conversational Agents:"})," Applications like chatbots and virtual assistants that interact with users in natural language."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Chat on Your Data:"})," Apps that allow users to query and interact with their own data using AI."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Voice Assistants:"})," AI-powered tools that enable voice-based interactions."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Personalized Content:"})," Applications that generate tailored recommendations or content for users."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Content Generation:"})," Tools that use AI to  create content such as text, images, or videos."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Your Own Copilot:"})," Custom AI assistants designed to enhance productivity and automate tasks."]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"While AI-powered applications offer immense potential, they also introduce several challenges and risks that organizations must address to ensure success. These risks stem from the complexity of managing interactions with AI services, especially when APIs are left unmanaged."}),"\n",(0,t.jsx)(n.h2,{id:"risks-of-unmanaged-apis-in-ai-applications",children:"Risks of Unmanaged APIs in AI Applications"}),"\n",(0,t.jsx)(n.p,{children:"Unmanaged APIs can pose significant risks in the era of AI."}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Unpredictable Costs"}),": Without proper monitoring and control, API usage can lead to unexpected expenses, especially when dealing with high-volume AI requests."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Reliability Concerns"}),": Unmanaged APIs may lack redundancy and failover mechanisms, leading to inconsistent performance and downtime."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Security Risks"}),": AI APIs that are not secured properly can be exploited leading to misuse of sensitive data."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Governance Challenges"}),": Without a  centralized management blueprint, enforcing policies, monitoring AI Service usage, and maintaining audit logs becomes difficult."]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"These challenges can hinder the scalability, security, and cost-efficiency of AI applications, making it essential to adopt a robust solution for API management."}),"\n",(0,t.jsx)(n.h2,{id:"ai-gateway-in-azure-api-management",children:"AI Gateway in Azure API Management"}),"\n",(0,t.jsx)(n.p,{children:"This is where the AI Gateway comes into play. Acting as a centralized hub, the gateway simplifies the integration of AI services into applications. It ensures secure, efficient, and optimized communication between Intelligent Apps and AI Services while providing essential features like security, observability, and load balancing."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Azure API Management AI Gateway",src:i(6745).A+"",width:"1265",height:"387"})}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Cost Efficiency"}),":"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Control and attribute costs with token monitoring, limits, and quotas."}),"\n",(0,t.jsx)(n.li,{children:"Optimize responses by caching results for semantically similar prompts."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"High Reliability"}),":"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Enable geo-redundancy and automatic failovers."}),"\n",(0,t.jsx)(n.li,{children:"Use load balancing and circuit breakers to ensure consistent performance."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Robust Security"}),":"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Isolate and manage user credentials securely."}),"\n",(0,t.jsx)(n.li,{children:"Leverage built-in controls and Microsoft Defender for Cloud to protect APIs."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Developer Enablement"}),":"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Replace custom backend code with built-in policies for faster development."}),"\n",(0,t.jsx)(n.li,{children:"Publish AI APIs for consumption and gain insights with comprehensive logs."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Enhanced Governance"}),":"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Enforce runtime policies to maintain compliance."}),"\n",(0,t.jsx)(n.li,{children:"Centralize monitoring and audit logs for better visibility and control."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"By leveraging Azure API Management, developers can focus on building innovative AI-powered solutions without worrying about the complexities of managing multiple AI services. The AI Gateway bridges the gap, enabling seamless and scalable interactions in a rapidly evolving AI ecosystem."}),"\n",(0,t.jsx)(n.p,{children:"Watch the video below to learn more:"}),"\n",(0,t.jsx)("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/-6pq-r7AUe4?si=0oagnD8CIEgdLHg8",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:!0})]})}function h(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>o});var s=i(6540);const t={},a=s.createContext(t);function r(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]);