On-demand price is $0.8 / million tokens.
Get more details

And use it in the following codes.

The rate limit for the Serverless Endpoints is 10 requests per minute across all models under Basic Plan. If you need a higher rate limit with SLA please upgrade to standard plan, or use dedicated deployment.