Berget AI · Schema

CohereRerankResponse

CompanyArtificial IntelligenceInferenceLLMEmbeddingsSpeech-to-TextOCRSwedenData Sovereignty

Properties

Name Type Description
id string Unique identifier for the rerank operation
model string Canonical model ID
object string Object type discriminator.
results array An ordered list of ranked documents
meta object Request metadata. Not all fields are populated by upstream providers.
usage object Token usage (Berget/upstream extension; not part of the Cohere v1 spec).
View JSON Schema on GitHub

JSON Schema

berget-ai-cohere-rerank-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/berget-ai/json-schema/berget-ai-cohere-rerank-response-schema.json",
  "title": "CohereRerankResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/berget-ai-openapi.yml#/components/schemas/CohereRerankResponse",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the rerank operation",
      "type": "string"
    },
    "model": {
      "type": "string",
      "description": "Canonical model ID"
    },
    "object": {
      "description": "Object type discriminator.",
      "type": "string",
      "enum": [
        "reranking"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number",
            "description": "Index into the original list of documents"
          },
          "relevance_score": {
            "type": "number",
            "description": "Relevance score (0–1)"
          },
          "document": {
            "description": "Echo of the input document, present only when return_documents is true",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/CohereRerankDocument"
              }
            ]
          }
        },
        "required": [
          "index",
          "relevance_score"
        ],
        "additionalProperties": false
      },
      "description": "An ordered list of ranked documents"
    },
    "meta": {
      "description": "Request metadata. Not all fields are populated by upstream providers.",
      "type": "object",
      "properties": {
        "api_version": {
          "type": "object",
          "properties": {
            "version": {
              "type": "string"
            },
            "is_deprecated": {
              "type": "boolean"
            },
            "is_experimental": {
              "type": "boolean"
            }
          },
          "required": [
            "version"
          ],
          "additionalProperties": false
        },
        "billed_units": {
          "type": "object",
          "properties": {
            "images": {
              "type": "number"
            },
            "input_tokens": {
              "type": "number"
            },
            "image_tokens": {
              "type": "number"
            },
            "output_tokens": {
              "type": "number"
            },
            "search_units": {
              "type": "number"
            },
            "classifications": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "tokens": {
          "type": "object",
          "properties": {
            "input_tokens": {
              "type": "number"
            },
            "output_tokens": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "cached_tokens": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "usage": {
      "description": "Token usage (Berget/upstream extension; not part of the Cohere v1 spec).",
      "type": "object",
      "properties": {
        "prompt_tokens": {
          "type": "number"
        },
        "total_tokens": {
          "type": "number"
        }
      },
      "required": [
        "total_tokens"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "model",
    "results"
  ],
  "additionalProperties": {},
  "$defs": {
    "CohereRerankDocument": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "description": "The text of the document to rerank"
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": {}
    }
  }
}

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/berget-ai-cohere-rerank-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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