Skip to content

Commit

Permalink
feat(bedrock): add Stable Image Ultra, Stable Diffusion 3 Large, and …
Browse files Browse the repository at this point in the history
…Stable Image Core model identifiers (#31327)

Add new foundation model.

Ref:
* https://aws.amazon.com/about-aws/whats-new/2024/09/stability-ais-text-to-image-models-amazon-bedrock/
* https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mazyu36 authored Sep 5, 2024
1 parent b5e4496 commit 586cb04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ export class FoundationModelIdentifier {
/** Base model "stability.stable-diffusion-xl-v1:0". */
public static readonly STABILITY_STABLE_DIFFUSION_XL_V1_0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1:0');

/** Base model "stability.sd3-large-v1:0". */
public static readonly STABILITY_SD3_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-large-v1:0');

/** Base model "stability.stable-image-ultra-v1:0". */
public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_0 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:0');

/** Base model "stability.stable-image-core-v1:0". */
public static readonly STABILITY_STABLE_IMAGE_CORE_V1_0 = new FoundationModelIdentifier('stability.stable-image-core-v1:0');

/**
* Constructor for foundation model identifier
* @param modelId the model identifier
Expand Down

0 comments on commit 586cb04

Please sign in to comment.