The Shok-IS API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.
https://api.shok-is.com · All requests must use HTTPS. HTTP is not supported.All API requests require a Bearer token passed in the Authorization header. API keys are workspace-scoped and prefixed with sk_live_ for production or sk_test_ for sandbox.
sk_live_ key in client-side code. Use environment variables or a secrets manager.Submit a synchronous prediction request. Returns a typed prediction vector with confidence score and feature attribution weights. Median latency: <50ms.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model_id | string | Required | The versioned model identifier. Format: mdl_{name}_{version} |
| input_vector | object | Required | Key-value pairs of feature names and their values. Must match the model's expected schema. |
| output_format | string | Optional | typed (default), raw, or verbose (includes SHAP values). |
| confidence_threshold | float | Optional | Minimum confidence to return a prediction. Default: 0.5. Range: 0.0–1.0. |
| Code | HTTP Status | Description |
|---|---|---|
| authentication_error | 401 | Invalid or missing API key. |
| model_not_found | 404 | The specified model_id does not exist in your workspace. |
| schema_mismatch | 422 | input_vector does not match the model's expected feature schema. |
| rate_limit_exceeded | 429 | You have exceeded your plan's rate limit. Retry after the X-RateLimit-Reset header value. |
| inference_timeout | 504 | The model took longer than 30 seconds to respond. Try again or contact support. |
Rate limits are applied per API key, per minute. Exceeded requests return a 429 status with a Retry-After header.
| Plan | Requests / min | Burst | Monthly quota |
|---|---|---|---|
| Starter | 60 | — | 1,000 |
| Standard | 500 | 750 | 100,000 |
| Enterprise | Custom | Negotiated | Unlimited |