Image Prompts

This documentation will show you how to use image prompts in Tabnine, along with examples.

In addition to written prompts, you can add an image to the context Tabnine Chat uses to produce results, otherwise known as Visual-to-Code.

To use image prompts in Tabnine, you need to use one of the following models: Claude 3.5 Sonnet (both V1 and V2), Claude 3.7 Sonnet, and ChatGPT 4o. The allowed types of files are .png, .jpg, and .jpeg (the file can be up to 5 MB)

Adding Image Prompts

Visual-to-Code has three options to get the image into the input field:

  1. Click on the upload icon and select from the right location

  2. Drag and drop the image into the window.

  3. Cut/Copy and paste the image directly into the window.

In this example, a user copies a generic image of an app and pastes it into Tabnine in order to create code that would mimic the fictional app:

Copying and pasting an image prompt into Tabnine, then asking for code

In a second example, a user uploads an image and requests Tabnine use it as a template for a cover letter:

Uploading an image, then asking Tabnine to mimic the formatting in the image

From there, you will be able to see thumbnails of all the uploaded images next to the text input window. Clicking on a thumbnail will display the image in a larger preview window.

Tabnine will immediately add any and all uploaded images into the context it considers for generating responses.

Activating Image Prompts

If your image icon is inactive, open a new chat and select either Claude 3.5 Sonnet or ChatGPT 4o in order to activate image prompting:

\

Last updated

Was this helpful?