# Image Prompts

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.

{% hint style="info" %}
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)
{% endhint %}

### 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:

<figure><img src="/files/giVY7jXfPm7UBJxDn8Bt" alt=""><figcaption><p>Copying and pasting an image prompt into Tabnine, then asking for code</p></figcaption></figure>

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

<figure><img src="/files/ykE4p0NlyRIMfHOOsUyS" alt=""><figcaption><p>Uploading an image, then asking Tabnine to mimic the formatting in the image</p></figcaption></figure>

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:

<figure><img src="/files/8ykS8tmKRimkAf99HKqO" alt=""><figcaption></figcaption></figure>

\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tabnine.com/main/getting-started/tabnine-chat/image-prompts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
