ServicesAISectorsServersAI APIContact
Discuss your project

Or on WhatsApp: +216 54 166 821

Which AI model understands Tunisian darija best?

XAB AI · Test of 4 November 2026

We gave the same 21 tasks to 20 AI models: answer a customer in darija, understand a message written in arabizi, extract an invoice, compute VAT, write an SQL query. Here are the results, with what each model costs in dinars.

In short

Across 21 Tunisian tasks, GPT-5.4 mini and Gemini 3.1 Pro come first (97.1 out of 100), but GPT-5.4 mini costs about 15 times less. GPT-OSS 120B scores 93.8 for less than one dinar per 1,000 tasks. Tunisian darija remains the hardest category: the best score is 90, and small models mix in Egyptian or Moroccan forms.

Ranking of the 20 models

Score out of 100. Cost: XAB AI price including VAT for 1,000 tasks of this test, reasoning included.

#ModelScoreDarijaArabicBusiness FrenchMath and codeReliabilityTND / 1,000 tasks
1GPT-5.4 mini97.190.0100.096.7100.0100.03.83
2Gemini 3.1 Pro97.190.0100.096.7100.0100.056.98
3Gemini 2.5 Flash96.285.0100.096.7100.0100.09.68
4Claude Sonnet 5.594.385.0100.090.0100.0100.012.98
5GPT-OSS 120B93.890.0100.085.0100.0100.00.86
6Gemini 2.5 Flash Lite92.690.093.385.098.6100.02.78
7DeepSeek V3.292.480.086.793.3100.0100.01.93
8Claude Haiku 5.591.465.093.396.7100.0100.00.73
9DeepSeek V4 Flash90.075.093.385.0100.0100.01.04
10Qwen3.7 Flash89.065.0100.085.0100.0100.02.17
11GPT-5 mini86.280.086.788.375.0100.04.53
12Qwen3 235B84.875.080.073.3100.0100.00.41
13Qwen3 30B A3B84.350.086.785.0100.0100.00.36
14Gemma 3 27B81.955.080.076.7100.0100.00.38
15GPT-OSS 20B77.680.073.365.075.0100.00.25
16Mistral Small 3.273.650.086.764.275.0100.00.29
17Llama 3.3 70B72.650.066.772.572.2100.00.57
18Qwen3 32B72.435.080.056.7100.0100.02.01
19Qwen 2.5 7B61.230.073.365.038.9100.00.31
20Llama 3.1 8B54.830.060.031.765.3100.00.15

Six takeaways

Darija is the real test

The best darija score is 90, against 100 in standard Arabic. Several large models write standard Arabic or use Egyptian and Moroccan words when asked for Tunisian.

The most expensive is not the best choice

GPT-5.4 mini ties with Gemini 3.1 Pro for about 15 times less. For a chatbot in Tunisia it is often the best high-end value.

Very good models under one dinar

GPT-OSS 120B (93.8) and Claude Haiku 5.5 (91.4) cost less than one dinar per 1,000 tasks. Haiku loses points in darija: it uses Algerian forms such as "بزاف" or "تاعك".

Watch Tunisian amounts

Two models read "215,294 TND" as 215,294 thousand instead of 215.294 dinars. For invoice extraction, always check three-decimal amounts.

Small models are not enough for darija

Llama 3.1 8B and Qwen 2.5 7B score 30 in darija. They are still useful for simple tasks in French, not for talking to Tunisian customers.

No one invented a tax ID

All 20 models refused to invent an unknown Tunisian tax ID. This reliability test turned out too easy: we will make it harder next time.

How we tested

  1. 21 tasks in 5 categories: Tunisian darija (4), Arabic (3), business French (6), math and code (4), reliability (4).
  2. 15 tasks scored automatically: the answer can be checked exactly (amounts, JSON, a regular expression tested on 18 cases, an SQL query run on a test database).
  3. 6 writing tasks scored 0 to 5 by an AI judge that did not know which model answered. A second judge from another model family scored the darija answers: the two rankings agree (0.77).
  4. Same settings for all, those of XAB AI in production: temperature 0, "low" reasoning for reasoning models. Answers cut by the token limit were redone with a higher limit.
  5. One run on 4 November 2026. The same model can answer slightly differently from one day to the next.

Questions about the test

Which AI model speaks Tunisian darija best?

In this test, GPT-5.4 mini, Gemini 3.1 Pro, GPT-OSS 120B and Gemini 2.5 Flash Lite score 90 out of 100 in darija. Claude Sonnet 5.5 and Gemini 2.5 Flash follow at 85.

What is the best cheap model for a chatbot in Tunisia?

GPT-OSS 120B: 93.8 out of 100 overall and 90 in darija, for less than one dinar per 1,000 tasks with XAB AI.

Can these models be used from Tunisia?

Yes. All 20 tested models are available with a single key on XAB AI, an OpenAI-compatible API prepaid in dinars by bank transfer or bank deposit.

Is the test independent?

The test was run by XAB Solutions, which sells access to these models. The tasks, scoring rules and every answer are published so anyone can check.

Try these models on your own texts

With XAB AI, one key gives access to all 20 models, prepaid in dinars.

Chat on WhatsApp