Perplexity · Schema

Embeddings Response

Response body for embeddings request

Properties

Name Type Description
object string The object type
data array List of embedding objects
model string The model used to generate embeddings
usage object
View JSON Schema on GitHub

JSON Schema

perplexity-embeddingsresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EmbeddingsResponse",
  "title": "Embeddings Response",
  "type": "object",
  "description": "Response body for embeddings request",
  "properties": {
    "object": {
      "type": "string",
      "title": "Object",
      "description": "The object type",
      "example": "list"
    },
    "data": {
      "type": "array",
      "title": "Data",
      "description": "List of embedding objects",
      "items": {
        "$ref": "#/components/schemas/EmbeddingObject"
      }
    },
    "model": {
      "type": "string",
      "title": "Model",
      "description": "The model used to generate embeddings"
    },
    "usage": {
      "$ref": "#/components/schemas/EmbeddingsUsage"
    }
  }
}