{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/octen-ai/json-schema/octen-ai-embedding-request-schema.json",
  "title": "EmbeddingRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/octen-ai-embedding-api-openapi.yml#/components/schemas/EmbeddingRequest",
  "type": "object",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": [
        "What is vector search?"
      ],
      "maxItems": 1000,
      "description": "The text to be converted into embeddings. Maximum characters per element: 10000. Maximum request body size: 2MB"
    },
    "model": {
      "type": "string",
      "enum": [
        "octen-embedding-0.6b",
        "octen-embedding-4b",
        "octen-embedding-8b"
      ],
      "default": "octen-embedding-4b",
      "description": "The embedding model used for this request. `octen-embedding-0.6b` (max dim: 1024) for cost/throughput priority; `octen-embedding-4b` (max dim: 2560) for most applications; `octen-embedding-8b` (max dim: 4096) for accuracy-critical tasks."
    },
    "dimension": {
      "type": "integer",
      "description": "The dimensionality of the output embedding vectors. Defaults to the model's max dimension (0.6b: 1024, 4b: 2560, 8b: 4096). If set to a value smaller than the model default, the embedding will be truncated to the first N values. Any positive integer ≤ model default dimension is allowed."
    },
    "input_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "query",
        "document"
      ],
      "default": null,
      "description": "Specifies whether the input is a query or a document for retrieval. Different values apply different internal prompts: `query` → \"Represent the query for retrieving supporting\" (prepended and counted in input_tokens); `document` and `null` mean no special prompt is applied."
    }
  }
}