/menu and search for 'API' or type
/apito find the Create API block.
Untitledto name your API, choose a name that's related to the model you'll be serving.
Deployand you should see the progress bar as the model is getting packaged, containerized and deployed. Deploying usually takes 5-10 seconds before the endpoint is ready and being served.
RESTendpoint, it can be queried from other websites and apps using a
Authorizationheader with the bearer token.
Paste sample requestbutton at the bottom left to paste a code block below the API block with sample code on querying the API
JSONinput fields, query a feature store, as a step before you call the model's
predictfunction. You may also want to customize the output before your API returns. You can do these things by clicking on
Customizenext to the model dropdown. Here you're given an area to write any additional code to execute before and after the predict.
Redeployat the top right. Your API endpoint and bearer token will remain the same for anyone consuming it, but it will now serve the new model!
Deactivatebutton on the top right. When you deactivate an API, it will be taken down and it will not receive incoming requests.
APIsdatabase in your workspace. Learn more about how the workspace database organization works. From there you'll be able to access the API, deactivate it, update its model, customize it further, and share a link to it.