Amazon - API - verified
Amazon Titan Text Embeddings V2 embeddings
Amazon Titan Text Embeddings V2 is a current embedding model from Amazon, called by API as amazon.titan-embed-text-v2:0. It returns 1,024-dimension vectors by default and accepts up to 8,192 input tokens, for text input. The first-party list price is $0.02 per 1M input tokens.
CurrentModel id: amazon.titan-embed-text-v2:0
- Default dims
- 1,024
- Max input
- 8,192 tok
- Price / 1M
- $0.02
- Inputs
- Text
Dimensions
Flexible output size- 1,024default
- 512
- 256
Default output: 1,024 dimensions.
Listed sizes: 1,024, 512 and 256.
Amazon documents shorter output vectors for this model (Matryoshka-style), so you can store smaller embeddings by asking for fewer dimensions instead of re-embedding with another model.
Pricing
- Per 1M input tokens
- $0.02
- Batch, per 1M
- Not stated
Amazon Bedrock on-demand price per 1M input tokens; batch listed as N/A.
Source: aws.amazon.com/bedrock/pricing
Usage
Copied verbatim from the page linked below. Placeholders such as project ids and API keys are the source's own.
import json
import boto3
client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.invoke_model(
modelId='amazon.titan-embed-text-v2:0',
body=json.dumps({
'inputText': 'What are the different services that you offer?',
'dimensions': 1024,
'normalize': True
})
)
print(json.loads(response['body'].read()))Source: docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-titan-text-embeddings-v2.html
Worth knowing
Accepts up to 8,192 tokens or 50,000 characters, is optimized for English with 100+ languages in preview, and supports float or binary output for RAG, document search and clustering.
Released . Multilingual: yes.
FAQ
How many dimensions does Amazon Titan Text Embeddings V2 output?
Default output: 1,024 dimensions. Listed sizes: 1,024, 512 and 256. Amazon documents shorter output vectors for this model (Matryoshka-style), so you can store smaller embeddings by asking for fewer dimensions instead of re-embedding with another model.
What is the max input length of Amazon Titan Text Embeddings V2?
8,192 tokens per input, per Amazon's documentation. Longer text has to be chunked before you embed it.
How much does Amazon Titan Text Embeddings V2 cost?
The first-party list price is $0.02 per 1M input tokens. Amazon Bedrock on-demand price per 1M input tokens; batch listed as N/A. Source: https://aws.amazon.com/bedrock/pricing/.
What can Amazon Titan Text Embeddings V2 embed?
Text input, per the provider. It is documented as multilingual.
Sources
Last verified from the pages below.
- Bedrock Titan Text Embeddings models - docs.aws.amazon.com
- Bedrock model card - docs.aws.amazon.com
- Titan embeddings request and response - docs.aws.amazon.com
- Amazon Bedrock pricing - aws.amazon.com
More Amazon embedding models
Default dimensions, max input tokens and list price per 1M tokens.
Newsletter
New models, every week
One email per week. New model releases, embedding and retrieval updates and what they mean for what you build.
Keep exploring
Model API pricing and specs
First-party prices per 1M tokens for chat and reasoning models.
Local models
Open-weight LLMs you can download and run, with sizes and licenses.
What is RAG?
Where embeddings fit in a retrieval pipeline, end to end.
Vector databases compared
Where the vectors go once you have picked a model.