An AI API you pay for in Toman

For developers who do not want to deal with foreign cards and currency. An OpenAI-compatible address, a Toman wallet and a clear price for every model.

Service address

Any library or tool that supports OpenAI works with this address:

https://gateway.banafsh.com/v1

Quickstart

  1. Create a key.
  2. Top up your wallet.
  3. Send this request:
curl https://gateway.banafsh.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'

Put your own key in place of YOUR_API_KEY. Never post a key in public.

Topping up the wallet

You top up the wallet in Toman and each request is charged at that model's price. There is no monthly plan to buy.

Example prices, read live

An estimate for one short question and its answer, at today's rate. The exact price depends on length.

Common questions

What is the service address?

The address above. Set it as the base URL in your OpenAI library.

How do I pay in Toman?

You top up your wallet and the cost of each request is taken from it.

Which models can I use?

Every model listed with a price on the models page. Each model has its own id.

How much does a request cost?

It depends on the model and the length of the text. Each model's page shows its price per million input and output tokens.

Where do I create a key?

On the keys page after you sign in. A key is shown in full only once.