naftiko: 1.0.0-alpha2 info: label: Nanonets Image Classification API — Predict description: Sync prediction against a Nanonets image classification model via uploaded files or public URLs. tags: [Nanonets, Image Classification] created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: { NANONETS_API_KEY: NANONETS_API_KEY } capability: consumes: - type: http namespace: image-classification baseUri: https://app.nanonets.com/api/v2 description: Nanonets image classification surface. resources: - name: label-file path: /ImageCategorization/LabelFile/ operations: - { name: classifyFile, method: POST, description: 'Classify uploaded image file.', outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ], inputParameters: [ { name: body, in: body, type: object, required: true } ] } - name: label-urls path: /ImageCategorization/LabelUrls/ operations: - { name: classifyUrls, method: POST, description: 'Classify one or more public image URLs.', outputRawFormat: json, outputParameters: [ { name: result, type: object, value: $. } ], inputParameters: [ { name: body, in: body, type: object, required: true } ] } authentication: type: basic username: '{{env.NANONETS_API_KEY}}' password: '' exposes: - type: rest namespace: image-classification-rest port: 8080 description: REST adapter for image classification. resources: - path: /v1/image/classify-file name: classify-file operations: - { method: POST, name: classifyFile, description: 'Classify uploaded image file.', call: image-classification.classifyFile, with: { body: rest.body } } - path: /v1/image/classify-urls name: classify-urls operations: - { method: POST, name: classifyUrls, description: 'Classify public image URLs.', call: image-classification.classifyUrls, with: { body: rest.body } } - type: mcp namespace: image-classification-mcp port: 9090 transport: http description: MCP adapter for image classification. tools: - { name: nanonets-classify-file, description: 'Classify uploaded image file.', hints: { readOnly: false, destructive: false, idempotent: true }, call: image-classification.classifyFile, with: { body: tools.body } } - { name: nanonets-classify-urls, description: 'Classify public image URLs.', hints: { readOnly: false, destructive: false, idempotent: true }, call: image-classification.classifyUrls, with: { body: tools.body } }