Dear people can someone please help me? Is my first time i use the openai api, and i don’t know how to solve this problem, that’s the code:
from openai import OpenAI
client = OpenAI(api_key=“sk-…ZS”,)response = client.images.edit(
model=“dall-e-2”,
image=open(“FELV-cat.png”, “rb”),
mask=open(“FELV-cat-Mask.png”, “rb”),
prompt=“White hat”,
n=1,
size=“1024x1024”
)
image_url = response.data[0].url
And that’s the problem:
Error code: 400 - {‘error’: {‘code’: ‘billing_hard_limit_reached’, ‘message’: ‘Billing hard limit has been reached’, ‘param’: None, ‘type’: ‘invalid_request_error’}}
httpx.HTTPStatusError: Client error ‘400 Bad Request’ for url ‘link’
For more information check: link
During handling of the above exception, another exception occurred:
File “C:\Users.…\Desktop\AI\AI.py”, line 27, in
response = client.images.edit(
openai.BadRequestError: Error code: 400 - {‘error’: {‘code’: ‘billing_hard_limit_reached’, ‘message’: ‘Billing hard limit has been reached’, ‘param’: None, ‘type’: ‘invalid_request_error’}}
I can’t send the link so i can attach an image