Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use/v1/translations for text-to-text translation.
This endpoint is different from Audio Translation, which accepts an audio file and always outputs English text.
/v1/translations.
recommended_for=translation applies only to text translation (POST /v1/translations). It does not apply to audio translation.Request Body
Translation model ID returned by
/v1/models?recommended_for=translation.Source text to translate.
Target language code or language name, depending on model support.
Optional source language hint.
Source text format. Supported values:
text/plain, text/html.Optional end-user identifier for abuse monitoring and request tracing.
Response
Translated text.
Model that generated the translation.
Source language detected or accepted by the model.
Target language used for the request.