Error handling
400: Bad request
Description
This error code indicates that your requests are malformed or invalid for the options you choose. This usually happens when you specify a model in your request body and pick the unsupported parameters for that model.
This usually happens in two ways:
- Keywords AI’s validator catches invalid input types for parameters for some parameters before sending them to its upstream provider. This means your request is malformed and some request parameters are not in the right type. and you should follow the guide on the LLM params page
- The request passed the basic validations/type checking, but it was rejected by the upstream provider of Keywords AI. This usually happens when you pass in parameters that are not supported by the models you specified and turn off Keywords AI’s safety net. It is recommended to turn on the safety net to avoid this issue.