AIMLAPI · JSON Structure

Aimlapi Embedding Request Structure

Request body for creating text embeddings via AIMLAPI

Type: object Properties: 4
Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

EmbeddingRequest is a JSON Structure definition published by AIMLAPI, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

model input encoding_format dimensions

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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
    }
  }
}