Masu haɓakawa
Explore Wrongthinking models and the API for integrating predictions and simulations into your application.
API v1
Hanyoyin API
- GET
/v1/modelsDuba kundin samfurorin da za a iya haɗawa da manhaja.
- POST
/v1/predictionsAika buƙatar hasashe tare da samfuri da abin da ke ɗauke da bayanan shigarwa.
- GET
/v1/predictions/:idDuba matsayi kuma karɓo sakamako.
Farawa cikin sauri
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/predictionsAika bayanan shigarwa. Adana maɓallin idempotency idan za ka sake gwadawa.202 AcceptedAdana ID da URL na sakamako yayin da aikin ke gudana.GET /v1/predictions/:idDuba matsayi kuma karanta sakamakon idan hasashen ya ƙare.
Misalan matsayi queued → running → completed / failed.
Idan ka sami 401, duba maɓallin API. Idan ka sami 429, jira kafin sake gwadawa da maɓallin idempotency ɗaya.
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 }}Tabbatar da asali
Create a key in Studio → Developers → API keys. Store it on your server and send it in the Authorization header.
Authorization: Bearer <API_KEY>Bayanan API
Check each model guide for inputs, Studio limits, and output format.
- GET
/v1/modelsDuba kundin samfurorin da za a iya haɗawa da manhaja.
- POST
/v1/predictionsAika buƙatar hasashe tare da samfuri da abin da ke ɗauke da bayanan shigarwa.
- GET
/v1/predictions/:idDuba matsayi kuma karɓo sakamako.
- POST
/v1/batchesAika bayanan shigarwa da yawa zuwa samfuri guda.
- GET
/v1/batches/:idDuba matsayin rukuni da sakamakon kowane abu.
Kiran komawa
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
- Hasashen ya ƙare. Ana iya karɓo sakamako.
- prediction.failed
- Hasashen bai yi nasara ba. Duba matsayinsa don ganin kuskuren.
- batch.completed
- An gama rukunin. Duba kowane abu ko da matsayin rukunin ya nuna nasara ta wani ɓangare kawai.
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" }}Sarrafa bayanai a rukuni
Tara bayanan shigarwar samfuri ɗaya ƙarƙashin items. Ba kowane abu custom_id na musamman don haɗa shi da sakamakonsa ko da aikin ya ƙare ba bisa tsari ba.
POST /v1/batchesTabbatar da ingancin kowane abu. Raba aikin zuwa rukuni da yawa idan jimillar girma ko adadin abubuwa ya wuce iyaka.GET /v1/batches/:idDuba matsayin kowane abu. Rukuni guda zai iya ƙunsar abubuwan da suka yi nasara da waɗanda suka kasa.custom_idAdana sakamakon da ya yi nasara. Haɗa wani rukuni da abubuwan da za a iya sake gwadawa kawai.
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 } } ]}Samfurori
Find a model by analysis type. Each guide includes its ID, fields, and API examples.
Hasashe
Maida hankali da ido
Nazarin dalili da sakamako
Farashin API
Ana loda farashi…
Duba tsare-tsaren StudioSashen masu haɓaka manhaja a Studio
Shiga asusunka domin buɗe sashen masu haɓaka manhaja.
- Taƙaitaccen bayaniWurin farawa na sashen masu haɓaka manhaja a Studio.
- SamfuroriKundi, jagororin fasaha da farashin kowane samfuri.
- Maɓallan APICreate and revoke integration keys.
- AmfaniDaily requests, errors, and accepted predictions.
- Kuɗaɗen APITarihin sirri na ƙiyasin kuɗin ayyukan da aka gudanar a Studio.
- BuƙatuView request history and HTTP responses.
- Rajistan aikiReview job outcomes and callback deliveries.
- TakarduAuthentication and examples of the API.