No access to text-moderation-007

I am having an issue where sending requests to text-moderation-007 receives this error:
Error code: 403 - {‘error’: {‘message’: ‘Project proj_xxxxx does not have access to model text-moderation-007’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}}

I am sending requests through LiteLLM like so:
response = moderation(input=message_content, model=“text-moderation-stable”)
But have also tried the python and curl requests available on the API reference docs.

I had this issue before and it solved itself but a while before coming back.
Has anyone solved this other than recreating the project? That isn’t working for me.

Two content moderations models are available: text-moderation-stable and text-moderation-latest

client = openai.Client()
response = client.moderations.with_raw_response.create(
input="lick a duck!",
model="text-moderation-latest")
print(response.parse().model)
text-moderation-007

Same return for stable.

Check the rights of your project and your API key, along with the API key being from by a credit-funded API account organization. You can create a user key that doesn’t depend on rights.

how can I fix this???

Error: 403 Project *** does not have access to model text-moderation-007

const moderationResponse = await openai.moderations.create({
          model: "text-moderation-latest",
          input: text
      });

The text-moderation models are not listed in the project limits, but the error suggests I would need to fix something there.

I think you need to enable permissions on your api key.

https://platform.openai.com/api-keys

Permissions has been set to All from the start. I’ve tried adjusting the permissions, but this does not change anything.