Connect an application
Create an access key in API keys and store it in your application’s secret settings. Select an available model and follow the request examples in the API documentation.
Calculate usage costs
Input tokens cover the content sent to the model. Output tokens come from the response it generates. Multiply each token count by its price per million tokens, divide each result by one million, and add the two amounts. Rates can differ by model.
Review usage
The Usage page shows input tokens, output tokens, and charges for your account. For requests funded by vouchers, check the remaining allowance in Vouchers and promotions.