> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-hi/deploy/serverless-hosted-api-v2.md).

# Serverless Hosted API

Roboflow पर तैनात मॉडलों के लिए एक REST API उपलब्ध होती है, जिसके माध्यम से आप छवियों पर inference चला सकते हैं। यह deployment method उन environments के लिए आदर्श है जहाँ आपके deployment device पर एक स्थायी इंटरनेट कनेक्शन हो।

आप Serverless Hosted API का उपयोग कर सकते हैं:

* [Workflows में](/roboflow/roboflow-hi/deploy/serverless-hosted-api-v2/use-in-a-workflow.md)
* [REST API के साथ](/roboflow/roboflow-hi/deploy/serverless-hosted-api-v2/use-with-the-rest-api.md)
* के साथ [Inference Python SDK](/roboflow/roboflow-hi/deploy/serverless-hosted-api-v2/use-with-python-sdk.md)

### Inference server

हमारी Serverless Hosted API को संचालित करता है [Inference Server](https://inference.roboflow.com/api/). इसका मतलब है कि आप नीचे दिखाए अनुसार, हमारी Serverless Hosted API और self-hosting विकल्प के बीच आसानी से बदल सकते हैं, और इसके विपरीत भी:

```python
from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    # api_url="http://localhost:9001" # Self-hosted Inference server
    api_url="https://serverless.roboflow.com", # हमारी Serverless hosted API
    api_key="API_KEY" # आपके private models और data तक पहुँचने के लिए वैकल्पिक
)

result = CLIENT.infer("image.jpg", model_id="model-id/1")
print(result)
```

### सीमाएँ

हमारी Serverless Hosted API 20MB तक के file uploads का समर्थन करती है। आपको उच्च-resolution images के साथ सीमाओं का सामना करना पड़ सकता है। यदि आपको कोई issue आए, तो कृपया अपने enterprise support contact से संपर्क करें या the पर एक संदेश पोस्ट करें [forum](https://discuss.roboflow.com).

{% hint style="info" %}
उन मामलों में जहाँ requests बहुत बड़ी हों, हम किसी भी संलग्न images का आकार कम करने की सिफारिश करते हैं। आमतौर पर इससे performance खराब नहीं होगी, क्योंकि images प्राप्त होने के बाद भी हमारे servers पर उन्हें model architecture द्वारा स्वीकार किए जाने वाले input size तक अपने-आप छोटा किया जाता है।\
\
हमारे कुछ SDKs, जैसे Python SDK, API पर भेजे जाने से पहले images को model architecture के input size तक अपने-आप छोटा कर देते हैं।
{% endhint %}

***

यह हमारी Serverless Hosted API का V2 है। देखें [Serverless Hosted API v1](/roboflow/roboflow-hi/deploy/serverless.md) v1 (legacy) API documentation के लिए।


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.roboflow.com/roboflow/roboflow-hi/deploy/serverless-hosted-api-v2.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.
