Arabizi converter
Tapra-Flip / tapra-flip-v1
Tapra-Flip is a compact 34.5M-parameter character model trained on Tunisian Arabizi, served on CPU. It moves text between Latin-typed Darija and Arabic script in both directions, normalizes the phonetic digits that stand in for Arabic letters, and copies through everything it should not touch: prices, phone numbers, dates, URLs, emoji, and Latin words. It is the model behind the live Arabizi toggle in the Tapra playground.
Make a request
const res = await fetch(baseUrl + '/v1/converters/transliterate', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + apiKey,
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: '5allast 20.500 DT, 3aychek',
direction: 'ZI2AR'
})
});
const { output } = await res.json();
// خلصت 20.500 DT, عيّشكInputs and parameters
- Model id
- tapra-flip-v1
- Endpoint
- POST /v1/converters/transliterate
- Directions
- ZI2AR (Arabizi → Arabic), AR2ZI (Arabic → Arabizi)
- Input limit
- 5,000 characters per request
- Digits
- 3 5 7 9 normalized as letters; numeric spans preserved
- Model
- 34.5M-parameter character model, one network for both directions
- Throughput
- 32 – 83 ms per request on the examples below
- Response
- input, output, direction, processing_ms, usage
Recorded examples
The test line from the API reference. Every phonetic digit becomes its letter.
ZI2AR input
3lech 7abit l9anoun?
Output
علاش حبيت القانون؟
Capabilities
Two directions, one model
direction: "ZI2AR" turns Arabizi into Arabic script. direction: "AR2ZI" turns it back. One set of weights handles both, so the two directions agree on spelling.
Digit-aware normalization
3 → ع, 5 → خ, 7 → ح, and 9 → ق are read as letters when they are letters, and left alone when they are a price, a phone number, or a date.
Token copy-through
Latin words, acronyms, punctuation, emoji, and URLs pass straight through instead of being guessed at as Arabic syllables.
Built for live editing
Requests up to 5,000 characters finish fast enough to run behind a keystroke, which is how the playground Arabizi toggle stays live.
Billing
0.040 TND / 1k chars. Usage draws from the same prepaid TND balance as the studios. See pricing and all variants.
Common questions
Which digits does it normalize?
3 → ع, 7 → ح, 9 → ق, and 5 → خ when converting to Arabic script. In the reverse direction it writes them the same way, and uses 8 for غ as many Tunisians type it. Digits that belong to a price, a phone number, or a date stay digits.
Can I mix French and Darija?
Yes. French words are copied through untouched, so mixed messages stay readable in both directions.
Is it safe to run on every keystroke?
At 5,000 characters per request the model answers fast enough for debounced live editing. The playground does exactly that.