Fine-Tune Image Translation
Adjusts the wording or look of a single text region with a short prompt.
Refining a Single Region
If one piece of text isn’t quite right, whether the translation or the way it looks, you can adjust just that region without re-running the whole image. Send therun_id, the target_language_id of the translation you want to change, the region_id of the text region, and a prompt describing what you want.
You can find region IDs in Get Image Translation Project.
Writing a Good Prompt
Theprompt is a short, plain-language instruction that applies to the one region you selected. Be specific about what should change, whether that is the wording or how the text looks: its color, font, size, or shadow. A single sentence is usually enough.
Examples:
Change the text color to whiteUse a bolder, larger fontAdd a soft drop shadow behind the textMake the text color more vibrantShorten the translation so it fits the speech balloon
Applying the Result
The response contains atask_id and a user_message (the prompt as stored on the run). To see the change in your download:
- Poll
/image-translation/{task_id}until the status isSUCCESS - Call Export Image Translation. A fine-tune doesn’t update your download on its own, so this step is required for the change to appear
- Fetch the updated pages from
/image-translation/result/{run_id}
Request Example
Authorizations
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Body
The image translation run that contains the region.
null
Numeric language ID of the translation to edit.
null
ID of the text region to re-render. Get it from GET /image-translation/project/{run_id}.
null
A short instruction describing how this region's translation should change. Be specific about what should change, either the wording or how the text looks, for example Change the text color to white or Add a soft drop shadow behind the text.
1"Make the text bolder and change the color to a vibrant red"