Cette page est en anglais.
POST/v1/systemone
Run a typed decision
Send state and named yes/no, choice, or score questions. strike-1 returns a typed answer and an uncalibrated probability.
Send state and named questions. Each question is noul (yes/no), choice, or score. strike-1 returns a typed answer and a probability (temperature 1.25 on the latest release).
Production base URL: https://strike-ai.eu/v1/systemone. The browser playground calls /api/proxy/v1/systemone on this host.
Paramètres
| Nom | Dans | Obligatoire |
|---|---|---|
| Authorization | header | Oui |
| Idempotency-Key | header | Non |
| Strike-Danger-Zone-Long-Context | header | Non |
| Strike-Danger-Zone-Images | header | Non |
Corps de la requête
SystemOneRequest
| Champ | Type | Obligatoire |
|---|---|---|
| model | string | Non |
| stateString, object, or list. | object | Oui |
| questions | object | Oui |
| options | object | Non |
| assets | object | Non |
Réponses
200
SystemOneResponse
| Champ | Type | Obligatoire |
|---|---|---|
| id | string | Oui |
| model | string | Oui |
| answersNoulAnswer or ChoiceAnswer or ScoreAnswer or BoxAnswer | object of NoulAnswer or ChoiceAnswer or ScoreAnswer or BoxAnswer | Oui |
| usage | Usage | Oui |
| metaResponseMeta or null | ResponseMeta or null | Non |
| retentionRetentionInfo or null | RetentionInfo or null | Non |
Usage
| Champ | Type | Obligatoire |
|---|---|---|
| input_tokens | integer | Oui |
| output_tokens | integer | Oui |
| cost_eurstring or null | string or null | Non |
| cost_currencystring or null | string or null | Non |
usage.cost_eur (string, six decimal places) and usage.cost_currency (for example EUR) are included when billing meters the call.
400
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
401
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
402
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
413
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
422
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
429
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
503
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
curl -s -X POST "https://strike-ai.eu/v1/systemone" \
-H "Authorization: Bearer $STRIKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "strike-1", "state": { "ticket": { "body": "I was charged twice on my invoice." } }, "questions": { "route": { "type": "choice", "instructions": "Which team should own this ticket?", "criteria": { "billing": "billing", "support": "support" } } }, "options": { "return_raw_probabilities": true }}'Exemple de réponse
{
"id": "req_example",
"model": "strike-1",
"answers": {
"route": {
"type": "choice",
"choice": "billing",
"probabilities": {
"billing": 0.91,
"support": 0.09
},
"confidence": 0.91,
"confidence_band": null
}
},
"usage": {
"input_tokens": 128,
"output_tokens": 4
},
"meta": {
"latency_ms": 42,
"model": "strike-1"
}
}Essayer
Appelle notre proxy serveur. Ne collez votre clé API qu’ici : elle reste dans cet onglet, n’est ni stockée ni envoyée à l’analytics. Laissez vide pour utiliser la clé du proxy du playground.
Erreurs
| Statut | Code | Signification |
|---|---|---|
| 401 | authentication_error | Missing or invalid Bearer API key. |
| 402 | payment_required | Billing balance or pay-as-you-go setup required. See error context for topup_url and payg_url. |
| 422 | validation_error | Request body failed schema or business validation. |
| 413 | payload_too_large | Request body or state exceeds size limits. |
| 429 | quota_exceeded | Free daily decision allowance used up. Resets at midnight UTC or add credit / pay-as-you-go. |
| 429 | rate_limited | Requests per second or inflight limit exceeded. Retry after Retry-After seconds. |
| 429 | too_many_requests | Rate limit exceeded. Retry after Retry-After seconds. |
| 503 | model_warming | Inference worker is starting (strike-1). Retry with backoff. |