Saltar al contenido principal
StrikeStrike
API

Las descripciones de los endpoints se generan a partir de OpenAPI en inglés. Errores.

POST/v1/systemone

Run a typed decision

Send state and named yes/no, choice, or score questions. strike-1 returns a typed answer with probabilities. Probabilities are temperature scaled on held-out data; yes/no also gets a prior shift.

Send state and named questions. Each question is noul (yes/no), choice, or score. strike-1 returns a typed answer and a probability.

Production base URL: https://strike-ai.eu/v1/systemone. The browser playground calls /api/proxy/v1/systemone on this host.

Parámetros

NombreEnObligatorio
AuthorizationheaderSí
Idempotency-KeyheaderNo

Cuerpo de la petición

SystemOneRequest

CampoTipoObligatorio
modelPublic model id. Omit or use strike-1 for the pinned release. Other ids must appear in GET /v1/models.stringNo
stateString, object, or list.objectSí
questionsobjectSí
optionsobjectNo
assetsobjectNo

Respuestas

200

SystemOneResponse

CampoTipoObligatorio
idstringSí
modelstringSí
answersNoulAnswer or ChoiceAnswer or ScoreAnswer or BoxAnswerobject of NoulAnswer or ChoiceAnswer or ScoreAnswer or BoxAnswerSí
usageUsageSí
metaResponseMeta or nullResponseMeta or nullNo
retentionRetentionInfo or nullRetentionInfo or nullNo

Usage

CampoTipoObligatorio
input_tokensintegerSí
output_tokensintegerSí
cost_eurstring or nullstring or nullNo
cost_currencystring or nullstring or nullNo

usage.cost_eur (string, six decimal places) and usage.cost_currency (for example EUR) are included when billing meters the call.

400

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

401

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

402

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

413

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

422

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

429

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

503

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo

529

Schema

CampoTipoObligatorio
errorobjectSí

error

CampoTipoObligatorio
typestringNo
codestringNo
messagestringNo
paramstringNo
request_idstringNo
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  }}'

Respuesta de ejemplo

{
  "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_latency_ms": 31,
    "model": "strike-1"
  }
}

Pruébalo

Las peticiones pasan por nuestro proxy en el servidor. Pega tu clave API solo aquí: se queda en esta pestaña y no se guarda ni se envía a analítica. Déjalo vacío para usar la clave del proxy del playground.

Errores

EstadoCódigoSignificado
401authentication_errorMissing or invalid Bearer API key.
402payment_requiredBilling balance or pay-as-you-go setup required. See error context for topup_url and payg_url.
422validation_errorRequest body failed schema or business validation.
413payload_too_largeRequest body or state exceeds size limits.
429quota_exceededFree daily decision allowance used up. Resets at midnight UTC or add credit / pay-as-you-go.
429rate_limitedRequests per second or inflight limit exceeded. Retry after Retry-After seconds.
429too_many_requestsRate limit exceeded. Retry after Retry-After seconds.
503model_warmingInference worker is starting (strike-1). Retry with backoff.
529engine_unavailableEngine not ready or overloaded.
Strike AI | POST /v1/systemone