# NanoNets API

> NanoNets API on Apizie: 20 endpoints (Create New Model, Get Prediction File By Page ID, Get All Prediction Files, Get Prediction File By File ID, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/ai:nanonets/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `ai:nanonets`
- Category: Artificial Intelligence
- Status: byok
- Source: https://nanonets.com
- Page: https://zieapi.vercel.app/api/ai/nanonets
- OpenAPI: https://zieapi.vercel.app/api/ai/nanonets/openapi.json

Welcome to the NanoNets API! You can use our API to build custom deep learning models. We have language bindings in Shell, Ruby, Golang, Java, C# and Python. You can view code examples in the dark area to the right,…

## Endpoints

### Create New Model
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-create-new-model` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Get Prediction File By Page ID
`GET https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-prediction-file-by-page-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| id | string | yes | The ID of the page that was received from the async prediction endpoint |

### Get All Prediction Files
`GET https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-all-prediction-files` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| start_day_interval | integer | yes | The number of days since 1st Jan 1970 GMT which represents the start of the period |
| current_batch_day | integer | yes | The number of days since 1st Jan 1970 GMT which represents the end of the period |
| start_day | string | yes | Path parameter {start_day} |
| end_day | string | yes | Path parameter {end_day} |

### Get Prediction File By File ID
`GET https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-get-file-prediction-by-file-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| request_file_id | string | yes | The ID of the file that was received from the async prediction endpoint |

### Get Full Text
`POST https://zieapi.vercel.app/v1/ai:nanonets/get-full-text-file-content` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Get Model by Id
`GET https://zieapi.vercel.app/v1/ai:nanonets/ocr-model-get-model-by-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |

### Async Prediction for image file
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-image-file-async-prediction` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| async | string | yes | This parameter specifies whether you'd like to upload the file for processing and then query the results with a unique id at a later point… |
| body | object | yes | Form fields as a JSON object |

### Async Prediction for image url
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-image-url-async` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| async | boolean | yes | This parameter specifies whether you'd like to upload the file for processing and then query the results with a unique id at a later point… |
| body | object | yes | Form fields as a JSON object |

### Prediction for image File
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-predict-file-prediction` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Prediction for image URLs
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-predict-image-url-prediction` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Get All Models
`GET https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-get-all-models` (byok)

### Train Model
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-train-new-model-training` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Upload training images by File
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-upload-training-images-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Upload training images by Url
`POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-upload-by-urls` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Create New Model
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-model-create-new-model` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | JSON request body |

### Prediction for image file
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-image-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| l | string | yes | language hints eg: en, vi (not specifying generally gives best results) |
| body | object | yes | Form fields as a JSON object |

### Prediction for image url
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-predict-image-urls-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| l | string | yes | language hints eg: en, vi (not specifying generally gives best results) |
| body | object | yes | Form fields as a JSON object |

### Train Model
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-train-model` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |

### Upload training images by File
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-upload-training-images-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| body | object | yes | Form fields as a JSON object |

### Upload training images by Url
`POST https://zieapi.vercel.app/v1/ai:nanonets/ocr-upload-training-images-by-url` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | yes |  |
| body | object | yes | JSON request body |

## Example
```
curl "https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-create-new-model" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the NanoNets API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/ai:nanonets/image-classification-model-create-new-model with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the NanoNets API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. NanoNets itself also needs your own key from app.nanonets.com.

### Can AI agents use the NanoNets API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key ai:nanonets.

### What is the status of the NanoNets API?
Needs your own provider key (bring your own key)
