Request regarding detailed costs for API use

Hi to all, doing great job with the API!!!

I now want to clarify the actual exact cost structure, because I want to implement this in my script.

I have seen the following:

Model Price per 1000 requests Price per 1M tokens
llama-3.1-sonar-small-128k-online $5 $0.2
llama-3.1-sonar-large-128k-online $5 $1
llama-3.1-sonar-huge-128k-online $5 $5

But how would a concrete example work?

Lets say one api request and the answer needs 790 token. How is it exactly being calculated?

Many thanks
Frank

Hi, this refers to an old model that has been deprecated. Thanks!