Developers
Explore Wrongthinking models and the API for integrating predictions and simulations into your application.
API v1
API endpoints
- GET
/v1/modelsList di models wey you fit integrate.
- POST
/v1/predictionsSend prediction request with di model and its input object.
- GET
/v1/predictions/:idCheck di status and collect di result.
Start quick
Try a demand forecast with Chronos-2 using your credentials.
The API accepts one asynchronous job per request. The body includes the model ID and its input object. Send the key in Authorization from your server.
POST /v1/predictionsSend di input. Keep an idempotency key if you fit need to try again.202 AcceptedSave di ID and result URL while di job dey run.GET /v1/predictions/:idCheck di status and read di result when di prediction finish.
Example statuses queued → running → completed / failed.
If you get 401, check di API key. If you get 429, wait before you try again with di same idempotency key.
POST /v1/predictions HTTP/1.1Host: wrongthinking.comAuthorization: Bearer <API_KEY>Content-Type: application/jsonIdempotency-Key: <REQUEST_KEY> { "model": "chronos2", "input": { "values": [12, 15, 17, 16, 19, 18, 20, 24, 22, 25, 26, 29], "horizon": 2 }}Authentication
Create a key in Studio → Developers → API keys. Store it on your server and send it in the Authorization header.
Authorization: Bearer <API_KEY>API reference
Check each model guide for inputs, Studio limits, and output format.
- GET
/v1/modelsList di models wey you fit integrate.
- POST
/v1/predictionsSend prediction request with di model and its input object.
- GET
/v1/predictions/:idCheck di status and collect di result.
- POST
/v1/batchesSend plenty inputs to di same model.
- GET
/v1/batches/:idCheck di batch status and di result for each item.
Callbacks
callback_url is an optional HTTPS URL on your server. The event reports the terminal status and includes a reference for retrieving the response.
- prediction.completed
- Di prediction don finish. You fit collect di result.
- prediction.failed
- Di prediction fail. Check its status to see di error.
- batch.completed
- Di batch don finish. Check each item even if di batch only succeed in part.
When integrating, verify the signature before accepting the event, deduplicate by ID, and return 2xx after recording it. Compute HMAC-SHA256 using your signing secret as text and Wrongthinking-Timestamp + a dot + the raw body. Compare the hex digest with Wrongthinking-Signature after v1=. Retries follow the previous failure after 1, 5 and 15 minutes.
{ "id": "evt_demo_001", "type": "prediction.completed", "data": { "id": "pred_demo_001", "model": "chronos2", "status": "completed", "result_url": "/v1/predictions/pred_demo_001" }}Batch processing
Put inputs for di same model inside items. Give each input its own custom_id so you fit match di results even when jobs finish for different order.
POST /v1/batchesCheck say each input valid. Split di work into more batches if di total size or item count pass di limit.GET /v1/batches/:idCheck di status for every item. Some items fit succeed and others fit fail for di same batch.custom_idKeep di results wey succeed. Make another batch with only di items wey fit run again.
Each batch accepts 1–8 items, 512 KiB of JSON and 3 MiB of images combined. Up to two predictions run concurrently per account.
POST /v1/batches HTTP/1.1Host: wrongthinking.comAuthorization: Bearer <API_KEY>Content-Type: application/jsonIdempotency-Key: <REQUEST_KEY> { "model": "chronos2", "items": [ { "custom_id": "case-01", "input": { "values": [12, 15, 17, 16, 19, 18, 20, 24, 22, 25, 26, 29], "horizon": 2 } }, { "custom_id": "case-02", "input": { "values": [12, 15, 17, 16, 19, 18, 20, 24, 22, 25, 26, 29], "horizon": 2 } } ]}Models
Find a model by analysis type. Each guide includes its ID, fields, and API examples.
Forecasting
Where people look
Simulation
Cause and effect analysis
API prices
Prices dey load…
See Studio plansDevelopers for Studio
Sign in to open Developers for your account.
- OverviewWhere to start for Developers in Studio.
- ModelsCatalogue, technical guides and prices for each model.
- API keysCreate and revoke integration keys.
- UsageDaily requests, errors, and accepted predictions.
- API costsPrivate history of estimated costs for work wey run for Studio.
- RequestsView request history and HTTP responses.
- LogsReview job outcomes and callback deliveries.
- DocsAuthentication and examples of the API.