
Titan Embed Text V1
About Amazon Web Services Titan Embed Text V1
Amazon Titan Embeddings G1 - Text is the first-generation Titan text embedding model. It accepts up to 8,192 tokens per input and returns fixed 1,536-dimension vectors; the `dimensions` parameter is...
Amazon Web Services Titan Embed Text V1 est un modèle d'Amazon Web Services disponible sur Eden AI via son API compatible OpenAI, à partir de 0,1 $ / 1M tokens. Appelez-le avec la même clé API que tous les autres modèles Eden AI, en envoyant son ID de modèle à l'endpoint /v3/embeddings, ou via n'importe quel SDK OpenAI, avec un traitement aux États-Unis.
Tasks and prices
Amazon Web Services Titan Embed Text V1 is available on Eden AI for 1 tasks. Il est servi par l'API compatible OpenAI d'Eden AI : envoyez son ID de modèle à l'endpoint /v3/embeddings avec votre clé API Eden AI.
Parameters
What you send and what you get back when you call Amazon Web Services Titan Embed Text V1 through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Entrée
- model (obligatoire) : texte. The model ID, as provider/model.
- input (obligatoire) : texte. The text to embed, or a list of texts.
Réponse
- data
Estimate your monthly cost
Enter your monthly volume for Embeddings to compare Amazon Web Services Titan Embed Text V1 with its cheapest alternatives.
Call Amazon Web Services Titan Embed Text V1 with Eden AI
Envoyez l'ID du modèle à l'endpoint compatible OpenAI /v3/embeddings. Tout SDK OpenAI fonctionne aussi : définissez son URL de base sur https://api.edenai.run/v3.
import requests
response = requests.post(
"https://api.edenai.run/v3/embeddings",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "amazon/amazon.titan-embed-text-v1",
"input": "The quick brown fox jumps over the lazy dog",
},
)
print(response.json())
curl https://api.edenai.run/v3/embeddings \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "amazon/amazon.titan-embed-text-v1", "input": "The quick brown fox jumps over the lazy dog"}'
const response = await fetch("https://api.edenai.run/v3/embeddings", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "amazon/amazon.titan-embed-text-v1",
input: "The quick brown fox jumps over the lazy dog",
}),
});
console.log(await response.json());
Questions about Amazon Web Services Titan Embed Text V1
On Eden AI, Amazon Web Services Titan Embed Text V1 costs 0,1 $ / 1M tokens for Embeddings. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Amazon Web Services Titan Embed Text V1 is available for: Embeddings. Input: Texte. Output: data.
Eden AI offers Embeddings from 14 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Embeddings
Other Embeddings models you can call with the same key, cheapest first.
More from Amazon Web Services
Other Amazon Web Services models on Eden AI, for every task.