---
title: "POST /documentModels:build"
method: POST
path: "/documentModels:build"
---

# POST /documentModels:build

`POST /documentModels:build`

Builds a custom document analysis model.

## Query parameters

- `api-version` string, required

## Request body

- BuildDocumentModelRequest — Request body to build a new custom document model.
  - `modelId` string, required — Unique document model name.
  - `description` string — Document model description.
  - `buildMode` 'template' | 'neural', required — Custom document model build mode.
  - `azureBlobSource` AzureBlobContentSource — Azure Blob Storage content.
    - `containerUrl` string, uri, required — Azure Blob Storage container URL.
    - `prefix` string — Blob name prefix.
  - `azureBlobFileListSource` AzureBlobFileListContentSource — File list in Azure Blob Storage.
    - `containerUrl` string, uri, required — Azure Blob Storage container URL.
    - `fileList` string, required — Path to a JSONL file within the container specifying a subset of documents.
  - `tags` object — List of key-value tag attributes associated with the document model.
  - `maxTrainingHours` number, float — Max number of V100-equivalent GPU hours to use for model training. Default=0.5.
  - `allowOverwrite` boolean — Allow overwriting an existing model with the same name.

## Response `202`

The request has been accepted for processing, but processing has not yet completed.

## Other responses

- `default` — An unexpected error response.

## Changes

> 6 revisions in range; 1 could not be searched.

- **2023-11-11** (2023-10-31-preview) `39529146a387` — 1 warning
  - the optional response header `Retry-After` removed for the status `202`

[Change history](https://skmtc.dev/azure/apis/ai-documentintelligence/changes/documentModels:build/post.md)

---

[API](https://skmtc.dev/azure/apis/ai-documentintelligence.md) · [All operations](https://skmtc.dev/azure/apis/ai-documentintelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/ai-documentintelligence/revisions/3f750834da9e/schema)
