Skip to content
English
  • There are no suggestions because the search field is empty.

Using Lara Think with image context and reasoning effort

Use Lara Think with image context and reasoning effort levels via the Lara API and SDKs to resolve ambiguous text and improve accuracy

Lara Think now lets you choose how much reasoning to apply and add an image as visual context. Both options are available through the Lara API and all supported SDKs.

Reasoning effort levels

You can set the level of reasoning effort for each request. A higher level gives Lara more time to analyze the source text and context; a lower level returns results faster. Choose the level that fits your workflow, balancing accuracy and processing time.

Set the reasoningEffort option to low, medium or high. The default is high. Python example:

result = lara.translate("Submit", source="en-US", target="it-IT", reasoning=True, reasoningEffort="high")

Image context

Some text is ambiguous without seeing where it appears. "Open" on a storefront sign and "Open" on a software button need different translations in many languages. With image context, you send an image together with the text, and Lara Think uses it to choose the right translation.

Image context is useful for:

  • product descriptions and packaging
  • short interface strings shown in screenshots
  • any text whose meaning depends on what it refers to

Image context is available only with Lara Think, so reasoning must be set to true.

How to add an image

Pass the image with the image_context option. Python example:

result = lara.translate("Open", source="en-US", target="it-IT", reasoning=True, image_context={"url": "https://example.com/storefront.png"})

Image requirements

  • One image per request.
  • An HTTPS URL, or a base64 data URL in PNG, JPEG or WebP format.
  • Inline images: up to 5 MiB of decoded data, and the MIME type must match the image.
  • The full request body can be up to 16 MiB.

If the image is invalid, the API returns a 400 error; if it is too large, a 413 error.

What happens if the image can't be used

If Lara can't use the image, it translates the text with Lara Think without the image and adds an image_context_unavailable warning to the response. If reasoning can't be applied either, Lara falls back to standard translation and the response says so. Check warnings.reasoning in the response to see which case applies.

For code examples in every SDK, see Translate Text in the developer documentation.

Pricing

You are charged only for the characters in the source text, at the Lara Think rate. Check pricing here.


This article is about:

  • Choosing the reasoning effort level in Lara Think
  • Adding an image as visual context to text translation
  • Image requirements and fallback behavior