Image translation for your application
Connect image translation, OCR, text extraction with translation, and text removal through four REST endpoints.

Universal Image Translation API
Read request parameters, authentication, response fields, and code examples.
REST API Documentation
Integrate image translation into your applications
Endpoints
/api/translateTranslate text in images while preserving the original layout and styling
Scope
translateCredits
10Content-Type
multipart/form-dataResponse
application/json (API key or signed-in session required)Request Body (FormData)
| Parameter | Type | Required | Description |
|---|---|---|---|
image | File | Required | Image file to translate (JPG, PNG, WebP, GIF) |
config | JSON string | Optional | Translation configuration options |
Config Options (JSON)
| Option | Type | Required | Description |
|---|---|---|---|
target_lang | string | Required | Target language code for translationenjazhkoes+5 moreDefault: |
source_lang | string | Optional | Optional source-language metadata saved with the generation. The translation engine detects the source automatically. |
translator | string | Required | AI model to use for translationgrok-4-fastgemini-2.5-flashdeepseekkimi-k2gemini-3-flash+1 more |
font | string | Optional | Font for rendered textNotoSansWildWordsBadComicMaShanZhengBangersDefault: |
text_align | string | Optional | Alignment of rendered translation textautoleftcenterright |
stroke_disabled | boolean | Optional | Disable the outline around rendered text |
min_font_size | number | Optional | Minimum rendered font size forwarded to the translation engine |
mode | string | Optional | Optional generation metadata. This field does not change rendering; use text_align, stroke_disabled, and font for rendering controls.generalmangadocumentDefault: |
Response Schema
| Field | Type | Description |
|---|---|---|
success | boolean | Whether translation succeeded |
generationId | string | Unique ID for this generation |
resultImage | string | Base64 data URL of translated image |
inpaintedImage | string | Base64 data URL of text-removed image |
textRegions | array | Text regions with originalText, translated text in text, and x/y/width/height coordinates |
upload | object | Presigned URLs for uploading original/result images |
{
"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
Subscribe & Get API Key
Subscribe to a plan and generate your secure API key from the dashboard. API access requires an active subscription.
- 2
Send API Request
POST your image to /api/translate with your target language and model preferences.
- 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.
API FAQ
Common questions about our REST API
More Ways to Translate Images
Specialized tools for image translation, text extraction, text removal, and image compression.