API Documentation
Embeddings API
Image API
Audio Batch API
Accounts
Deployments
Models
Supervised Fine Tuning Jobs
Datasets
Embeddings API
Create embeddings
POST
https://api.fireworks.ai/inference/v1/
/
embeddings
curl --request POST \
--url https://api.fireworks.ai/inference/v1/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": "The quick brown fox jumped over the lazy dog",
"model": "nomic-ai/nomic-embed-text-v1.5",
"dimensions": 2
}'
{
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"model": "<string>",
"object": "list",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.fireworks.ai/inference/v1/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input": "The quick brown fox jumped over the lazy dog",
"model": "nomic-ai/nomic-embed-text-v1.5",
"dimensions": 2
}'
{
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"model": "<string>",
"object": "list",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.