ڈیولپرز
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 کی قیمتیں
قیمتیں لوڈ ہو رہی ہیں…
اسٹوڈیو کے پیکیج دیکھیںاسٹوڈیو میں ڈیولپر سیکشن
اپنے اکاؤنٹ کا ڈیولپر سیکشن کھولنے کے لیے سائن ان کریں۔
- جائزہاسٹوڈیو کے ڈیولپر سیکشن کا ابتدائی صفحہ۔
- ماڈلزکیٹلاگ، تکنیکی رہنمائیاں اور ہر ماڈل کی قیمت۔
- API کیزCreate and revoke integration keys.
- استعمالDaily requests, errors, and accepted predictions.
- API کے اخراجاتاسٹوڈیو میں چلائے گئے کاموں کے تخمینی اخراجات کا نجی ریکارڈ۔
- درخواستیںView request history and HTTP responses.
- لاگزReview job outcomes and callback deliveries.
- دستاویزاتAuthentication and examples of the API.