curl --request POST \ --url https://api.together.xyz/v1/embeddings \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "togethercomputer/m2-bert-80M-8k-retrieval", "input": "Our solar system orbits the Milky Way galaxy at about 515,000 mph"}'
Query an embedding model for a given string of text.
POST
/
embeddings
Create embedding
Copy
Ask AI
curl --request POST \ --url https://api.together.xyz/v1/embeddings \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "togethercomputer/m2-bert-80M-8k-retrieval", "input": "Our solar system orbits the Milky Way galaxy at about 515,000 mph"}'