Cohere · Schema

ClassifyRequest

Properties

Name Type Description
inputs array A list of up to 96 texts to be classified. Each must be a non-empty string.
examples array An array of labeled examples providing context to the model. Each unique label requires at least 2 examples. Maximum of 2500 examples, each with a maximum length of 512 tokens.
model string The name of a compatible Cohere model to use for classification.
preset string The ID of a custom playground preset.
truncate string Specifies how the API handles inputs longer than the maximum token length. START discards the beginning, END discards the end. NONE returns an error if the input is too long.
View JSON Schema on GitHub

JSON Schema

cohere-classifyrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ClassifyRequest",
  "title": "ClassifyRequest",
  "type": "object",
  "required": [
    "inputs",
    "examples"
  ],
  "properties": {
    "inputs": {
      "type": "array",
      "description": "A list of up to 96 texts to be classified. Each must be a non-empty string.",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 96,
      "minItems": 1
    },
    "examples": {
      "type": "array",
      "description": "An array of labeled examples providing context to the model. Each unique label requires at least 2 examples. Maximum of 2500 examples, each with a maximum length of 512 tokens.",
      "items": {
        "$ref": "#/components/schemas/ClassifyExample"
      },
      "maxItems": 2500,
      "minItems": 2
    },
    "model": {
      "type": "string",
      "description": "The name of a compatible Cohere model to use for classification."
    },
    "preset": {
      "type": "string",
      "description": "The ID of a custom playground preset."
    },
    "truncate": {
      "type": "string",
      "enum": [
        "NONE",
        "START",
        "END"
      ],
      "description": "Specifies how the API handles inputs longer than the maximum token length. START discards the beginning, END discards the end. NONE returns an error if the input is too long."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/cohere-classifyrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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