# Inserting with API

If you are looking for more flexibility when you are inserting your documents via the API or Python SDK, then the following is for you:&#x20;

When inserting your data into Vector AI, you will need a way to encode vectors as you insert. As a result, we have built a few ways to allow users to flexibly encode vectors.

![Various endpoints to allow for flexible insertion and encoding](/files/-MYx5RP7vXALlI_vqA1y)

There is no right endpoint for inserting. Different users will have different insertion and encoding preferences based on technical requirements. A few examples of such situations:&#x20;

* Shirley (data scientist) needs to insert her data into Vector AI. However, her model is not yet deployed and she needs to test the results before deploying to ensure her vectors work as intended. So she encodes all her documents prior to inserting and searches using her locally saved model.&#x20;
* Krissy (data engineer) has just deployed her model. However, over time, she realizes she can't keep encoding her models locally as she is not always at her computer. Instead, she ploys her model and ensures that she is able to encode while inserting to ensure that her stakeholders are using the right data.
* Tom (machine learning engineer) has a serious amount of data. He realizes he needs to run an encoding job later and try out different vector searches. For this, he quickly inserts them all into Vector AI and then runs multiple different encoding jobs that adds new vectors afterwards.&#x20;


---

# 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://learn.getvectorai.com/vector-search/inserting-into-vector-ai/400-inserting-with-api.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.
