---
title: "Create Index V2"
method: POST
path: "/model/v2/create_index"
tags: ["Models and Predictions"]
---

# Create Index V2

`POST /model/v2/create_index`

Create indexes for files connected with a knowledge base. V2 uses tasks in celery and will return only the task id instead of result.

## Query parameters

- `kb_id` string, uuid, required — The ID of the knowledge base for which to create the index.
- `frag_size` integer — The size of each fragment in the index.
- `team_id` string, uuid

## Response `200`

Successful Response

- CreateIndexTaskResponse
  - `task_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/dante-ai/apis/dante-ai-api.md) · [All operations](https://skmtc.net/dante-ai/apis/dante-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dante-ai/dante-ai-api/revisions/38b6c9a4246d/schema)
