Getting 404 error while initiating API Connection

I am getting the exact error below while trying to initate open ai API:

There was a problem with request to openai API:
API responded with status code: 404. Request token size: 23 tokens. Response text: {
“error”: {
“message”: “The model gpt-4-turbo-preview does not exist or you do not have access to it.”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “model_not_found”
}
}

1 Like