Download OpenAPI specification:
Public API for embeddings, nearest neighbors, and vector images.
| words required | string Example: words=hello,world Comma-separated words |
{- "input": {
- "words": [
- "hello"
], - "embeddings": [
- [
- 2.2407,
- 1.0389,
- 1.3092
]
], - "average_embedding": [
- 2.2407,
- 1.0389,
- 1.3092
]
}, - "nearest": [
- {
- "word": "hello",
- "distance": 0,
- "embedding": [
- 0,
- 1.0389,
- 1.3092
]
}, - {
- "word": "goodbye",
- "distance": 22.555102881956113,
- "embedding": [
- 0,
- 3.1964,
- 1.0538
]
}, - {
- "word": "goodbyes",
- "distance": 25.00593191343556,
- "embedding": [
- 0,
- 1.1441,
- 0.8296
]
}, - {
- "word": "thankyouverymuch",
- "distance": 28.161771751500183,
- "embedding": [
- 0,
- -0.85306,
- -1.1744
]
}, - {
- "word": "yappy",
- "distance": 28.264787162817537,
- "embedding": [
- 0,
- 0.95763,
- -0.60553
]
}
]
}| words required | Array of strings (WordArray) |
{- "words": [
- "hello",
- "world"
]
}{- "input": {
- "words": [
- "hello"
], - "embeddings": [
- [
- 2.2407,
- 1.0389,
- 1.3092
]
], - "average_embedding": [
- 2.2407,
- 1.0389,
- 1.3092
]
}, - "nearest": [
- {
- "word": "hello",
- "distance": 0,
- "embedding": [
- 0,
- 1.0389,
- 1.3092
]
}, - {
- "word": "goodbye",
- "distance": 22.555102881956113,
- "embedding": [
- 0,
- 3.1964,
- 1.0538
]
}, - {
- "word": "goodbyes",
- "distance": 25.00593191343556,
- "embedding": [
- 0,
- 1.1441,
- 0.8296
]
}, - {
- "word": "thankyouverymuch",
- "distance": 28.161771751500183,
- "embedding": [
- 0,
- -0.85306,
- -1.1744
]
}, - {
- "word": "yappy",
- "distance": 28.264787162817537,
- "embedding": [
- 0,
- 0.95763,
- -0.60553
]
}
]
}| word required | string |
{- "word": "hello"
}{- "label": "vector",
- "image_base64": "iVBORw0KGgoAAAANSUhEUgAA..."
}[- "hello",
- "world"
]{- "hello": "iVBORw0KGgoAAAANSUhE...",
- "world": "iVBORw0KGgoAAAANSUhEUgAAASwA..."
}