Get started

Quickstart

Create a key, then send your first request. The Free plan needs no card.

  1. Create an account

    Sign up with email, Google or Apple, then confirm your email address. Keys are only issued to accounts with a confirmed email.

  2. Create a key in the dashboard

    Open the developer dashboard, accept the API Terms and press Create key. The full key (it starts with ay_live_) is shown once. Copy it to a password manager or a secret store.

  3. Put the key in an environment variable

    Shell
    export AY_API_KEY="ay_live_..."

    Keep the key on your server. Do not ship it in browser or mobile app code.

  4. Send a request

    Transliterate a Cyrillic sentence to Latin:

    curl https://api.ana-yurt.dev/v1/translit \
      -H "Authorization: Bearer $AY_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"text": "Къырым – меним Ватаным.", "direction": "cyr2lat"}'

    The response:

    200 OK
    {
      "api_version": "v1",
      "model": "translit",
      "model_version": "rules@9c813a9c",
      "text": "Qırım – menim Vatanım.",
      "direction_detected": "cyr2lat"
    }

#Next steps

Attribution

A public product that uses the API shows “Powered by Ana-Yurt” with a link to ana-yurt.dev, near the feature or on its about screen (API Terms, section 5).