# 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.

![](/files/-M4CTZ-qZJ8vI9MBkuFn)

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nvision.nipa.cloud/api-concepts/restful-calls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
