From cb573f61c8a4929f1b77cff27f8ddab747147e3d Mon Sep 17 00:00:00 2001 From: Tim Elfrink Date: Thu, 18 Sep 2025 10:57:12 +0200 Subject: [PATCH] Document model_id parameter for Bedrock inference profiles with image generation Add documentation for using AWS Bedrock Application Inference Profiles with image generation APIs, specifically for Nova Canvas models. The documentation includes: - SDK examples showing model_id parameter usage - Proxy configuration examples - Follows the same pattern as chat completions inference profiles --- docs/my-website/docs/providers/bedrock.md | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/my-website/docs/providers/bedrock.md b/docs/my-website/docs/providers/bedrock.md index c191b74226..9d3872e889 100644 --- a/docs/my-website/docs/providers/bedrock.md +++ b/docs/my-website/docs/providers/bedrock.md @@ -1891,6 +1891,39 @@ curl -L -X POST 'http://0.0.0.0:4000/v1/images/generations' \ +### Using Inference Profiles with Image Generation + +For AWS Bedrock Application Inference Profiles with image generation, use the `model_id` parameter to specify the inference profile ARN: + + + + +```python +from litellm import image_generation + +response = image_generation( + model="bedrock/amazon.nova-canvas-v1:0", + model_id="arn:aws:bedrock:eu-west-1:000000000000:application-inference-profile/a0a0a0a0a0a0", + prompt="A cute baby sea otter" +) +print(f"response: {response}") +``` + + + + +```yaml +model_list: + - model_name: nova-canvas-inference-profile + litellm_params: + model: bedrock/amazon.nova-canvas-v1:0 + model_id: arn:aws:bedrock:eu-west-1:000000000000:application-inference-profile/a0a0a0a0a0a0 + aws_region_name: "eu-west-1" +``` + + + + ## Supported AWS Bedrock Image Generation Models | Model Name | Function Call |