domino logo
3.6
  • Deployment-wide Search
  • Get Started
  • Security and Credentials
  • Collaborate
  • Organizations
  • Projects
  • Domino Datasets
  • External Data
  • Workspaces
  • Environments
  • Executions
  • Model APIs
  • Publish
  • Notifications
  • Domino Command Line Interface (CLI)
  • Troubleshooting
  • Get Help
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
User Guide
>
Model APIs

Model APIs

Domino Model APIs are REST API endpoints that run your Domino code. These endpoints are automatically served and scaled by Domino to provide programmatic access to your R and Python data science code. You can use Domino Model APIs to quickly and easily put data science code into production.

A Domino Model API is a REST API endpoint wrapped around a function in your code. The arguments to your function are supplied as parameters in the request payload, and the response from the API includes the return value from your function.

When a Model API is published, Domino first runs the script containing the function. The process then waits for input, so any objects or functions from the script remain available in memory. Each call to the endpoint runs the function within this same process. Because the script is only sourced once, at publish time, any more expensive initialization can happen up front, rather than happening on each call.

Key features

Production-ready infrastructure

Models are reliable, available, and scalable for most businesses' production use cases. See Configure a Model for Deployment for more information.

Versioning and reproducibility

Models are versioned. You can redeploy each version so you can revert to previous good states.

Discoverability and access control

Domino models are first class objects in Domino, separate from projects.

  • Models have their own permissions. See Share and Collaborate on Models for details.

  • Models have audit logging so you can track usage, management, and maintenance activity.

  • Model endpoints can be set up to require access token authentication. See Select How To Authorize a Model for details.

    Promote-to-production workflow

    Domino supports an advanced routing mode which provides a promote-to-production workflow where you can test with one version of a model and take production traffic on another version. See Configure a Model for Deployment for details.

See Troubleshoot Domino Models for troubleshooting information.

Domino Data LabKnowledge BaseData Science BlogTraining
Copyright © 2022 Domino Data Lab. All rights reserved.