Diacritize Arabic Text
Tashkil
Tashkil
Add Arabic diacritics (tashkil) to text. The model performs best on Fusha and formal Arabic content.
POST
Diacritize Arabic Text
Endpoint
POST /tashkil/diacritize
Authentication
Requires API key authentication with thex-api-key header.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Arabic text to diacritize |
Response
| Field | Type | Description |
|---|---|---|
statusCode | number | HTTP-style status code |
data.original_text | string | Original input text |
data.diacritized_text | string | Text with Arabic diacritics |
message | string | Request status message |
Example
Notes
- The model performs best on Fusha and formal Arabic text.
- Dialectal, noisy, or highly informal text may need additional review.
Error responses
| HTTP status | errorCode | Scenario |
|---|---|---|
400 | 40001 | Missing or invalid text field |
401 | 40101 | Missing, invalid, expired, or revoked API key |
413 | 41301 | Request body exceeds the maximum size limit |
500 | 50001 | Internal error or upstream Tashkil service failure |
Missing API key
Invalid API key
Validation error
Authorizations
API key for authentication
Body
application/json
Arabic text to diacritize. Fusha and formal Arabic text are recommended for best results.
Minimum string length:
1