openapi: 3.1.0 info: title: CodeProject.AI Server Articles Image-Processing API description: CodeProject.AI Server is a self-contained, self-hosted, free and open-source AI service that exposes computer-vision, audio, NLP, and model-training capabilities through a local HTTP REST API. It runs on Windows, macOS, Linux, Raspberry Pi, NVIDIA Jetson, OrangePi, and as a Docker container, and is most often integrated with home-automation and surveillance platforms (Blue Iris, Home Assistant, Agent DVR) for object detection, face recognition, ALPR (license-plate), and scene classification. All endpoints are POST and accept multipart/form-data uploads. version: '2.9' contact: name: CodeProject.AI Server url: https://www.codeproject.com/AI/ license: name: GPL-3.0 url: https://github.com/codeproject/CodeProject.AI-Server/blob/main/LICENSE servers: - url: http://localhost:32168 description: Default local CodeProject.AI Server endpoint tags: - name: Image-Processing description: Background removal, cartoonise, portrait filter, super-resolution. paths: /v1/image/removebackground: post: operationId: removeBackground summary: Remove the background from an image tags: - Image-Processing requestBody: required: true content: multipart/form-data: schema: type: object required: - image properties: image: type: string format: binary use_alphamatting: type: boolean responses: '200': description: Image with background removed /v1/image/cartoonise: post: operationId: cartoonise summary: Convert an image to anime/cartoon style tags: - Image-Processing requestBody: required: true content: multipart/form-data: schema: type: object required: - image properties: image: type: string format: binary responses: '200': description: Cartoonised image /v1/image/portraitfilter: post: operationId: portraitFilter summary: Apply a portrait/background-blur effect tags: - Image-Processing requestBody: required: true content: multipart/form-data: schema: type: object required: - image properties: image: type: string format: binary strength: type: number format: float responses: '200': description: Filtered image /v1/image/superresolution: post: operationId: superResolution summary: Upscale an image tags: - Image-Processing requestBody: required: true content: multipart/form-data: schema: type: object required: - image properties: image: type: string format: binary responses: '200': description: Upscaled image components: securitySchemes: none: type: apiKey in: header name: X-Disabled description: CodeProject.AI Server runs locally and does not require authentication by default. Operators are expected to keep the service on a private network or behind their own reverse proxy. externalDocs: description: CodeProject.AI Server documentation url: https://codeproject.github.io/codeproject.ai/