---
title: AI Text Language Detection API
slug: ai-detect-language
url: https://apyhub.com/apyhub/service/ai-detect-language
provider: ApyHub
categories: [Artificial Intelligence]
tags: [detection, language, text]
auth: api_key
---

# AI Text Language Detection API

Detect the language of a text string with ApyHub, Azure, or Google. Route multilingual content into translation, classification, or indexing pipelines.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/text/detect/language` | What it does Detects the language of the provided text and returns a JSON object containing a data… | 500 |

## About

## What it does
Language Detector identifies the language of a text string and returns the result through the selected provider: ApyHub, Azure, or Google. Send a piece of text in `body.text`, and choose `requested_service` to route the request to the language engine you want to use.

Use it when you need to classify user-generated content, route support tickets, segment multilingual documents, or decide which downstream translation or NLP pipeline to run. The request schema also supports optional `azure` and `google` credential objects when you want to use those providers directly.

The response wraps provider-specific output under `data.azure`, `data.apyhub`, or `data.google`, so you can read the detection result from the service you selected without guessing at extra fields. If you already have a text-processing workflow, this endpoint fits as a lightweight language identification step before indexing, moderation, translation, or analytics.

Because the input is just text plus an optional provider selection, it is easy to slot into forms, ingestion jobs, and batch processing flows where language needs to be detected before the next step runs.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Azure                        |   500 |
| Google                       |  500 |
| ApyHub                       |  2000 |

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/ai-detect-language
