[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-dynamic-bedrock-svls-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":53,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Fdynamic-bedrock-svls-sam.json","Dynamic Amazon Bedrock model selection with Amazon API Gateway",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fabha-tripathi.json","content\u002Fcontributors\u002Fsushir-v-r.json",{"text":14},[15],"sam deploy --guided","Generates image or text responses using Amazon Bedrock models with API Gateway and Lambda integrations","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamic-bedrock-svls-sam","serverless-patterns\u002Fdynamic-bedrock-svls-sam","dynamic-bedrock-svls-sam","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern creates a REST API that has \u003Ccode>\u002Fimage\u003C\u002Fcode> and \u003Ccode>\u002Ftext\u003C\u002Fcode> resources. Both resources integrate with a Lambda function over proxy integration.","The \u003Ccode>\u002Fimage\u003C\u002Fcode> POST endpoint generates an image using StabilityAI Stable Diffusion XL model.","The \u003Ccode>\u002Ftext\u002F{model}\u003C\u002Fcode> POST method with the required prompt generates a text output using various Bedrock models offered by Anthropic, AI21 labs.","Python","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"bedrock","Amazon Bedrock",{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":50},"icon3",{"bullets":54},[55],{"text":46,"link":56},"https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Famazon-bedrock-is-now-generally-available-build-and-scale-generative-ai-applications-with-foundation-models\u002F","patterns\u002Fdynamic-bedrock-svls-sam",{"text":59},[60],"See the GitHub repo for detailed testing instructions.","yHTBvv9l4hjPTbXckL28MNkpALb57Ov2GjQgM-XAgGU",1778846884064]