Skip to main content
Version: Next

Pricing

This extension has no cost, it's provided for free. However, the pricing for this bot is going to be consumption based with Open AI and Google, and can be quite complex, where the more you use it, the more it costs. However, you can expect that with reasonable usage it’s not going to exceed $20 a month, streamers are doing 100’s of queries a month and it doesn't cost that much. There are two basic fees for each question asked. First the fees from OpenAI and then the fees from Google Cloud for the TTS.

OpenAI

https://openai.com/pricing

OpenAI bills on tokens at different price points and depends on context. Prices are per 1,000 tokens. You can think of tokens as pieces of words, where 1,000 tokens are about 750 words. This paragraph is 35 tokens. Now that we know what a token is, you are charged based on the length of the input and the length of the output per query.

InputOutput
4K context$0.0015 / 1K tokens$0.002 / 1K tokens
16K context$0.003 / 1K tokens$0.004 / 1K tokens

The context is how many tokens of information you feed into the query before you ask the actual prompt, it’s charged in batches of either 4,000 tokens or 16,000 tokens. For the Google Text-to-Speech API it depends on which voice you choose and how capable it is. There is an amount that you can use for free before it starts billing. The cost is either provided per character, or per byte which is generally the same as 1 character.

Google

https://cloud.google.com/text-to-speech/pricing

Google gives you $300 in credit for the first 90 days to try out their text-to-speech service. After which they charge the following rates for all the text that is converted to speech for your stream:

Voice TypePricing
Neural2 voices US$0.000016 per byte (US$16 per 1 million bytes)
Polyglot (Preview) voices US$0.000016 per byte (US$16 per 1 million bytes)
Studio (Preview) voices US$0.00016 per byte (US$160 per 1 million bytes)
Standard voices USI$0.000004 per character (US$4 per 1 million characters)
WaveNet voices US$0.000016 per character (US$16 per 1 million characters)

As you can see, we are paying just pennies for the typical GPT transaction. The best advice is to kind of understand it’s not going to be super expensive, deploy it, and see how much it uses with your stream for a day and extrapolate that. You can then adjust the pricing on redemptions until the usage is within line of what you want to spend. Just increase the cost until it slows down. You can also implement cooldowns to make sure they are not overused or abused.