Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Multiple endpoints within one handler - Runpod
R
Runpod
•
16mo ago
•
6 replies
zfmoodydub
Multiple endpoints within one handler
I have had success creating serverless endpoints in runpod with handler
.py files that look like this
:
imports
.
.
.
def handler
(job
)
:
job
_input
= job
[
'input
'
]
.
.
.
return result
runpod
.serverless
.start
(
{
"handler
"
: handler
}
)
Now im trying to deploy a severless endpoint with a handler that has two individual functions instead of one
.
With a traditional flask api set up
, it would look like two app
.routes
.
I understand runpod doesnt work with flask
But if i were to want to structure a handler
.py with multiple endpoints
(multiple different def handler
(job
) methods
)
, how would i do that
?
and then how would i call those endpoints
?
I would assume its like this
:
https://api.runpod.ai/v2/.../runsync/
<endpoint1
>
https://api.runpod.ai/v2/.../runsync/
<endpoint2
>
Can anyone assist me in solving this problem
?
Runpod
Join
We're a community of enthusiasts, engineers, and enterprises, all sharing insights on AI, Machine Learning and GPUs!
21,202
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Throttling on multiple endpoints and failed workers
R
Runpod / ⚡|serverless
4mo ago
Ongoing Throttling Issues with Multiple Serverless Endpoints
R
Runpod / ⚡|serverless
4mo ago
Application error on one of my serverless endpoints
R
Runpod / ⚡|serverless
17mo ago
embeddings endpoints
R
Runpod / ⚡|serverless
14mo ago