Invalid_request_error in ChatGPT API

i have same problem
without API key

$ curl https://api.openai.com/v1/chat/completions \
>   -H 'Content-Type: application/json' \
>   -H 'Authorization: Bearer YOUR_API_KEY' \
>   -d '{
>   "model": "gpt-3.5-turbo",
>   "messages": [{"role": "user", "content": "Hello!"}]
> }'
{
    "error": {
        "message": "Incorrect API key provided: YOUR_API_KEY. You can find your API key at https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": "invalid_api_key"
    }
}

have API key

curl https://api.openai.com/v1/chat/completions \
>   -H 'Content-Type: application/json' \
>   -H 'Authorization: Bearer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■iFfot41G' \
>   -d '{
>   "model": "gpt-3.5-turbo",
>   "messages": [{"role": "user", "content": "Hello!"}]
> }'
{
  "error": {
    "message": "Invalid URL (POST /v1/chat/completions)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}