Co-authored-by: Mughees Ahmad <itsmughees@gmail.com>
This commit is contained in:
Glenn Jocher 2024-06-22 13:39:57 +02:00 committed by GitHub
parent fc527a9825
commit 4adf5a003c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 66 additions and 66 deletions

View file

@ -6,7 +6,7 @@ keywords: Ultralytics, HUB, Inference API, Python, cURL, REST API, YOLO, image p
# Ultralytics HUB Inference API
The [Ultralytics HUB](https://bit.ly/ultralytics_hub) Inference API allows you to run inference through our REST API without the need to install and set up the Ultralytics YOLO environment locally.
The [Ultralytics HUB](https://ultralytics.com/hub) Inference API allows you to run inference through our REST API without the need to install and set up the Ultralytics YOLO environment locally.
![Ultralytics HUB screenshot of the Deploy tab inside the Model page with an arrow pointing to the Ultralytics Inference API card](https://raw.githubusercontent.com/ultralytics/assets/main/docs/hub/inference-api/hub_inference_api_1.jpg)
@ -22,7 +22,7 @@ The [Ultralytics HUB](https://bit.ly/ultralytics_hub) Inference API allows you t
## Python
To access the [Ultralytics HUB](https://bit.ly/ultralytics_hub) Inference API using Python, use the following code:
To access the [Ultralytics HUB](https://ultralytics.com/hub) Inference API using Python, use the following code:
```python
import requests
@ -50,7 +50,7 @@ print(response.json())
## cURL
To access the [Ultralytics HUB](https://bit.ly/ultralytics_hub) Inference API using cURL, use the following code:
To access the [Ultralytics HUB](https://ultralytics.com/hub) Inference API using cURL, use the following code:
```bash
curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
@ -79,7 +79,7 @@ See the table below for a full list of available inference arguments.
## Response
The [Ultralytics HUB](https://bit.ly/ultralytics_hub) Inference API returns a JSON response.
The [Ultralytics HUB](https://ultralytics.com/hub) Inference API returns a JSON response.
### Classification