- HeyCloud
- Posts
- 🎁 We massively reduced our OpenAI bill with this trick
🎁 We massively reduced our OpenAI bill with this trick
This weekend, I am not sending you an article but just a little insight to reduce your OpenAI bill if you are using JSON data. This is what we did at HeyCloud and allowed us to significantly reduce our bill.
🎁 We massively reduced our OpenAI bill with this trick
This week is quite exceptional. With the release of both Gemini 1.5 and Sora, there are a lot of breakthroughs that I need to dig deeper into and write about in next articles.
So this weekend, I am not sending you an article but just a little insight to reduce your OpenAI bill if you are using JSON data. This is what we did at HeyCloud and allowed us to significantly reduce our bill.
If your prompt contain JSON data that you read from DB etc, do:
data = json.dumps(data, default=json_util.default, separators=(',' , ':'))
This will minify your json data reducing 30%-50% tokens
If you find this useful, please share it with a friend.
If you are that friend, please subscribe to our newsletter here: https://heycloud.beehiiv.com/
If you are looking for RAG services to help you build your own RAG, please get in touch with us at: [email protected]
and if you are looking for an assistant to go faster on AWS, consider trying: https://www.heycloud.ai/
Have a great weekend everyone!