LibreTranslate · Schema

DetectRequest

Request body schema for the LibreTranslate /detect endpoint

TranslationMachine TranslationNatural Language ProcessingOpen SourceSelf-Hosted

Properties

Name Type Description
q string Text to detect the language of
api_key string API key for authentication
View JSON Schema on GitHub

JSON Schema

detect-request.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://libretranslate.com/schemas/detect-request",
  "title": "DetectRequest",
  "description": "Request body schema for the LibreTranslate /detect endpoint",
  "type": "object",
  "required": ["q"],
  "properties": {
    "q": {
      "type": "string",
      "description": "Text to detect the language of",
      "example": "What language is this?"
    },
    "api_key": {
      "type": "string",
      "description": "API key for authentication",
      "example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  }
}