> 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-search/inserting-into-vector-ai/400-inserting-with-api/400-inserting-with-api-encoding-before-inserting.md).

# Inserting with API - encoding before inserting

## Option 1 - Encoding Before Inserting

![Overall ](/files/-MYwmwrT5dW4Zq2hqtRE)

Encoding before inserting can often be the best decision when you have a locally saved model and want to test it out without having to deploy it. This allows you to quickly test if the model will be a good fit (and is even faster if you are using the Vector AI API and SDK).&#x20;

If you are looking to insert, you will be using the following API endpoint.&#x20;

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

```python
import requests
url = "https://vectorai-development-api.azurewebsites.net/collection/bulk_insert" 
response = requests.post(
    url=url,
        json={
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "documents": [{},{}],
        "insert_date": true,
        "overwrite": true,
        "update_schema": true,
        "quick": false,
        "pipeline": [ ]
        }
    )
```

{% endtab %}

{% tab title="Javascript" %}

```
```

{% endtab %}
{% endtabs %}

The documentation for this endpoint can be found in the API.

If the collection name does not exist, Vector AI will automatically create a collection for you so you can just insert properly.
