Vector Embeddings API
API Endpoint Specifications
- Endpoint Path: /api/3/embedding-generator
- Type of Data: JSON & 2/minute
- Data Source: BUYFROMLO
- Request Limit: 100,000 tokens/month (Approximate 73,000 English words)
- Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Vector Embeddings API Endpoint Basic Info
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
Available API Arguments & Parameters
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
Code Integration and Response
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
]"