/
menu and search for 'API' or type /api
to find the Create API block.Untitled
to name your API, choose a name that's related to the model you'll be serving.Deploy
and 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.REST
endpoint, it can be queried from other websites and apps using a POST
request. Authorization
header with the bearer token. Paste sample request
button at the bottom left to paste a code block below the API block with sample code on querying the APIJSON
input fields, query a feature store, as a step before you call the model's predict
function. You may also want to customize the output before your API returns. You can do these things by clicking on Customize
next to the model dropdown. Here you're given an area to write any additional code to execute before and after the predict.Redeploy
at 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!Deactivate
button on the top right. When you deactivate an API, it will be taken down and it will not receive incoming requests.APIs
database 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. APIs
.