{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aimlapi/refs/heads/main/json-structure/aimlapi-embedding-request-structure.json",
  "name": "EmbeddingRequest",
  "description": "Request body for creating text embeddings via AIMLAPI",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Embedding model ID",
      "example": "text-embedding-3-small"
    },
    "input": {
      "type": "string",
      "description": "Text to embed",
      "example": "The quick brown fox jumps over the lazy dog"
    },
    "encoding_format": {
      "type": "string",
      "description": "Encoding format (float, base64)",
      "example": "float"
    },
    "dimensions": {
      "type": "int32",
      "description": "Output embedding dimensions",
      "example": 1536
    }
  }
}