Scalable Inference Serving · Example Payload

Kserve Run Inference Example

Artificial IntelligenceCNCFDeploymentInferenceKubernetesLLMMachine-LearningModel ServingMLOpsScalability

Kserve Run Inference Example is an example object payload from Scalable Inference Serving, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://inference.kserve.example.com/v2/models/bert-sentiment-classifier/infer",
    "headers": {
      "Content-Type": "application/json",
      "Accept": "application/json"
    },
    "body": {
      "id": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "inputs": [
        {
          "name": "text_input",
          "shape": [1, 128],
          "datatype": "INT32",
          "data": [
            [101, 2023, 2003, 1037, 2307, 3185, 999, 102, 0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
          ]
        }
      ],
      "outputs": [
        {"name": "sentiment_label"},
        {"name": "confidence_score"}
      ]
    }
  },
  "response": {
    "status": 200,
    "body": {
      "model_name": "bert-sentiment-classifier",
      "model_version": "3",
      "id": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "outputs": [
        {
          "name": "sentiment_label",
          "shape": [1],
          "datatype": "BYTES",
          "data": ["positive"]
        },
        {
          "name": "confidence_score",
          "shape": [1],
          "datatype": "FP32",
          "data": [0.9423]
        }
      ]
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/kserve-run-inference-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.