{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venice-ai/json-schema/venice-ai-create-embedding-request-schema-schema.json",
  "title": "CreateEmbeddingRequestSchema",
  "description": "Create embeddings for the supplied input.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venice-ai-embeddings-api-openapi.yml#/components/schemas/CreateEmbeddingRequestSchema",
  "type": "object",
  "properties": {
    "dimensions": {
      "type": "integer",
      "minimum": 1,
      "description": "The number of dimensions the resulting output embeddings should have."
    },
    "encoding_format": {
      "type": "string",
      "enum": [
        "float",
        "base64"
      ],
      "default": "float",
      "description": "The format to return the embeddings in. Can be either `float` or `base64`."
    },
    "input": {
      "description": "Input text to embed, encoded as a string or array of strings. To embed multiple inputs in a single request, pass an array of strings. The input must not exceed the max input tokens for the model (8192 tokens), cannot be an empty string, and any array must contain 2048 items or less. Token arrays are not supported and return HTTP 400. LangChain OpenAIEmbeddings sends token arrays unless you set check_embedding_ctx_length=False.",
      "anyOf": [
        {
          "description": "The string that will be turned into an embedding. Cannot be an empty string.",
          "minLength": 1,
          "title": "string",
          "type": "string"
        },
        {
          "description": "The array of strings that will be turned into an embedding. Array must contain 2048 items or less.",
          "items": {
            "type": "string"
          },
          "maxItems": 2048,
          "minItems": 1,
          "title": "array",
          "type": "array"
        }
      ]
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "text-embedding-bge-m3",
            "text-embedding-bge-en-icl",
            "text-embedding-qwen3-8b",
            "text-embedding-qwen3-0-6b",
            "text-embedding-multilingual-e5-large-instruct",
            "text-embedding-3-small",
            "text-embedding-3-large",
            "gemini-embedding-2-preview",
            "text-embedding-nemotron-embed-vl-1b-v2"
          ]
        }
      ],
      "description": "ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them."
    },
    "user": {
      "type": "string",
      "description": "This is an unused parameter and is discarded by Venice. It is supported solely for API compatibility with OpenAI."
    }
  },
  "required": [
    "input",
    "model"
  ],
  "additionalProperties": false
}