Install Dependencies pip install google-cloud-aiplatform google-cloud-aiplatform[tokenization] fastapi Run Dev Server fastapi dev app.py Folder Structure . ├── README.md ├── app.py ├── count_tokens.ipynb └── count_tokens.py 2 directories, 6 files