View a markdown version of this page

Intégrer v4 - Amazon Bedrock

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

Intégrer v4

Trois cercles superposés de couleurs vert foncé, corail et violet forment un logo ou une icône. Cohere — Intégrer la version v4

Détails du modèle

Embed v4 est le modèle d'intégration multimodal unifié de Cohere qui traite le texte, les images et le contenu mixte dans un seul modèle pour la recherche et le RAG. Pour plus d'informations sur le développement et les performances des modèles, consultez la model/service fiche.

  • Date de lancement du modèle : 15 avril 2025

  • Date EOL du modèle : N/A

  • Contrats de licence utilisateur final et conditions d'utilisation : Afficher

  • Cycle de vie du modèle : actif

  • Fenêtre contextuelle : 128 000 jetons

  • Identifiant du produit Marketplace : prod-ft3cj5gst3spo

Modalités de saisie Modalités de sortie API prises en charge Endpoints pris en charge
Red circle with white X icon indicating error, cancel, or close action.AudioGreen circle with white checkmark icon.IntégrationRed circle with white X icon indicating error, cancel, or close action. ResponsesGreen circle with white checkmark icon. bedrock-runtime
Green circle with white checkmark icon.ImageRed circle with white X icon indicating error, cancel, or close action.ImageRed circle with white X icon indicating error, cancel, or close action. Chat CompletionsRed circle with white X icon indicating error, cancel, or close action. bedrock-mantle
Red circle with white X icon indicating error, cancel, or close action.DiscoursRed circle with white X icon indicating error, cancel, or close action.DiscoursGreen circle with white checkmark icon. Invoke
Green circle with white checkmark icon.TexteRed circle with white X icon indicating error, cancel, or close action.TexteRed circle with white X icon indicating error, cancel, or close action. Converse
Red circle with white X icon indicating error, cancel, or close action.VidéoRed circle with white X icon indicating error, cancel, or close action.Vidéo

Capacités et fonctionnalités

Caractéristiques de Bedrock

Fonctionnalités prises en charge avec bedrock-runtime Endpoint

Tarification

Pour connaître les tarifs, consultez la page de tarification d'Amazon Bedrock.

Accès programmatique

Utilisez les ID de modèle et les URL de point de terminaison suivants pour accéder à ce modèle par programmation. Pour plus d'informations sur les API et les points de terminaison disponibles, consultez les sections API prises en charge et Points de terminaison pris en charge.

Point de terminaison ID du modèle In-Region URL du terminal Identifiant d'inférence géographique ID d'inférence global
bedrock-runtime cohere.embed-v4:0 https://bedrock-runtime.{region}.amazonaws.com

us.cohere.embed-v4:0

eu.cohere.embed-v4:0

global.cohere.embed-v4:0

Par exemple, si la région est us-east-1 (Virginie du Nord), l'URL du point de terminaison bedrock-runtime sera « » et celle de bedrock-mantle sera https://bedrock-runtime.us-east-1.amazonaws.com « ». https://bedrock-mantle.us-east-1.api.aws/v1

Niveaux de service

Amazon Bedrock propose plusieurs niveaux de service pour répondre à vos exigences en matière de charge de travail. Standard fournit un accès au paiement par jeton sans engagement. Priority offre un débit plus élevé avec un engagement basé sur le temps. Flex fournit un accès à moindre coût pour les charges de travail flexibles et non urgentes. Reserved fournit un débit dédié avec un engagement à terme pour des charges de travail prévisibles. Pour plus d'informations, consultez la section niveaux de service.

Standard Priorité Flex Réservé
Green circle with white checkmark icon. Red circle with white X icon indicating error, cancel, or close action. Red circle with white X icon indicating error, cancel, or close action. Red circle with white X icon indicating error, cancel, or close action.

Disponibilité par région

La disponibilité régionale en un coup d'œil

Bedrock propose trois options d'inférence : In-Regionconserver les demandes dans une seule région pour une conformité stricte, Cross-Regiongéo-itinéraires entre les régions d'une même zone géographique (États-Unis, UE, etc.) pour un débit plus élevé tout en respectant la résidence des données, et Cross-Region itinéraires mondiaux partout dans le monde pour un débit maximal en l'absence de contraintes de résidence. Reportez-vous à la Disponibilité régionale par modèle page pour plus de détails.

Région In-Region Géo Solution internationale
us-east-1(Virginie du Nord)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-east-2(Ohio)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-1(Californie du Nord)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-2(Oregon)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ca-central-1(Canada)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
eu-central-1(Francfort)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-central-2(Zürich)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-north-1(Stockholm)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-1(Milan)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-2(Espagne)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-1(Irlande)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-2(Londres)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-3(Paris)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-northeast-1(Tokyo)Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-2(Séoul)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-3(Osaka)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-south-1(Bombay)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-south-2(Hyderâbâd)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-1(Singapour)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-2(Sydney)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-3(Jakarta)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-4(Melbourne)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
sa-east-1(Sao Paulo)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.

Détails de la géo-inférence

Géo : États-Unis

Identifiant d'inférence géographique : us.cohere.embed-v4:0

Région source Régions de destination
us-east-1 (Virginie du Nord)us-east-1 (Virginie du Nord), us-east-2 (Ohio), us-west-2 (Oregon)
us-east-2 (Ohio)us-east-1 (Virginie du Nord), us-east-2 (Ohio), us-west-2 (Oregon)
us-west-1 (Californie du Nord)us-east-1 (Virginie du Nord), us-east-2 (Ohio), us-west-1 (Californie du Nord), us-west-2 (Oregon)
us-west-2 (Oregon)us-east-1 (Virginie du Nord), us-east-2 (Ohio), us-west-2 (Oregon)

Géo : UE

Identifiant d'inférence géographique : eu.cohere.embed-v4:0

Région source Régions de destination
eu-central-1 (Francfort)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-central-2 (Zürich)eu-central-1 (Francfort), eu-central-2 (Zurich), eu-nord-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-north-1 (Stockholm)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-south-1 (Milan)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-south-2 (Espagne)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-west-1 (Irlande)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)
eu-west-2 (Londres)eu-central-1 (Francfort), eu-nord-1 (Stockholm), eu-sud-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-2 (Londres), eu-west-3 (Paris)
eu-west-3 (Paris)eu-central-1 (Francfort), eu-north-1 (Stockholm), eu-south-1 (Milan), eu-south-2 (Espagne), eu-west-1 (Irlande), eu-west-3 (Paris)

Détails de l'inférence globale

ID d'inférence global Amériques EMEA Asie-Pacifique
global.cohere.embed-v 4:0
  • us-east-1 (Virginie du Nord)

  • us-east-2 (Ohio)

  • us-west-1 (Californie du Nord)

  • us-west-2 (Oregon)

  • ca-central-1 (Canada)

  • sa-east-1 (São Paulo)

  • eu-central-1 (Francfort)

  • eu-central-2 (Zürich)

  • eu-north-1 (Stockholm)

  • eu-south-1 (Milan)

  • eu-south-2 (Espagne)

  • eu-west-1 (Irlande)

  • eu-west-2 (Londres)

  • eu-west-3 (Paris)

  • ap-northeast-1 (Tokyo)

  • ap-northeast-2 (Séoul)

  • ap-northeast-3 (Ōsaka)

  • ap-south-1 (Bombay)

  • ap-south-2 (Hyderabad)

  • ap-southeast-1 (Singapour)

  • ap-southeast-2 (Sydney)

  • ap-southeast-3 (Jakarta)

  • ap-southeast-4 (Melbourne)

Quotas et limites

Votre compte AWS dispose de quotas par défaut pour maintenir les performances du service et garantir une utilisation appropriée d'Amazon Bedrock. Les quotas par défaut attribués à un compte peuvent être mis à jour en fonction de facteurs régionaux, de l'historique des paiements, de l'utilisation frauduleuse ou de and/or l'approbation d'une demande d'augmentation de quota. Pour plus de détails, reportez-vous à Quotas pour Amazon Bedrock la documentation et aux limites du modèle.

Exemple de code

Étape 1 - Compte AWS : si vous possédez déjà un compte AWS, ignorez cette étape. Si vous utilisez AWS pour la première fois, créez un compte AWS.

Étape 2 - Clé d'API : accédez à la console Amazon Bedrock et générez une clé d'API à long terme.

Étape 3 - Téléchargez le SDK : pour utiliser ce guide de démarrage, Python doit déjà être installé. Installez ensuite le logiciel approprié en fonction des API que vous utilisez.

pip install boto3

Étape 4 - Définissez les variables d'environnement : configurez votre environnement pour utiliser la clé API pour l'authentification.

AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"

Étape 5 - Exécutez votre première demande d'inférence : enregistrez le fichier sous bedrock-first-request.py

Invoke API
import json import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.invoke_model( modelId='cohere.embed-v4:0', body=json.dumps({ 'texts': ['What are the different services that you offer?'], 'input_type': 'search_document', 'embedding_types': ['float'] }) ) print(json.loads(response['body'].read()))