---
title: "Index Create"
method: POST
path: "/v1/indexes"
tags: ["vector_stores"]
---

# Index Create

`POST /v1/indexes`

Create an index. Just writes the index to the database.

```bash
curl -L -X POST 'http://0.0.0.0:4000/v1/indexes'         -H 'Content-Type: application/json'         -H 'Authorization: Bearer sk-1234'         -d '{
        "index_name": "dall-e-3",
        "litellm_params": {
            "vector_store_index": "real-index-name",
            "vector_store_name": "azure-ai-search"
        }
    }'
```

## Request body

- IndexCreateRequest
  - `index_info` object, nullable
  - `index_name` string, required
  - `litellm_params` IndexCreateLiteLLMParams, required
    - `vector_store_index` string, required
    - `vector_store_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-19** `c357baf422ab` — 1 info
  - api tag `vector_stores` added
- **2026-09-18** `082b5fabd909` — 3 info
  - api tag `vector_stores` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/v1/indexes/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/3b2b241e4b0b?raw)
