Skip to main content
POST
Generates a demand forecast for a single data point. Requires API key authentication.

Authentication

string
required
API key for authentication. Verified server-side using Argon2id hashing with constant-time comparison.

Parameters

object
required
Dictionary of input features for the model.

Response

float
required
Predicted bike rental count for the given conditions.
float
required
Prediction confidence score (0.50–0.95).
string
required
Always "production" for the primary model.
string
required
Identifier for the model that served the request (e.g., "production" or "challenger").
string
required
ISO 8601 timestamp of when the prediction was generated.

Body

application/json
features
object

Key-value pairs of features

Example:

Response

Successful prediction

prediction
number
Example:

452.3

confidence
number
Example:

0.85

model_version
string
Example:

"production"

timestamp
string
model_id
string