{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-open-aiembedding-request-schema.json",
  "title": "OpenAIEmbeddingRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-openai-embeddings-api-openapi.yml#/components/schemas/OpenAIEmbeddingRequest",
  "properties": {
    "dimensions": {
      "description": "The number of dimensions the resulting output embeddings should have. Only supported in some models.",
      "type": "integer"
    },
    "encoding_format": {
      "default": "float",
      "description": "The format to return the embeddings in.",
      "enum": [
        "float",
        "base64"
      ],
      "type": "string"
    },
    "input": {
      "description": "Input text to embed. Can be a string or array of strings.",
      "oneOf": [
        {
          "description": "A single text string to embed",
          "type": "string"
        },
        {
          "description": "An array of text strings to embed",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ]
    },
    "model": {
      "description": "ID of the model to use. Use the List embedding models endpoint to see available models.",
      "type": "string"
    },
    "user": {
      "description": "A unique identifier representing your end-user for monitoring and abuse detection.",
      "type": "string"
    }
  },
  "required": [
    "input",
    "model"
  ],
  "type": "object"
}