cURL
curl --request POST \ --url https://app.firmware.ai/api/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "input": {}, "encoding_format": "<string>", "dimensions": 123 } '
{ "object": "list", "data": [ { "index": 0, "object": "embedding", "embedding": [0.0023064255, -0.009327292, 0.015797347] } ], "model": "text-embedding-3-small", "usage": { "prompt_tokens": 9, "total_tokens": 9 } }
Generate vector embeddings from text
Authorization
curl https://app.firmware.ai/api/v1/embeddings \ -H "Authorization: Bearer $FIRMWARE_API_KEY"
text-embedding-3-small
text-embedding-3-large
voyage-4
voyage-4-large
["The quick brown fox", "jumped over the lazy dog"]
float
base64
list
Show Embedding object
embedding
Show Usage object
curl https://app.firmware.ai/api/v1/embeddings \ -H "Authorization: Bearer $FIRMWARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": "The quick brown fox jumped over the lazy dog" }'