Geliştiriciler
Explore Wrongthinking models and the API for integrating predictions and simulations into your application.
API v1
API uç noktaları
- GET
/v1/modelsEntegrasyonlar için model kataloğunu listeleyin.
- POST
/v1/predictionsModeli ve girdi nesnesini içeren bir tahmin isteği gönderin.
- GET
/v1/predictions/:idDurumu kontrol edin ve sonucu alın.
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.
POST /v1/predictionsGirdiyi gönderin. Yeniden deneyecekseniz bir idempotency anahtarı saklayın.202 Acceptedİş sürerken kimliği ve sonuç URL'sini saklayın.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.
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.
Authorization: Bearer <API_KEY>API başvurusu
Check each model guide for inputs, Studio limits, and output format.
- GET
/v1/modelsEntegrasyonlar için model kataloğunu listeleyin.
- POST
/v1/predictionsModeli ve girdi nesnesini içeren bir tahmin isteği gönderin.
- GET
/v1/predictions/:idDurumu kontrol edin ve sonucu alın.
- POST
/v1/batchesAynı modele birden çok girdi gönderin.
- GET
/v1/batches/:idToplu 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.
{ "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.
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.GET /v1/batches/:idHer öğenin durumunu kontrol edin. Bir toplu işte hem başarılı hem başarısız öğeler olabilir.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.
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.
Öngörü
Görsel dikkat
Nedensel çıkarım
API fiyatları
Fiyatlar yükleniyor…
Studio planlarını görStudio'daki geliştirici bölümü
Hesabınızdaki geliştirici bölümünü açmak için oturum açın.
- Genel bakışStudio'daki geliştirici bölümünün başlangıç noktası.
- ModellerKatalog, teknik kılavuzlar ve modele göre fiyatlar.
- API anahtarlarıCreate and revoke integration keys.
- KullanımDaily requests, errors, and accepted predictions.
- API maliyetleriStudio'da yapılan çalıştırmaların tahmini maliyetlerine ait özel geçmiş.
- İsteklerView request history and HTTP responses.
- GünlüklerReview job outcomes and callback deliveries.
- BelgelerAuthentication and examples of the API.