You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate images using Bedrock but getting an error No such imageModel:bedrock:amazon.nova-canvas-v1:0. It works with openai.
Here is a code snippet:
import { generateText, experimental_generateImage } from 'ai';
const registry = createProviderRegistry({
bedrock,
});
const { image } = await experimental_generateImage({
model: registry.imageModel('bedrock:amazon.nova-canvas-v1:0'),
prompt: 'A beautiful sunset over a calm ocean',
});
Here is the full error:
[2025-02-19 14:03:11] INFO: Generating image with options:
imageModelProvider: "amazon.nova-canvas-v1:0"
[2025-02-19 14:03:11] ERROR: Bedrock image generation failed: No such imageModel: bedrock:amazon.nova-canvas-v1:0
[2025-02-19 14:03:11] ERROR: Image generation failed or returned no data.
Code example
No response
AI provider
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hi @ebaizel - thanks for the issue. This is because image generation isn't yet supported with the Bedrock provider. More info on currently support models/providers here.
That would explain it :) Do you have a rough ETA of when it might get added? Trying to decide if we wait for this to get added in, or if we embed the AWS SDK in order to support image gen. Ideally would just use the AI SDK since we're already using it for text inference.
Description
I am trying to generate images using Bedrock but getting an error
No such imageModel:bedrock:amazon.nova-canvas-v1:0
. It works withopenai
.Here is a code snippet:
Here is the full error:
Code example
No response
AI provider
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: