Geliştiriciler

Explore Wrongthinking models and the API for integrating predictions and simulations into your application.

API v1

API uç noktaları

  • GET/v1/models

    Entegrasyonlar için model kataloğunu listeleyin.

  • POST/v1/predictions

    Modeli ve girdi nesnesini içeren bir tahmin isteği gönderin.

  • GET/v1/predictions/:id

    Durumu kontrol edin ve sonucu alın.

Tüm uç noktaları gör

Hızlı başlangıç

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/predictionsGirdiyi gönderin. Yeniden deneyecekseniz bir idempotency anahtarı saklayın.
  2. 202 Acceptedİş sürerken kimliği ve sonuç URL'sini saklayın.
  3. GET /v1/predictions/:idDurumu kontrol edin ve tahmin tamamlanınca sonucu okuyun.

Örnek durumlar queued → running → completed / failed.

401 alırsanız API anahtarını kontrol edin. 429 alırsanız bekleyip aynı idempotency anahtarıyla yeniden deneyin.

HTTP isteği
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  }}

Kimlik doğrulama

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 başvurusu

Check each model guide for inputs, Studio limits, and output format.

  • GET/v1/models

    Entegrasyonlar için model kataloğunu listeleyin.

  • POST/v1/predictions

    Modeli ve girdi nesnesini içeren bir tahmin isteği gönderin.

  • GET/v1/predictions/:id

    Durumu kontrol edin ve sonucu alın.

  • POST/v1/batches

    Aynı modele birden çok girdi gönderin.

  • GET/v1/batches/:id

    Toplu işin durumunu ve her öğenin sonucunu kontrol edin.

Geri çağrılar

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
Tahmin tamamlandı ve sonuç alınabilir.
prediction.failed
Tahmin başarısız oldu. Hatayı görmek için durumu inceleyin.
batch.completed
Toplu iş tamamlandı. İş kısmen başarılı olsa bile her öğeyi inceleyin.

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.

Tahmin olayı
{  "id": "evt_demo_001",  "type": "prediction.completed",  "data": {    "id": "pred_demo_001",    "model": "chronos2",    "status": "completed",    "result_url": "/v1/predictions/pred_demo_001"  }}
Toplu işleme

Aynı modele giden girdileri items altında gruplayın. İşleme sırası değişse bile sonuçları eşleştirmek için her girdiye benzersiz bir custom_id verin.

  1. POST /v1/batchesHer girdiyi doğrulayın. Toplam boyut veya öğe sayısı sınırı aşarsa işi birden çok toplu işe bölün.
  2. GET /v1/batches/:idHer öğenin durumunu kontrol edin. Bir toplu işte hem başarılı hem başarısız öğeler olabilir.
  3. custom_idBaşarılı sonuçları saklayın. Yalnızca yeniden denenebilecek öğelerle yeni bir toplu iş oluşturun.

Each batch accepts 1–8 items, 512 KiB of JSON and 3 MiB of images combined. Up to two predictions run concurrently per account.

Toplu iş isteği
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      }    }  ]}

Modeller

Find a model by analysis type. Each guide includes its ID, fields, and API examples.

API fiyatları

Fiyatlar yükleniyor…

Studio planlarını gör

Studio'daki geliştirici bölümü

Hesabınızdaki geliştirici bölümünü açmak için oturum açın.