---
title: "Comment by Alan Carlos on \"Building a Serverless Chat App with Contextual Note Integration Featuring Amazon Bedrock, the OpenAI API, and SST\" | Hashnode"
description: "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?"
url: "https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b/comment/6692ce8164f6303584e8b7bf"
---

[Discussion](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b)

Comment [Building a Serverless Chat App with Contextual Note Integration Featuring Amazon Bedrock, the OpenAI API, and SST](https://hashnode.com/posts/amazon-bedrock-the-openai-api-and-sst/662217ab9fafe7b2a8c31b7b)

[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.
