https://api.openai.com/v1/chat/completions

Sample error messages from OpenAI
https://api.openai.com/v1/chat/completions

--------------------------------------------------

Ha nincs elég credit:
POST https://api.openai.com/v1/chat/completions
HTTP RESPONSE CODE: 429 Too Many Requests
{
  "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"
  }
}

--------------------------------------------------

POST https://api.openai.com/v1/chat/completions
Ha nem jó az API key Post:
HTTP RESPONSE CODE: 401 Unauthorized
no body

--------------------------------------------------

GET https://api.openai.com/v1/models
HTTP RESPONSE CODE: 401 Unauthorized
{
  "error": {
    "message": "Missing bearer authentication in header",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}
