Native Amazon Bedrock API routev3.6+

Configure a route that uses native Amazon Bedrock APIs with the AWS SDK. This example uses the Meta Llama 3 70B Instruct model in the US East 1 AWS region.

Supported native Bedrock APIs include:

  • /converse
  • /converse-stream
  • /retrieveAndGenerate
  • /retrieveAndGenerateStream
  • /rerank

Set llm_format: bedrock to enable compatibility with these APIs. Use default values for genai_category and route_type parameters (text/generation and llm/v1/chat).

Prerequisites

  • AWS account with access to Bedrock

Environment variables

  • AWS_ACCESS_KEY_ID: The AWS access key ID to use to connect to Bedrock.

  • AWS_SECRET_ACCESS_KEY: The AWS secret access key to use to connect to Bedrock.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!