Cohere · Schema

Cohere Embedding

Represents the embedding output from the Cohere Embed API, including vector representations in multiple numeric formats.

Properties

Name Type Description
id string Unique identifier for the embedding request.
embeddings object Container for embedding vectors organized by type. Each type maps to an array of embedding vectors.
texts array The text entries for which embeddings were returned.
images array The image entries for which embeddings were returned.
View JSON Schema on GitHub

JSON Schema

cohere-embedding-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.cohere.com/schemas/cohere/embedding.json",
  "title": "Cohere Embedding",
  "description": "Represents the embedding output from the Cohere Embed API, including vector representations in multiple numeric formats.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the embedding request."
    },
    "embeddings": {
      "type": "object",
      "description": "Container for embedding vectors organized by type. Each type maps to an array of embedding vectors.",
      "properties": {
        "float": {
          "type": "array",
          "description": "Default float embeddings for each input. Supported with all Embed models.",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "int8": {
          "type": "array",
          "description": "Signed int8 embeddings for each input. Supported with Embed v3.0 and newer models.",
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -128,
              "maximum": 127
            }
          }
        },
        "uint8": {
          "type": "array",
          "description": "Unsigned int8 embeddings for each input. Supported with Embed v3.0 and newer models.",
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 255
            }
          }
        },
        "binary": {
          "type": "array",
          "description": "Signed binary embeddings for each input. Supported with Embed v3.0 and newer models.",
          "items": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "base64": {
          "type": "array",
          "description": "Base64-encoded embeddings for each input. Supported with Embed v3.0 and newer models.",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9+/]+=*$"
          }
        }
      }
    },
    "texts": {
      "type": "array",
      "description": "The text entries for which embeddings were returned.",
      "items": {
        "type": "string"
      }
    },
    "images": {
      "type": "array",
      "description": "The image entries for which embeddings were returned.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "EmbeddingInputType": {
      "type": "string",
      "description": "The type of input for embedding generation. Determines how the model processes the input.",
      "enum": [
        "search_document",
        "search_query",
        "classification",
        "clustering",
        "image"
      ]
    },
    "TruncateOption": {
      "type": "string",
      "description": "How to handle inputs longer than the maximum token length.",
      "enum": ["NONE", "START", "END"]
    }
  }
}

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-embedding"
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.