Skip to main content
POST
/
translate
/
v1
/
translate
curl -X POST "https://api.case.dev/translate/v1/translate" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "q": "<string>", "target": "es" }'
{
  "data": {
    "translations": [
      {
        "translatedText": "<string>",
        "detectedSourceLanguage": "<string>",
        "model": "<string>"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
q
required

Text to translate. Can be a single string or an array for batch translation.

target
string
required

Target language code (ISO 639-1)

Example:

"es"

source
string

Source language code (ISO 639-1). If not specified, language is auto-detected.

Example:

"en"

format
enum<string>
default:text

Format of the source text. Use 'html' to preserve HTML tags.

Available options:
text,
html
model
enum<string>
default:nmt

Translation model. 'nmt' (Neural Machine Translation) is recommended for quality.

Available options:
nmt,
base

Response

Translation successful

data
object