Model key: language

Does not count against moderation quota.

Detect what language a text is written in. Probabilistically detects over 160 languages. We’re not listing all the languages here, but if you need a comprehensive list, please message us.

Response

The language classifier has a different response format than the other classifiers.

code
string

The ISO 639 of the language. Returns null if the analyzer fails.

label
string

An UPPERCASE name of the language. Returns null if the analyzer fails.

score
int
required

0-1 score with 1 meaning a high probability of being correct. Returns 0 on fails.

reliable
int
required

The analyzer is reasonably confident about this guess, e.g. the score is high.

error
string

If the analyzer failed an error will be returned.

Response Example:
{
  "code": "en",
  "label": "ENGLISH",
  "score": 0.96,
  "reliable": true
}

Labels

  • ABKHAZIAN
  • AFAR
  • AFRIKAANS
  • AKAN
  • ALBANIAN
  • AMHARIC
  • ARABIC
  • ARMENIAN
  • ASSAMESE
  • AYMARA
  • AZERBAIJANI
  • BASHKIR
  • BASQUE
  • BELARUSIAN
  • BENGALI
  • BIHARI
  • BISLAMA
  • BOSNIAN
  • BRETON
  • BULGARIAN
  • BURMESE
  • CATALAN
  • CEBUANO
  • CHEROKEE
  • CORSICAN
  • CROATIAN
  • CZECH
  • CHINESE
  • CHINESET
  • DANISH
  • DHIVEHI
  • DUTCH
  • DZONGKHA
  • ENGLISH
  • ESPERANTO
  • ESTONIAN
  • FAROESE
  • FIJIAN
  • FINNISH
  • FRENCH
  • FRISIAN
  • GALICIAN
  • GANDA
  • GEORGIAN
  • GERMAN
  • GREEK
  • GREENLANDIC
  • GUARANI
  • GUJARATI
  • HAITIAN_CREOLE
  • HAUSA
  • HAWAIIAN
  • HEBREW
  • HINDI
  • HMONG
  • HUNGARIAN
  • ICELANDIC
  • IGBO
  • INDONESIAN
  • INTERLINGUA
  • INTERLINGUE
  • INUKTITUT
  • INUPIAK
  • IRISH
  • ITALIAN
  • JAVANESE
  • JAPANESE
  • KANNADA
  • KASHMIRI
  • KAZAKH
  • KHASI
  • KHMER
  • KINYARWANDA
  • KURDISH
  • KYRGYZ
  • KOREAN
  • LAOTHIAN
  • LATIN
  • LATVIAN
  • LIMBU
  • LINGALA
  • LITHUANIAN
  • LUXEMBOURGISH
  • MACEDONIAN
  • MALAGASY
  • MALAY
  • MALAYALAM
  • MALTESE
  • MANX
  • MAORI
  • MARATHI
  • MAURITIAN_CREOLE
  • MONGOLIAN
  • NAURU
  • NDEBELE
  • NEPALI
  • NORWEGIAN
  • NORWEGIAN_N
  • NYANJA
  • OCCITAN
  • ORIYA
  • OROMO
  • PASHTO
  • PEDI
  • PERSIAN
  • POLISH
  • PORTUGUESE
  • PUNJABI
  • QUECHUA
  • RHAETO_ROMANCE
  • ROMANIAN
  • RUNDI
  • RUSSIAN
  • SAMOAN
  • SANGO
  • SANSKRIT
  • SCOTS
  • SCOTS_GAELIC
  • SERBIAN
  • SESELWA
  • SESOTHO
  • SHONA
  • SINDHI
  • SINHALESE
  • SISWANT
  • SLOVAK
  • SLOVENIAN
  • SOMALI
  • SPANISH
  • SUNDANESE
  • SWAHILI
  • SWEDISH
  • SYRIAC
  • TAGALOG
  • TAJIK
  • TAMIL
  • TATAR
  • TELUGU
  • THAI
  • TIBETAN
  • TIGRINYA
  • TONGA
  • TSONGA
  • TSWANA
  • TURKISH
  • TURKMEN
  • UIGHUR
  • UKRAINIAN
  • URDU
  • UZBEK
  • VENDA
  • VIETNAMESE
  • VOLAPUK
  • WARAY_PHILIPPINES
  • WELSH
  • WOLOF
  • XHOSA
  • X_BUGINESE
  • X_GOTHIC
  • X_KLINGON
  • X_PIG_LATIN
  • YIDDISH
  • YORUBA
  • ZHUANG
  • ZULU”

Limitations

This model does not have any API limitations.

Was this page helpful?