> For the complete documentation index, see [llms.txt](https://learn.getvectorai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.getvectorai.com/vector-ai-documentation/search.md).

# Image Search For Developers

### Setup

{% tabs %}
{% tab title="Python SDK" %}

```python
from vectorai import ViClient
vi = ViClient()
```

{% endtab %}

{% tab title="Python API" %}

```python
import requests 
requests.post(
```

{% endtab %}
{% endtabs %}

You can search images using the endpoint when encoding as below.

{% tabs %}
{% tab title="Python SDK" %}

```
search_results = vi_client.search(
    collection_name,
    text_encoder.encode('samsung phone'), 
    'name_vector_',
    page_size=5, 
    page=1
)
```

{% endtab %}

{% tab title="Python API" %}

```
```

{% endtab %}
{% endtabs %}

### Image Search

You can search the images using the following

{% tabs %}
{% tab title="Python SDK" %}

```
vi_client.show_json(
    search_results,
    selected_fields=['_id', 'name', 'sku'],
    image_fields=['image_url'],
    image_width=100
)
```

{% endtab %}
{% endtabs %}

![](/files/-MUloHEmlVp0EmyX0qxX)
