> For the complete documentation index, see [llms.txt](https://docs.nvision.nipa.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nvision.nipa.cloud/api-concepts/restful-calls.md). Agents can also search and read this documentation through its [MCP server](https://docs.nvision.nipa.cloud/~gitbook/mcp).

# RESTful Calls

Nvision cloud service provides two types of APIs. With our flexible API protocols across **RESTful** for synchronized **image** processing and **WebSocket** for real-time **video** analysis with a stream processing. Learn more, [what is Nvision service](https://docs.nvision.nipa.cloud/#what-is-the-nvision-service). Integrating our machine learning services into your technology stack has never been easier. Ranging from edge applications to back-end services.

Both image and video processing support the same API services which can detect and recognize labels with a wide range of categories. For more information about the Nvision services provided, see [machine learning services](https://docs.nvision.nipa.cloud/machine-learning-services).

## Nvision Image Processing <a href="#nvision-image-processing" id="nvision-image-processing"></a>

Nvision image processing is **synchronous**. The input requests and output responses are structured in JSON format. You can make a **RESTful API call** by sending an image as a **base64 encoded** **string** in the body of your request, see [make API calls](https://docs.nvision.nipa.cloud/quickstarts/make-a-restful-call) quickstart.

![](https://2932935863-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3POiPF9kIwLC_xa_T2%2F-M4CTY4KOPnGhFyWoTpP%2F-M4CTZ-qZJ8vI9MBkuFn%2Fnvision-pic-nn1.png?generation=1586142791257335\&alt=media)

The API is built around a simple idea that you send an image input to the service and receives prediction results. The API is accessible via the domain, `https://nvision.nipa.cloud/api/v1/<<service_name>>` over **HTTP** to **POST** data as an example cURL command below:

```bash
curl -X POST \                                        
-H 'Authorization: ApiKey '$YOUR_API_KEY \
-H 'Content-Type: application/json' \
-d '{"raw_data": <<BASE64_ENCODED_IMAGE>>}` \
https://nvision.nipa.cloud/api/v1/<<service_name>>
```

We also provide Nipa Cloud SDKs to call Nvision API in your own language, see the [API Reference](https://docs.nvision.nipa.cloud/api-references/api-guide) in this guide covers calling Nvision API for JavaScript and Python.
