flâneur — a map of the web's best reading

Serverless | Create a Custom Basic API

blog.runpod.io · 923 words · saved by 1 readers

RunPod's Serverless platform allows for the creation of API endpoints that automatically scale to meet demand. The tutorial guides you through creating a basic worker and turning it into an API endpoint on the RunPod serverless platform. For this tutorial, we will create an API endpoint that helps us accomplish the tedious task of telling us if our number is even. To follow along, you should have a local environment with Python, some basic knowledge of Docker, and the ability to build Docker containers. All the code can be found in the IsEven repository. The first step is to have code that will take a job input, do something, and return the results. Note that our input is being passed in a "job," containing the input we sent to our API. The structure will look like this: Finally, we have our return that will be passed back when we check the status of the API request. You can return anything and it will appear as the output in the returned JSON. Here we are returning True or False but c

Quickstart - Runpod Documentation Documentation Index Fetch the complete documentation index at: /llms.txt Use this file to discover all available pages before exploring further. Skip to main content Docs Examples Community CLI API Models Release notes For an even faster start, clone or download the worker-basic repository for a pre-configured template for building and deploying Serverless workers. After cloning the repository, skip to step 6 of this tutorial to deploy and test the endpoint. ​ Requirements You’ve created a Runpod account . You’ve installed Python 3.x and Docker on your local m

Explore this link on the map →

saved by

related reading