AI Gateway
Titan Text Embeddings V2
Amazon Titan Text Embeddings V2 is a light weight, efficient multilingual embedding model supporting 1024, 512, and 256 dimensions.
import { embed } from 'ai';
const result = await embed({ model: 'amazon/titan-embed-text-v2', value: 'Sunny day at the beach',})
The AI Gateway supports routing requests across multiple AI providers. You can control provider preferences using the provider slugs available for copying with the buttons below. For more see the AI Gateway provider options documentation.