API:Components
API Endpoint Path
required
Embedding Vector API
api/3/embedding-generator
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on Vector embedding
token
required
BUYFROMLO API token. Paid subscription API is available: /api/3/embedding-generator, and accessible to on-site APP on /app/3/embedding-generator as well
originalContent
required
Submit the original English content with ;: to separate each unique content piece. It's up to 20 pieces per request and total characters are up to 10000
language
Optional
Input a language iso code. Default is en
Embedding Vector API
api/3/embedding-generator
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/embedding-generator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
originalContent = "original piece of English content pieces separated by ;:"
#Optional
language = "input a language. Default is en"
headers={""Authorization"": ""Bearer "" + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"originalContent":originalContent,
"language": language
}, headers=headers
)
print(response.status_code)
print(response.json())"
JSON Response Sample
"[
embedding list
]"
The maximum input length for the Vector Embeddings API is 10,000 characters.
The Vector Embeddings API supports English, Japanese, Russian, and French.
The Vector Embeddings API returns data in JSON format.
The BuyfromLo onsite app can be accessed with a paid API token.
The rate limit for the Vector Embeddings API is 100,000 tokens per month, which is approximately 73,000 English words.
The embedding vectors have 768 dimensions.
Details regarding API usage obligations and liability can be found in the Legal Terms of Service & Condition.
The Vector Embeddings API generates embedding array vector data from input content.
The provided integration code supports various languages including cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, and Typescript.
The data used by the Vector Embeddings API is sourced from BUYFROMLO.