డెవలపర్లు

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.

  1. POST /v1/predictionsఇన్‌పుట్ పంపండి. మళ్లీ ప్రయత్నించాల్సి రావచ్చు కాబట్టి ఐడెంపోటెన్సీ కీని భద్రపరచండి.
  2. 202 Acceptedపని జరుగుతున్నప్పుడు ID, ఫలితపు URLను భద్రపరచండి.
  3. GET /v1/predictions/:idస్థితిని చూసి అంచనా పూర్తయ్యాక ఫలితాన్ని చదవండి.

స్థితులకు ఉదాహరణలు queued → running → completed / failed.

401 వస్తే API కీని సరిచూడండి. 429 వస్తే కాసేపు ఆగి అదే ఐడెంపోటెన్సీ కీతో మళ్లీ ప్రయత్నించండి.

HTTP అభ్యర్థన
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.

HTTP
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 ఇవ్వండి.

  1. POST /v1/batchesప్రతి ఇన్‌పుట్ చెల్లుబాటు అవుతుందో చూడండి. మొత్తం పరిమాణం లేదా ఐటమ్‌ల సంఖ్య పరిమితిని మించితే పనిని పలు బ్యాచ్‌లుగా విభజించండి.
  2. GET /v1/batches/:idప్రతి ఐటమ్ స్థితిని చూడండి. ఒకే బ్యాచ్‌లో విజయవంతమైనవి, విఫలమైనవి ఉండవచ్చు.
  3. 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 ధరలు

ధరలు లోడ్ అవుతున్నాయి…

స్టూడియో ప్లాన్లు చూడండి

స్టూడియోలో డెవలపర్ విభాగం

మీ ఖాతాలో డెవలపర్ విభాగాన్ని తెరవడానికి సైన్ ఇన్ చేయండి.