Developers

API

Translate images via API while preserving layout and style.

Get started in minutes

Create a key, send an image, and receive a translated image back.

Create an API key
Generate a key from your dashboard and keep it secure.
Send an image
Upload an image using multipart form-data.
Receive the result
Get a translated image plus structured OCR metadata.

API Reference

Endpoint
POST/api/v1/image-translate
Authentication
Authenticate using a Bearer token.
Authorization: Bearer <key_id>.<secret>

Never expose or share your API key — treat it like a password.

Attributes

image (file) *

Image file upload.

source_language (string)

Source language code. Omit or use "auto" for auto-detect.

target_language (string)

Language code. Default: en.

translator_model (string)

Translator model ID (grok | openai | claude | gemini). Default: gemini (subject to plan restrictions).

Response

Success (200)

success (boolean)

Always true for a 200 response.

credits (number, optional)

Remaining credits for the account (omitted for anonymous).

image (string)

Translated image as a data URL (e.g. data:image/png;base64,...).

chunks (array)

Detected text regions: label, sourceText, translatedText.

word_mapping (object)

Map of original text to translated text used for the image edit.

target_language (string)

Target language code (e.g. ja, en).

JSON
{
  "success": true,
  "credits": 1234,
  "image": "data:image/png;base64,...",
  "chunks": [
    { 
      "label": 1, 
      "sourceText": "Hello", 
      "translatedText": "こんにちは",
    }
  ],
  "word_mapping": { "Hello": "こんにちは" },
  "target_language": "ja"
}

On Error (4xx/5xx)

JSON
{ "error": "Message", "code": "ERROR_CODE" }
cURL
API_KEY=itk_xxx.its_yyy

curl -X POST "https://api.translatenets.com/api/v1/image-translate" \
  -H "Authorization: Bearer ${API_KEY}" \
  -F "image=@./image.png" \
  -F "target_language=ja" \
  -F "translator_model=gemini"

Build your request

Notes
  • Supported image types: PNG, JPEG/JPG, WebP, GIF.
  • Empty uploads are rejected.
Next steps
Generate a key and start translating.