{
 "spec_version": 1,
 "model": "amazon/titan-embed-text-v2",
 "type": "embedding",
 "input_modalities": [
  "text"
 ],
 "output_modalities": [
  "embeddings"
 ],
 "context_window": 8192,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/embeddings"
 },
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "input",
   "type": [
    "string",
    "array"
   ],
   "required": true,
   "description": "A string, or a list of strings to embed in one request."
  },
  {
   "name": "encoding_format",
   "type": "string",
   "enum": [
    "float",
    "base64"
   ],
   "default": "float",
   "description": "How the vectors come back."
  }
 ],
 "response": {
  "fields": [
   {
    "name": "data[].embedding",
    "type": "array",
    "description": "The vector."
   },
   {
    "name": "usage.prompt_tokens",
    "type": "integer",
    "description": "Input tokens."
   }
  ],
  "example": {
   "object": "list",
   "data": [
    {
     "object": "embedding",
     "index": 0,
     "embedding": [
      0.0123,
      -0.0456
     ]
    }
   ],
   "usage": {
    "prompt_tokens": 5,
    "total_tokens": 5
   }
  }
 },
 "examples": [
  {
   "title": "Basic",
   "request": {
    "model": "amazon/titan-embed-text-v2",
    "input": "The quick brown fox"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model",
   "input"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "input": {
    "type": [
     "string",
     "array"
    ],
    "description": "A string, or a list of strings to embed in one request."
   },
   "encoding_format": {
    "type": "string",
    "description": "How the vectors come back.",
    "enum": [
     "float",
     "base64"
    ],
    "default": "float"
   }
  }
 }
}
