Search…
Text Embedding API
How to get embeddings for your text.

Create embedding

post
https://example.forefront.link
/embedding
Create Embedding

Example request

cURL
Python
1
curl https://DEPLOYMENT_NAME-TEAM_SLUG.forefront.link/embedding \
2
-H 'Content-Type: application/json' \
3
-H 'Authorization: Bearer YOUR_API_KEY' \
4
-d '{
5
"texts": ["hello world", "once upon a time"]
6
}'
Copied!
1
import requests
2
3
headers = {"Authorization": "Bearer <INSERT_YOUR_TOKEN>"}
4
5
data = {
6
"texts": ["hello world", "once upon a time"]
7
}
8
9
res = requests.post(
10
"https://vanilla-gpt-j-forefront.forefront.link/embedding",
11
json=data,
12
headers=headers
13
)}'
Copied!

Retrieve API Key

To retrieve your API key, navigate to Settings > API Key.
Last modified 1mo ago