# Deploy Uvicorn APIs

Deploy Uvicorn APIs to Hal9

## Deploy Uvicorn APIs

In order to deploy Uvicorn APIs to our cloud, use the hal9 python package:

```
$ pip install hal9
$ hal9 deploy app --type uvicorn --main app.py
```

Login required to generate deployment token.

```
from fastapi import FastAPI
import random
app = FastAPI()
@app.get("/")
async def roll():
  return random.randint(1, 6)
```

[ON GITHUB](https://github.com/hal9ai/hal9) [RUN IN COLLAB](https://colab.research.google.com/github/hal9ai/hal9/blob/main/python/hal9.ipynb)

## What kind of Uvicorn APIs can Hal9 create?

Explore Uvicorn APIs created with Hal9

## Next gen

## AI platform

Hal9 brings the AI revolution to creators with an all-in-one AI platform specialized in generative AI.
