01Services02AI03Sectors04Servers05AI API06Contact
Discuss your project

Or on WhatsApp: +216 54 166 821

Guide

ChatGPT and AI APIs in Tunisia: how to pay in dinars

Plugging ChatGPT or another AI model into a site, an app or a chatbot is technically simple. The real obstacle in Tunisia is paying in dollars. Here are the options and what they cost.

By , senior full-stack developer, XAB Solutions · Updated November 3, 2026

In short

The AI APIs of the big model makers are usually paid in dollars with an international bank card, which blocks many businesses and developers in Tunisia. XAB AI offers an OpenAI-compatible API with GPT, Claude, Gemini, Qwen, DeepSeek, Llama and Mistral, prepaid in dinars by bank transfer or bank deposit, from 50 TND and from 0.500 TND per million tokens. Your OpenAI code works by changing the address, the key and the model name.

Why is paying for an AI API hard from Tunisia?

Model makers bill in dollars, by usage, and ask for a card accepted abroad.

  • You need an international card, often with a yearly foreign currency ceiling
  • The invoice comes in dollars, without Tunisian VAT, hard to book
  • Automatic charging can go past what you planned if an app runs away

For a business, these three points matter as much as the token price.

What is an OpenAI-compatible API?

An API that accepts exactly the same request format as OpenAI: same routes, same fields, same libraries.

To move from OpenAI to XAB AI you change three things: the address (https://cloud.khaledxab.com/v1), the key (xab-...) and the model name. Tools like n8n, LangChain, Flowise or Open WebUI accept a custom address.

One key gives access to 25 models, from the cheapest (Qwen, GPT-OSS, Llama) to the strongest (Claude, GPT-5, Gemini Pro), plus embeddings to search your documents.

A question about your case? We answer on WhatsApp, with no commitment.

Request a quote

How much does AI cost in dinars?

Price is counted in tokens, about three quarters of a word. At XAB AI, prices including VAT per million tokens:

  • Small models (Qwen3.7 Flash, GPT-OSS 20B): input from 0.500 TND
  • Medium models (Qwen3 30B, DeepSeek V4 Flash, Gemini Flash Lite): input from 0.900 TND
  • Premium (Claude, GPT-5, Gemini): input from 0.800 TND, more on output

A shop chatbot answering 1,000 questions a month often uses less than 5 TND on a medium model. Details are in our guide on token prices.

How to pay and start?

Credit is prepaid: you buy a pack, use it, and at zero requests stop.

  • Packs of 50, 100, 250, 500 and 1000 TND, with up to 25% free credit on large packs
  • Payment by bank transfer or bank deposit, Tunisian invoice with VAT
  • Credit valid 12 months after the last purchase

You then create your keys in the client area, with a monthly budget per key if you want to limit an app.

Frequently asked questions

Your other questions.

Can I use the ChatGPT API without an international card in Tunisia?

Yes, with an OpenAI-compatible API paid in dinars such as XAB AI. It gives access to GPT models, and also to Claude, Gemini, Qwen, DeepSeek and Llama, with the same key.

Does my OpenAI code work with XAB AI?

Yes. Change the API address, the key and the model name. The official OpenAI libraries for Python, JavaScript and PHP work as they are.

Is my customers' data kept?

No. XAB AI keeps neither requests nor answers, only the date, model, number of tokens and price.

What is the minimum to start?

A 50 TND pack. Clients with an XAB Cloud Pro or Business server also get 5 TND of free credit per server.

A project, an idea, a problem with your website?

Describe it in a few lines. You receive a clear quote within 24 hours.