Skip to main content
NVIDIA

nvidia/Kumo Tabular

Endpoint Details

Review how to make this request and handle its possible responses.

POSThttps://ai.api.nvidia.com/v1/structured-data/nvidia/kumo-tabular/predictions

Accepts labeled context rows and unlabeled query rows in the Universal TFM request envelope.

Request Body

Edit the request fields below.

schema*
instance table*
Optional row identity column or composite key. Kumo Tabular requests may omit it and rely on request row order.
Related table schemas keyed by table name. Kumo Tabular uses an empty object.
relationshipsKumo Tabular requests do not require relationships.
context*
Table payload descriptor. Arrays are useful for small playground payloads; Arrow IPC descriptors are intended for larger production tables.
Related table payloads keyed by table name. Kumo Tabular uses an empty object.
predict*
Table payload descriptor. Arrays are useful for small playground payloads; Arrow IPC descriptors are intended for larger production tables.
Related table payloads keyed by table name. Kumo Tabular uses an empty object.
Authentication uses NVIDIA_API_KEY from your environment.

Request details

Parameters7 Parameters
Body parametersRequest parameters that update the generated request preview.
object
modelrequired
string · enum

TFM model family requested by the caller.

Valid values: kumo-tabular
taskrequired
object
schemarequired
object
schema*
instance table*
Optional row identity column or composite key. Kumo Tabular requests may omit it and rely on request row order.
Related table schemas keyed by table name. Kumo Tabular uses an empty object.
relationshipsKumo Tabular requests do not require relationships.
contextrequired
object
context*
Table payload descriptor. Arrays are useful for small playground payloads; Arrow IPC descriptors are intended for larger production tables.
Related table payloads keyed by table name. Kumo Tabular uses an empty object.
predictrequired
object
predict*
Table payload descriptor. Arrays are useful for small playground payloads; Arrow IPC descriptors are intended for larger production tables.
Related table payloads keyed by table name. Kumo Tabular uses an empty object.
outputrequired
object
metadataoptional
object
Headers3 Headers
Request headersAuthentication and content negotiation values for this request.
object
Authorizationrequired
Bearer credential used to authenticate the request.

Format: Bearer $NVIDIA_API_KEY

Content-Typerequired
Identifies the request body as JSON.
Acceptoptional
Selects the desired response content type.

Request preview

Updates as you change request parameters and headers on the left.

import json

import requests

payload = {
  "model": "kumo-tabular",
  "task": {
    "kind": "classification",
    "target": {
      "column_name": "target_col",
      "dtype": "string",
      "classes": ["no", "yes"],
      "positive_class": "yes"
    }
  },
  "schema": {
    "instance_table": {
      "columns": {
        "row_id": {
          "dtype": "string",
          "stype": "ID"
        },
        "age": {
          "dtype": "int64",
          "stype": "numerical"
        },
        "country": {
          "dtype": "string",
          "stype": "categorical"
        },
        "target_col": {
          "dtype": "string",
          "stype": "categorical"
        }
      },
      "primary_key": "row_id"
    },
    "related_tables": {},
    "relationships": []
  },
  "context": {
    "instance_table": {
      "format": "arrays",
      "columns": ["row_id", "age", "country", "target_col"],
      "rows": [
        ["ctx-0", 34, "US", "yes"],
        ["ctx-1", 52, "CA", "no"],
        ["ctx-2", 41, "US", "yes"],
        ["ctx-3", 63, "CA", "no"]
      ]
    },
    "related_tables": {}
  },
  "predict": {
    "instance_table": {
      "format": "arrays",
      "columns": ["row_id", "age", "country"],
      "rows": [
        ["q-0", 29, "US"]
      ]
    },
    "related_tables": {}
  },
  "output": {
    "fields": ["prediction", "probabilities"]
  },
  "metadata": {
    "request_id": "kumo-tabular-catalog-demo-001"
  }
}

response = requests.post(
    "https://ai.api.nvidia.com/v1/structured-data/nvidia/kumo-tabular/predictions",
    headers={
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer $NVIDIA_API_KEY",
    },
    json=payload,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2))

Responses

See example responses, schemas, and errors your integration should handle.

200Prediction responseapplication/json
Response bodyapplication/jsonobject

Example response

application/json
{
  "id": "pred_kumo_tabular_001",
  "model": "kumo-tabular",
  "predictions": [
    {
      "id": "q-0",
      "row_index": 0,
      "prediction": "yes",
      "probabilities": {
        "no": 0.21,
        "yes": 0.79
      }
    }
  ],
  "metadata": {
    "task_kind": "classification",
    "adapter": "kumo-tabular"
  }
}
idrequired
string

Service-assigned correlation identifier for this synchronous prediction response.

Maximum length: 1024
modelrequired
string
Maximum length: 1024
predictionsrequired
array<object>

Prediction records ordered by row_index.

Maximum items: 10000
predictions[].idoptional
string

Caller-provided or service-generated row identifier when available. If omitted, clients should use row_index.

Maximum length: 1024
predictions[].row_indexrequired
integer

Zero-based row position in the predict instance table.

Format: int32Minimum: 0Maximum: 2147483647
predictions[].predictionoptional
string | number | integer | boolean | null
predictions[].probabilitiesoptional
object
predictions[].quantilesoptional
object
predictions[].metadataoptional
object
metadatarequired
object
metadata.task_kindrequired
string
Maximum length: 1024
metadata.output_typeoptional
string
Maximum length: 1024
metadata.adapteroptional
string
Maximum length: 1024
400Error responseapplication/json
Response bodyapplication/jsonobject
erroroptional
string
messageoptional
string
detailsoptional
object
422Error responseapplication/json
Response bodyapplication/jsonobject
erroroptional
string
messageoptional
string
detailsoptional
object
503Error responseapplication/json
Response bodyapplication/jsonobject
erroroptional
string
messageoptional
string
detailsoptional
object