Skip to main content
Developer API

Image translation for your application

Connect image translation, OCR, text extraction with translation, and text removal through four REST endpoints.

4REST Endpoints
130+Languages
20 MBTranslation Upload Limit

Universal Image Translation API

Read request parameters, authentication, response fields, and code examples.

REST API Documentation

Integrate image translation into your applications

REST API v1
Get API Key

Endpoints

POST
/api/translate

Translate text in images while preserving the original layout and styling

Scope

translate

Credits

10

Content-Type

multipart/form-data

Response

application/json (API key or signed-in session required)

Request Body (FormData)

ParameterTypeRequiredDescription
imageFile
Required
Image file to translate (JPG, PNG, WebP, GIF)
configJSON stringOptionalTranslation configuration options

Config Options (JSON)

OptionTypeRequiredDescription
target_langstring
Required
Target language code for translation
enjazhkoes+5 more

Default: en

source_langstringOptionalOptional source-language metadata saved with the generation. The translation engine detects the source automatically.
translatorstring
Required
AI model to use for translation
grok-4-fastgemini-2.5-flashdeepseekkimi-k2gemini-3-flash+1 more
fontstringOptionalFont for rendered text
NotoSansWildWordsBadComicMaShanZhengBangers

Default: NotoSans

text_alignstringOptionalAlignment of rendered translation text
autoleftcenterright
stroke_disabledbooleanOptionalDisable the outline around rendered text
min_font_sizenumberOptionalMinimum rendered font size forwarded to the translation engine
modestringOptionalOptional generation metadata. This field does not change rendering; use text_align, stroke_disabled, and font for rendering controls.
generalmangadocument

Default: general

Response Schema

FieldTypeDescription
successbooleanWhether translation succeeded
generationIdstringUnique ID for this generation
resultImagestringBase64 data URL of translated image
inpaintedImagestringBase64 data URL of text-removed image
textRegionsarrayText regions with originalText, translated text in text, and x/y/width/height coordinates
uploadobjectPresigned URLs for uploading original/result images
Example Response
{
  "success": true,
  "generationId": "550e8400-e29b-41d4-a716-446655440000",
  "resultImage": "data:image/png;base64,iVBORw0KGgo...",
  "inpaintedImage": "data:image/png;base64,iVBORw0KGgo...",
  "textRegions": [
    {
      "originalText": "こんにちは",
      "text": "Hello",
      "x": 100,
      "y": 50,
      "width": 200,
      "height": 40
    }
  ]
}

Code Examples

curl --fail -X POST https://translateimage.io/api/translate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F 'config={"target_lang":"ja","translator":"gemini-2.5-flash"}'

Integration in 3 Steps

  1. 1

    Subscribe & Get API Key

    Subscribe to a plan and generate your secure API key from the dashboard. API access requires an active subscription.

  2. 2

    Send API Request

    POST your image to /api/translate with your target language and model preferences.

  3. 3

    Receive Localized Assets

    Read the JSON response to access the translated image and detected text regions. Processing time varies by image and model.

Built for Developers

Choose Your Model

Select a supported translation model in your request configuration. Review the credit cost before processing images.

Scoped API Keys

Use an API key with the permissions required by each endpoint. Requests without the required scope are rejected.

Flexible Data Formats

Full support for JSON responses, Base64 encoding, and all major image formats (JPG, PNG, WebP).

API Capabilities

Comprehensive Endpoints

Dedicated endpoints for image translation, OCR extraction, text removal, and image-to-text translation.

Automate Your Workflow

Integrate individual image requests into your application workflow. Handle errors and rate limits when processing multiple assets.

API Key Authentication

Authenticate requests with your API key and grant the endpoint scopes your integration needs.

Start Building Today

Subscribe to any plan and get your API key to integrate image translation into your apps.

View Plans & Subscribe

API FAQ

Common questions about our REST API