ডেভেলপার
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ইনপুট পাঠান। আবার চেষ্টা করার দরকার হতে পারে, তাই একটি আইডেমপোটেন্সি কী সংরক্ষণ করুন।202 Acceptedকাজ চলাকালীন ID ও ফলাফলের URL সংরক্ষণ করুন।GET /v1/predictions/:idঅবস্থা দেখুন ও পূর্বাভাস শেষ হলে ফলাফল পড়ুন।
অবস্থার উদাহরণ queued → running → completed / failed.
401 পেলে API কী যাচাই করুন। 429 পেলে অপেক্ষা করে একই আইডেমপোটেন্সি কী দিয়ে আবার চেষ্টা করুন।
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.