R
RunPod7mo ago
tre3x

Does RunPod serverless handler support FastAPI?

I am trying to migrate an already existing FastAPI application running ML model to RunPod serverless. Does the serverless handler, that needs to be dockerized, support FastAPI?
4 Replies
digigoblin
digigoblin7mo ago
You shouldn't use FastAPI in serverless, its already an API, just create a handler function.
tre3x
tre3xOP7mo ago
Thanks. So, a handler function that routes to multiple endpoints?
digigoblin
digigoblin7mo ago
No, you have to use RunPod API routes like /run, /runsync etc, you can't add custom ones
tre3x
tre3xOP7mo ago
Got it.
Want results from more Discord servers?
Add your server