VitalLens API

Harness the capabilities of VitalLens in your own products.

Easily estimate vital signs from video

The VitalLens API uses AI to estimate vital signs such as heart rate and respiratory rate from video of face and upper body.

VitalLens API Plans

Choose the plan that suits your needs.

Plan Price Request Credits Overage Charge Rate Limit Request Limit
Free $0/month 100 requests/month - 2 requests/second 100 requests/month
Tier 1 $200/month 2,500 requests/month $0.08/request 25 requests/second 25,000 requests/month
Tier 2 $1,000/month 25,000 requests/month $0.04/request 250 requests/second 250,000 requests/month
Tier 3 $5,000/month 300,000 requests/month $0.0167/request 3,000 requests/second 3,000,000 requests/month
Unlimited Contact us

Frequently asked questions

What is the VitalLens API?

The VitalLens API is a web-based service that estimates a person's vital signs from a video of their face and upper body.

Which vital signs are estimated by the VitalLens API?

TLDR: Heart rate (HR), respiratory rate (RR), pulse waveform, and respiratory waveform.

The VitalLens API provides an estimate of the pulse waveform and respiratory waveform at the same sampling rate as the provided video. From this, heart rate (HR) and respiratory rate (RR) are derived by our Python Client and SDKs.

It is theoretically possible to also derive heart rate variability (HRV) from the pulse waveform, however we have not yet validated the accuracy of this - such a study is on our roadmap. Our roadmap also includes additional vital signs such as blood oxygen (SpO2) and blood pressure (BP).

How accurate are these vital sign estimates?

TLDR: Estimates have a high degree of accuracy for high-quality video. Each estimate includes an estimation confidence.

We have conducted a study on the Vital Videos dataset with 289 unique participants, showing a mean absolute error for HR at 0.71 bpm and for RR at 0.76 bpm.

For each vital sign estimate, the VitalLens API also produces an estimation confidence between 0% and 100%. When these confidences are lower, this means that accuracies are not as high as the above results - this can be mitigated by ensuring high-quality videos with our guidelines outlined below.

How do I get access to the VitalLens API?

To get access to the VitalLens API, please first use the button above to register for an API Key. You will receive an email with a link to verify your account. Once verified, we will automatically generate your unique API Key associated with the free plan. You can then log in on this page to view your API Key and start using the VitalLens API.

How do I use the VitalLens API?

As of now, the best way to use the VitalLens API is with our Python Client. Install the client:


pip install vitallens
              

Get vital signs estimates from a video in a few lines of code:


from vitallens import VitalLens, Method

vl = VitalLens(method=Method.VITALLENS, api_key="YOUR_API_KEY")
result = vl("video.mp4")
print(result)
              

In the future, we will also provide SDKs for iOS and Android, as well as a detailed API documentation so you can choose to directly access the VitalLens API.

How does the VitalLens API work?

For each request, the VitalLens API accepts a maximum of 900 frames of spatially downsampled video depicting a single person's face and upper body at resolution 40x40px. This video is passed through our neural net, which produces estimates for several vital signs. These estimates are then sent back, after which both the video frames and estimates are disposed of.

What is the purpose of our Python Client and SDKs?

Our Python Client and SDKs are provided to handle face detection, video cropping and spatial downsampling, splitting of longer videos, as well as API interaction for you.

What guidelines should I follow for accurate vital signs estimation?

To ensure accurate vital signs estimation, follow these guidelines:

  • Minimize camera movement.
  • Keep the subject still and facing the camera.
  • Ensure a bright and steady light source.
  • Video compression can destroy the vitals signal. Use as little video compression as possible.

These guidelines are informed by our study in which we investigated how environmental factors such as the above impact estimation accuracy of VitalLens.

Additionally, a good internet connection and sufficient bandwidth are required for optimal performance of the API.

How much video does each request in my plan cover?

Each request covers one call to the VitalLens API, which can include up to 900 frames of video. For example, that would be up to 30 seconds of video at 30 frames per second.

If you are using our Python Client with a longer video of N frames, it will be split into multiple segments and use ceil((N - 900) / (870)) + 1 requests.

How do I switch to a paid plan with more requests?

Please contact us at vitallens@rouast.com.

Does the VitalLens API collect any of my video or vital sign estimates?

No, we do not collect or store any of your video or vital sign estimates data. After returning the API request result, we immediately dispose of this data - hence it is your responsibility to store the returned estimates. Please also see our Terms of Service for more information.

Does the VitalLens API provide vital sign estimates suitable for medical purposes?

No, VitalLens is not a medical device and its estimates are not intended for any medical purposes. Please also see our Terms of Service for more information.