Skip to content
Bitaloka Docs
AI Translate
AI

AI Translate

Translate text into many languages.

Request

POST https://api.bitaloka.io/v1/ai/translate
JSON body→ application/json

Parameters

NameTypeDescription
textrequired text Text to translate (or send a PDF as multipart "file").Example: Selamat pagi, apa kabar?
targetrequired text Target language code, e.g. en, id, ja.Example: en

Code samples

Generated from one source and tested against the live API.

curl -sS -X POST "https://api.bitaloka.io/v1/ai/translate" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Selamat pagi, apa kabar?","target":"en"}' \
  --fail-with-body

Uses: curl 7.x+ · example.sh

Response

Real response from the live API for the example request.

200 OK · application/json
{
  "result": "Good morning, how are you?",
  "model": "beam-free",
  "fallback": true
}

Use from an AI agent

On the Bitaloka MCP server this service is the ai_translate tool. MCP server →

Related services