Ana-Yurt API
Crimean Tatar language API
Transliteration, speech recognition and speech synthesis for Crimean Tatar over a simple HTTPS API. The speech endpoints follow the OpenAI audio API, so existing OpenAI SDKs work with a different base URL.
#Endpoints
#Basics
- Base URL
https://api.ana-yurt.dev/v1- Authentication
Authorization: Bearer <key>. Keys come from the developer dashboard. See Authentication.- Format
- JSON in UTF-8. Speech recognition takes
multipart/form-data; speech synthesis returns audio. - Plans
- Free, Pro and Business, with quotas per day or month. See Plans, limits & quotas.
- Status
GET /v1/status, no key needed. See Status.- Schema
- OpenAPI 3.1 at /v1/openapi.json.
#Versioning
The API version is part of the path (/v1), and every JSON response repeats it in api_version. Responses also name the model that produced them, in the model and model_version fields and the X-AY-Model and X-AY-Model-Version headers. Model versions change when a model is retrained; the response shape does not.
New fields, error codes and voices can be added within v1. Ignore fields you do not know. Changes are listed in the changelog.
#Request IDs
Every response carries an X-Request-Id header. You can send your own (1 to 64 characters: letters, digits, ., _, -) and the API echoes it back. Quote it when you contact support.
Availability
Transliteration runs on the API server. Speech recognition and synthesis run on one GPU machine that is shared with our own products, with no SLA. When it is busy or offline the API answers 503 with a Retry-After header. See Errors.
curl https://api.ana-yurt.dev/v1/translit \
-H "Authorization: Bearer $AY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Къырым – меним Ватаным.", "direction": "cyr2lat"}'{
"api_version": "v1",
"model": "translit",
"model_version": "rules@9c813a9c",
"text": "Qırım – menim Vatanım.",
"direction_detected": "cyr2lat"
}