I am receiving an error when trying to generate an image with Nova Canvas, Titan Image Generator, and Titan v2. I have only tried using the AI explorer.
I am able to successfully generate text, but images are not working for me. The error I receive is:
An error occurred
The following error occurred while processing your request:
Error invoking model response: Error executing "InvokeModel" on "https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-image-generator-v2%3A0/invoke"; AWS HTTP error: Client error: `POST https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-image-generator-v2%3A0/invoke` resulted in a `400 Bad Request` response: {"message":"Malformed input request, please reformat your input and try again."} ValidationException (client): Malformed input request, please reformat your input and try again. - {"message":"Malformed input request, please reformat your input and try again."}
Of the following exception type:
Drupal\ai\Exception\AiRequestErrorException
Comments
Comment #2
jbuttler commentedI was able to test Stable Image Ultra, core, and sd3 and all return errors like this:
An error occurred
The following error occurred while processing your request:
Error invoking model response: Error executing "InvokeModel" on "https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i..."; AWS HTTP error: Client error: `POST https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i...` resulted in a `400 Bad Request` response: {"message":"Malformed input request, please reformat your input and try again."} ValidationException (client): Malformed input request, please reformat your input and try again. - {"message":"Malformed input request, please reformat your input and try again."}
Of the following exception type:
Drupal\ai\Exception\AiRequestErrorException
Comment #3
jbuttler commentedWhile I cannot offer assistance coding the repair, I would be happy to provide some testing for a repair! Please let me know how I can assist with this project.
Comment #4
jbuttler commentedI am elevating this to major because all image models for Amazon titan are not working, and this affects the site functionality I am currently working on
I have tried the current recommended versions of this module and other AI modules with no improvement. I cannot offer coding or API assistance, but I would be happy to contribute with testing and/or site usage for this and other AI modules.
I greatly appreciate any assistance resolving this and bringing the image models to full functionality!