Server mode
Get Endpoint via Float16
Last updated
Get Endpoint via Float16
Last updated
This tutorial guides you through deploying a simple FastAPI "Hello World" application using Float16's deployment mode.
(server.py)
(utils.py)
float16.conf
: Contains your project ID
requirements.txt
: Initially empty
After successful deployment, you'll receive:
Function Endpoint
Server Endpoint
API Key
Example:
Use the provided endpoints with the API key (bearer token) to make requests.
Endpoint Request Example:
Path: /hello
Expected Response: {"message": "Hello World!"}
Congratulations! You've successfully use your first server mode on Float16's serverless GPU platform.
Learn how to use Float16 CLI for various use cases in our tutorials.
Happy coding with Float16 Serverless GPU!
If you cannot create new project,
To understand the differences between function and server modes, refer to .
Hello World
Launch your first serverless GPU function and kickstart your journey.
Install new library
Enhance your toolkit by adding new libraries tailored to your project needs.
Copy output from remote
Efficiently transfer computation results from remote to your local storage.
Deploy FastAPI Helloworld
Quick start to deploy FastAPI without change the code.
Upload and Download via CLI and Website
Direct upload and download file(s) to server.
More examples
Open source from community and Float16 team.