ڈویلپر
Explore Wrongthinking models and the API for integrating predictions and simulations into your application.
API v1
API دے رستے
- GET
/v1/modelsہور ایپاں نال جوڑن لئی ماڈلاں دی فہرست ویکھو۔
- POST
/v1/predictionsماڈل تے اِن پٹ آبجیکٹ نال پیش گوئی دی درخواست گھلو۔
- GET
/v1/predictions/:idحالت ویکھو تے نتیجہ لو۔
چھیتی شروع کرو
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/predictionsاِن پٹ گھلو۔ جے فیر کوشش کرنی ہووے تاں idempotency کِنجی سانبھ لو۔202 Acceptedکم چلدا پیا ہووے تاں ID تے نتیجے دا URL سانبھ لو۔GET /v1/predictions/:idحالت ویکھو تے پیش گوئی پوری ہووے تاں نتیجہ پڑھو۔
حالتاں دیاں مثالاں queued → running → completed / failed.
جے 401 آوے تاں API کِنجی ویکھو۔ جے 429 آوے تاں ذرا ٹھہر کے اوسے idempotency کِنجی نال فیر کوشش کرو۔
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 }}پچھان دی تصدیق
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 دا حوالہ
Check each model guide for inputs, Studio limits, and output format.
- GET
/v1/modelsہور ایپاں نال جوڑن لئی ماڈلاں دی فہرست ویکھو۔
- POST
/v1/predictionsماڈل تے اِن پٹ آبجیکٹ نال پیش گوئی دی درخواست گھلو۔
- GET
/v1/predictions/:idحالت ویکھو تے نتیجہ لو۔
- POST
/v1/batchesاکو ماڈل نوں کئی اِن پٹ گھلو۔
- GET
/v1/batches/:idبیچ دی حالت تے ہر آئٹم دا نتیجہ ویکھو۔
کال بیک
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
- پیش گوئی پوری ہو گئی۔ نتیجہ لیا جا سکدا اے۔
- prediction.failed
- پیش گوئی نہیں بنی۔ غلطی جانن لئی اوہدی حالت ویکھو۔
- batch.completed
- بیچ دا کم مک گیا۔ ہر آئٹم ویکھو، بھاویں بیچ دا کجھ حصہ ای کامیاب ہویا ہووے۔
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" }}بیچ وچ کم کرنا
اکو ماڈل دے اِن پٹ items وچ اکٹھے کرو۔ ہر اِن پٹ لئی وکھری custom_id رکھو تاں جو کم اگے پچھے مکّن تے وی نتیجہ لبھے۔
POST /v1/batchesہر اِن پٹ دی پڑتال کرو۔ جے کُل سائز یا آئٹماں دی گِنتی حد توں ودھ جاوے تاں کم نوں کئی بیچاں وچ ونڈو۔GET /v1/batches/:idہر آئٹم دی حالت ویکھو۔ اک بیچ وچ کجھ آئٹم کامیاب تے کجھ ناکام ہو سکدے نیں۔custom_idکامیاب نتیجے سانبھ لو۔ اگلا بیچ صرف اوہناں آئٹماں نال بناؤ جنہاں دی فیر کوشش ہو سکدی اے۔
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 } } ]}ماڈل
Find a model by analysis type. Each guide includes its ID, fields, and API examples.
پیش گوئی
نظر دا دھیان
کارن تے اثر دا تجزیہ
API دے مُل
مُل لوڈ ہو رہے نیں…
Studio دے پلان ویکھوStudio وچ ڈویلپر دا حصہ
اپنے کھاتے وچ ڈویلپر دا حصہ کھولن لئی لاگ ان کرو۔
- جائزہStudio وچ ڈویلپر دے حصے دی شروعات۔
- ماڈلفہرست، تکنیکی رہنمائی تے ہر ماڈل دا مُل۔
- API کِنجیاںCreate and revoke integration keys.
- ورتوںDaily requests, errors, and accepted predictions.
- API دے خرچےStudio وچ چلائے کم دے اندازے والے خرچیاں دا نجی ریکارڈ۔
- درخواستاںView request history and HTTP responses.
- لاگReview job outcomes and callback deliveries.
- دستاویزAuthentication and examples of the API.