---
title: "Discussion on \"Building a Serverless Chat App with Contextual Note Integration Featuring Amazon Bedrock, the OpenAI API, and SST\" | Hashnode"
description: "Discussion on \"Building a Serverless Chat App with Contextual Note Integration Featuring Amazon Bedrock, the OpenAI API, and SST\". Learn to build a serverless chat app using Amazon Bedrock, OpenAI API, and SST, with a step-by-step guide on deployment and API integration"
url: "https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Serverless Chat App with Contextual Note Integration Featuring Amazon Bedrock, the OpenAI API, and SST](https://blog.awsfundamentals.com/amazon-bedrock-the-openai-api-and-sst?utm_source=hashnode&utm_medium=feed)

Learn to build a serverless chat app using Amazon Bedrock, OpenAI API, and SST, with a step-by-step guide on deployment and API integration

Apr 19, 2024 · 15 min read · blog.awsfundamentals.com  
Updated Sep 3, 2024  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#devops](https://hashnode.com/tag/devops)
-   [#openai](https://hashnode.com/tag/openai)
-   [#sst](https://hashnode.com/tag/sst)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#aws-bedrock](https://hashnode.com/tag/aws-bedrock)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#aws-dynamodb](https://hashnode.com/tag/aws-dynamodb)
-   [#iac](https://hashnode.com/tag/iac)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[Tobias Schmidt](https://hashnode.com/@tpschmidt)

@tpschmidt · Stuttgart, Germany

  
[View profile](https://hashnode.com/@tpschmidt)

Freelance Fullstack Software Engineer

Helping aspiring engineers master the cloud.

## Responses 3

Markdown supported · ⌘↵ to post

[Alan Carlos](https://hashnode.com/@alancarlosml)

[Jul 13, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/6692ce8164f6303584e8b7bf)

I can't understand why pay twice: one to use openai and another to bedrock. Why don't setup this code locally/common host and just call the openai API?

[Alan Carlos](https://hashnode.com/@alancarlosml)

[Jul 13, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/6692ce8164f6303584e8b7bf#reply-6692cea64503918fffbe1c5c)

I am really trying to understand this.

[Tobias Schmidt](https://hashnode.com/@tpschmidt)

[Jul 13, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/6692ce8164f6303584e8b7bf#reply-6692ddb0f80b6ec94ad8fcbd)

Hi Alan! With the AWS free tier, I’d argue that it’s basically impossible to get charged even $0.01 if it’s only used by yourself 😊 (except for the costs by the LLMs in/output tokens).

Also, it’s mainly a learning project. It should demonstrate how easily you could start building a chat bot that’s deployed in the cloud 📚

[Alan Carlos](https://hashnode.com/@alancarlosml)

[Jul 14, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/6692ce8164f6303584e8b7bf#reply-66931b403c847d0a02e041d4)

I see. Currently, I've built my chatbot (Flask + OpenAI API) to respond to users' questions about the company I work for. It's already functioning in a testing phase. I'm using RAG to analyze company documents. For each question/response, I'm averaging U$ 0.0006 using gpt3.5-turbo. I expect this application to handle around 20,000 interactions per month, costing approximately $12 per month. I believe this is a very low cost. Do you think using Bedrock could be cheaper? Oh, I forgot to congratulate you on the post.

[Sojin Samuel](https://hashnode.com/@sojin)

[May 15, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/66450c8a4962d83430e1f3b1)

I almost missed this awesome piece.toby when are you posting your next article, can i expect it before may 31st. by the way i came from X

[Emilla Filipowicz](https://hashnode.com/@emillafilipowicz)

[May 13, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/664299677174a03eb2ea909a)

Hi, l've got some exciting news for you, l can teach you how you can turn your $150 into a whopping $4,600 in just 2 hours! Without interrupting your daily activities or sending money to anyone TEXT ME IF YOU ARE INTERESTED FOR MORE INFORMATION: 👇 WhatsApp No:+1 (209)-207-5967‬ Text No:+1 (209)-207-5967

[Abdulhamid Sonaike](https://hashnode.com/@abdulk)

[Apr 19, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/66223a636ef9cd61ce0e545e)

High quality content put in here

[Tobias Schmidt](https://hashnode.com/@tpschmidt)

[Apr 19, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/66223a636ef9cd61ce0e545e#reply-66224dc89564fe281c6bdefe)

Thank you! 💛

[Sarfraz Ashrafi](https://hashnode.com/@MohammedSarfraz)

[Jul 24, 2024](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/66223a636ef9cd61ce0e545e#reply-66a1092b10b5c2854020c69d)

right
