Nanonets OCR Train API

Upload training images and train or retrain an OCR model.

Operations 3

POST /OCR/Model/{model_id}/UploadFile/ Upload Training Images By File #
POST /OCR/Model/{model_id}/UploadUrls/ Upload Training Images By URL #
POST /OCR/Model/{model_id}/Train/ Train Model #

Documentation

📖
Documentation
https://docs.nanonets.com/reference/overview
📖
Documentation
https://docs.nanonets.com/reference/ocrmodellabelfilebymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/ocrmodellabelfileasyncbymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/ocrmodellabelurlsbymodelidpost
📖
Documentation
https://docs.nanonets.com/reference/ocrmodellabelurlsasyncbymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/ocrmodelgetpredictionfilebyfileid
📖
Documentation
https://docs.nanonets.com/reference/ocrmodelgetpredictionfilebypageid
📖
Documentation
https://docs.nanonets.com/reference/ocrmodellistpredictionfiles
📖
Documentation
https://docs.nanonets.com/reference/ocrmodeluploadfilebymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/ocrmodeluploadurlsbymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/ocrmodeltrainbymodelidpost-1
📖
Documentation
https://docs.nanonets.com/reference/imagecategorizationlabelfilepost
📖
Documentation
https://docs.nanonets.com/reference/imagecategorizationlabelurlspost2
📖
Documentation
https://docs.nanonets.com/reference/file-review-api
📖
Documentation
https://docs.nanonets.com/reference/assign-files-via-api
📖
Documentation
https://docs.nanonets.com/reference/delete-files-via-api
📖
Documentation
https://docs.nanonets.com/reference/export-files-via-api
📖
Documentation
https://docs.nanonets.com/reference/update-fields-via-api
📖
Documentation
https://docs.nanonets.com/docs/retry-file-upload-via-api

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nanonets-ocr-train-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nanonets-ocr-train-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nanonets External Integrations OCR Train API
  description: 'Manage external database integrations linked to a Nanonets account and

    execute generic SQL-style queries against them inside a Nanonets workflow.

    Used by the Database Matching Conditions and database lookup workflow blocks.

    '
  version: 1.0.0
  contact:
    name: Nanonets
    url: https://nanonets.com
    email: support@nanonets.com
servers:
- url: https://app.nanonets.com
security:
- BasicAuth: []
tags:
- name: OCR Train
  description: Upload training images and train or retrain an OCR model.
paths:
  /OCR/Model/{model_id}/UploadFile/:
    post:
      tags:
      - OCR Train
      summary: Upload Training Images By File
      description: Upload locally-stored training images for a model.
      operationId: ocrModelUploadFileByModelIdPost
      parameters:
      - $ref: '#/components/parameters/ModelId'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              - data
              properties:
                file:
                  type: array
                  items:
                    type: string
                    format: binary
                data:
                  type: string
                  description: JSON describing the annotation for each uploaded file.
      responses:
        '200':
          description: Upload acknowledged with totals per category.
  /OCR/Model/{model_id}/UploadUrls/:
    post:
      tags:
      - OCR Train
      summary: Upload Training Images By URL
      description: Upload training images for a model via publicly accessible URLs.
      operationId: ocrModelUploadUrlsByModelIdPost
      parameters:
      - $ref: '#/components/parameters/ModelId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - urls
              properties:
                urls:
                  type: array
                  items:
                    type: string
                    format: uri
                data:
                  type: string
      responses:
        '200':
          description: Upload acknowledged.
  /OCR/Model/{model_id}/Train/:
    post:
      tags:
      - OCR Train
      summary: Train Model
      description: Train or retrain a Nanonets OCR model after training data has been uploaded.
      operationId: ocrModelTrainByModelIdPost
      parameters:
      - $ref: '#/components/parameters/ModelId'
      responses:
        '200':
          description: Training job queued or running.
components:
  parameters:
    ModelId:
      name: model_id
      in: path
      required: true
      schema:
        type: string
      description: Unique identifier for the Nanonets model.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic