#why do i get 429 on the moderation api i didnt even use it
1 messages · Page 1 of 1 (latest)
const response = await client.openai.moderations.create({
model: "omni-moderation-latest",
input: message.content,
});```
status: 429,
headers: {
'alt-svc': 'h3=":443"; ma=86400',
'cf-cache-status': 'DYNAMIC',
'cf-ray': '8f48aece5eb43ff3-SIN',
connection: 'keep-alive',
'content-length': '316',
'content-type': 'application/json',
date: 'Thu, 19 Dec 2024 16:13:57 GMT',
'openai-organization': 'user-k1d1sv9hcfk5dxt2wdxwbdcd',
'openai-processing-ms': '45',
'openai-version': '2020-10-01',
server: 'cloudflare',
'set-cookie': '__cf_bm=jl7t9SFxu6i2WQtm_lEszxjP6_X5PZTmhmOrauSAG7g-1734624837-1.0.1.1-JDJW_UCBtKcSpM4PuAQpl9hExu0T2CQ0oi2XO94MAqKNo1P1C1Ol9Tpn6Ei4TFre1biU0pi25QAipY_CTdmr5w; path=/; expires=Thu, 19-Dec-24 16:43:57 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=gqwnpqFV6BWy.SlZULvqlDdcbPKcxJq6RJaTk.LoldA-1734624837159-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'x-request-id': 'req_4eb0f57777299722b546e1c29a30c7bb'
},
request_id: 'req_4eb0f57777299722b546e1c29a30c7bb',
error: {
message: 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.',
type: 'insufficient_quota',
param: null,
code: 'insufficient_quota'
},
code: 'insufficient_quota',
param: null,
type: 'insufficient_quota'
}
Rate limit hit. Retryin```
i get this
but on the free tier it seems it has 18 usd
idk
add credit to your account, load $10 on there. Also the moderation API can only be used to moderate OpenAI related requests
what does this means moderate "OpenAI related requests"
it means you can only use moderation API to moderate API inputs and outputs, you can't moderate 3rd party traffic, eg: a forum or chat
so that means i cant use it on a bot
an OpenAI API powered bot?
add credit to your account and see if that helps