# 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 %}

![](https://1051526003-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MTAoGc3QCIn04xUpURg%2F-MUlo2MBCASLQuMBWRbm%2F-MUloHEmlVp0EmyX0qxX%2Fimage.png?alt=media\&token=b67bd8c3-dd8d-43ef-8ec4-e610a5979424)
