Import the API collection into Bruno, Postman, or Insomnia to try all examples locally.
Download CollectionAll API requests require authentication using your personal API token. Include it in the Authorization header:
Authorization: Bearer YOUR_TOKEN
Obtain and manage tokens in Settings.
Submit data for prediction using in-context learning. The model learns from example rows (context rows) and predicts values for query rows that contain the [PREDICT] placeholder.
Base URL: https://rpt.cloud.sap
{
"rows": [
{
"PRODUCT": "Laptop Pro",
"CATEGORY": "Electronics",
"SALESGROUP": "Enterprise"
},
{
"PRODUCT": "Standing Desk",
"CATEGORY": "Furniture",
"SALESGROUP": "Office"
},
{
"PRODUCT": "Wireless Headset",
"CATEGORY": "Electronics",
"SALESGROUP": "[PREDICT]"
}
],
"index_column": "PRODUCT",
"scenario": "q1-forecast",
"sampler_options": {
"seed": 42
},
"explanations": {
"top_column_scores": 4,
"top_relevant_context_rows": 3
},
"context_mode": "default"
}
rows (required): Array of data rows. Each row is an object with column names as keys.
[PREDICT] values) used as examples[PREDICT] placeholder values indicating what to predictindex_column (optional): Column name to use as row identifier in the responsescenario (optional): Scenario identifier for telemetry. Has no effect on prediction output. Maximum 100 characters.sampler_options (optional): Sampling configuration applied when context rows exceed the model limit.
sampler_options.seed (optional, integer >= 0): Seed for reproducible random downsampling.explanations (optional): Controls explainability data depth. See Explainability.
explanations.top_column_scores (optional, integer 1–20): Top feature importance scores per query row. Default: 4.explanations.top_relevant_context_rows (optional, integer 1–20): Most relevant context row indices per query row. Default: 3.context_mode (optional, "default" | "deep"): Prediction depth for SAP-RPT-1.6. Default: "default" — best balance of accuracy and latency. "deep" trades higher latency for higher accuracy and only takes effect on the large model variant (sap-rpt-1.6-large) with large context sets (>8000 rows).Note: Target columns and task type (classification vs regression) are auto-detected from the data. Columns containing
[PREDICT]in query rows are automatically identified as prediction targets.
| Constraint | Value |
|---|---|
| Min query rows | 1 |
| Max query rows | 512 |
| Min context rows | 2 |
| Max context rows (input) | 100,000 |
| Max target columns | 10 |
| Max columns total | 100 |
| Max cell string length | 1,000 characters |
| Max column name length | 100 characters |
| Max target classes (recommendation) | 256 |
Predict requests are subject to rate limits and short-term throttling (a burst limit that
paces rapid-fire requests). Exceeding either returns 429 with a Retry-After header. See
Limits & Quotas for exact values, and Errors for the
error codes.
Only the /api/predict endpoint is available via API token authentication. Chat-RPT, what-if simulations, and conversational features are available exclusively through the web UI.