Embedding
Query the /embedding
endpoint. The Embedding models are used for advanced classification, search and topic modeling.
Making the request
Endpoint: /embedding
Method: POST
Request body:
{"model": "model_name", "content": "your_content_here"}
Example:
import requests
headers = {"X-API-KEY": "4088bbb2b9a34d75944e03810bbbe763"}
data = {"model": "text-curie-001", "content": "Hey there from AiPrice.dev!"}
content = requests.post("https://api.aiprice.dev/embedding", json=data, headers=headers)
print(content.json())