Entwickler
Explore Wrongthinking models and the API for integrating predictions and simulations into your application.
API v1
API-Endpunkte
- GET
/v1/modelsRufe den Modellkatalog für Integrationen ab.
- POST
/v1/predictionsSende eine Vorhersage mit Modell und Eingabeobjekt.
- GET
/v1/predictions/:idPrüfe den Status und rufe das Ergebnis ab.
Schnellstart
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/predictionsSende die Eingabe und speichere einen Idempotenzschlüssel, falls du die Anfrage wiederholen möchtest.202 AcceptedSpeichere die ID und die Ergebnis-URL, während der Auftrag verarbeitet wird.GET /v1/predictions/:idPrüfe den Status und lies das Ergebnis nach Abschluss der Vorhersage.
Beispielstatus queued → running → completed / failed.
Prüfe bei einer 401-Antwort den API-Schlüssel. Warte bei einer 429-Antwort, bevor du es mit demselben Idempotenzschlüssel erneut versuchst.
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 }}Authentifizierung
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-Referenz
Check each model guide for inputs, Studio limits, and output format.
- GET
/v1/modelsRufe den Modellkatalog für Integrationen ab.
- POST
/v1/predictionsSende eine Vorhersage mit Modell und Eingabeobjekt.
- GET
/v1/predictions/:idPrüfe den Status und rufe das Ergebnis ab.
- POST
/v1/batchesSende mehrere Eingaben an dasselbe Modell.
- GET
/v1/batches/:idPrüfe den Stapelstatus und die Ergebnisse der einzelnen Einträge.
Callbacks
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
- Die Vorhersage ist fertig und das Ergebnis kann abgerufen werden.
- prediction.failed
- Die Vorhersage ist fehlgeschlagen. Prüfe den Status, um den Fehler zu sehen.
- batch.completed
- Der Stapel ist abgeschlossen. Prüfe jeden Eintrag, auch bei einem Teilerfolg.
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" }}Stapelverarbeitung
Fasse Eingaben für dasselbe Modell unter items zusammen. Gib jeder Eingabe eine eindeutige custom_id, um Ergebnisse auch bei abweichender Verarbeitungsreihenfolge zuzuordnen.
POST /v1/batchesPrüfe jede Eingabe. Teile die Arbeit auf mehrere Stapel auf, wenn die Gesamtgröße oder die Anzahl der Einträge den Grenzwert überschreitet.GET /v1/batches/:idPrüfe den Status jedes Eintrags. Ein Stapel kann Erfolge und Fehler enthalten.custom_idSpeichere gültige Ergebnisse und bereite einen weiteren Stapel nur mit Einträgen vor, die sich erneut verarbeiten lassen.
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 } } ]}Modelle
Find a model by analysis type. Each guide includes its ID, fields, and API examples.
Prognose
Visuelle Aufmerksamkeit
Kausalanalyse
API-Preise
Preise werden geladen…
Tarife für das Studio ansehenEntwicklerbereich im Studio
Melde dich an, um den Entwicklerbereich deines Kontos zu öffnen.
- ÜbersichtEinstieg in den Entwicklerbereich im Studio.
- ModelleKatalog, technische Leitfäden und Preise je Modell.
- API-SchlüsselCreate and revoke integration keys.
- VerbrauchDaily requests, errors, and accepted predictions.
- API-KostenPrivater Verlauf der geschätzten Kosten für Ausführungen im Studio.
- AnfragenView request history and HTTP responses.
- ProtokolleReview job outcomes and callback deliveries.
- DokumentationAuthentication and examples of the API.