Seeing what a message will cost before you send it in the Playground

All in One AIPlayground & Text Models·· 6 views· 3 min read

In the Playground, under your message, the cost shows before you click Send. It changes as you type, and when you change the model or the maximum tokens. After the answer, it shows the real cost and your balance.

How it is worked out

Part How it is counted
Input About one token per 3 characters, from your message and the conversation so far.
Output The "Maximum tokens in the reply", or 4,096 if you leave it empty (No limit). Never more than the model's maximum output.
Price The model's, shown under it: "Price: X input and Y output, per 1 million tokens."

The messages you see

Message When
"Maximum cost of this request: ..." You typed a maximum number of tokens. It is the ceiling of what you can pay.
"Estimated cost of this request: ... no limit" You left the maximum empty. The sum uses 4,096 output tokens.
"Real cost: X. Balance: Y." After the answer: what you actually paid and the balance left.

In the first two cases, at the end you only pay for what the model used. The real cost is usually below the estimate.

To bring the cost down

1 Type a "Maximum tokens in the reply" that fits what you need.
2 Start a New conversation when the subject changes: the old conversation no longer weighs on the input.
3 Try a cheaper model.
4 To see the screen working without spending, choose Sandbox (free): the answer is a test one and the model is not called.

Compare, images, video and voice

In Compare models, the cost is added up: "Estimated cost of the N requests, added up". In Image, Video and Voice you see the "Expected cost", which is reserved when generating: at the end you pay the real cost and get the difference back.

If your balance is not enough, you see "This request holds X credits and your account has Y. Buy credits and try again." Nothing is charged. See the 402 insufficient_credits error.

See the cost before you send in the Playground.

See All in One AI

SEE ALSO

Chatting with a text model in the Playground before you use the API

What a chat request costs through the API: the reservation, max_tokens and the final adjustment

Cheap or strong text model: comparing the price per million tokens

The 402 insufficient_credits error: what required and balance mean, and how to fix it

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.