APIs
- Predictions
- Datasets
- Fine-tune models
- API Keys
Predictions
Make a prediction
POST
/
predictions
Copy
curl --request POST \
--url https://api.timesdb.in/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"series_id": "<string>",
"ai_model_id": "<string>",
"series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"is_async": false,
"fine_tuning_epochs": 123
}'
Copy
{
"id": "<string>",
"ai_model_id": "<string>",
"status": "QUEUED",
"input_series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"prediction_series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"input_series_id": "<string>",
"prediction_series_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
Successful Response
The response is of type object
.
Copy
curl --request POST \
--url https://api.timesdb.in/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"series_id": "<string>",
"ai_model_id": "<string>",
"series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"is_async": false,
"fine_tuning_epochs": 123
}'
Copy
{
"id": "<string>",
"ai_model_id": "<string>",
"status": "QUEUED",
"input_series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"prediction_series": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"metadata": {}
}
],
"input_series_id": "<string>",
"prediction_series_id": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.