guides/error-codes.md +3 −3
39### 400 - Invalid service_tier argument39### 400 - Invalid service_tier argument
40 40
41 41
4242The API returns the message "Invalid service_tier argument: The requested service tier is not allowed for this project." as an `invalid_request_error` with `error.param` set to `service_tier` when a request selects or resolves to a service tier that is not allowed for the project.The API returns the message "Invalid `service_tier` argument: The requested service tier is not allowed for this project." as an `invalid_request_error` with `error.param` set to `service_tier` when a request selects or resolves to a service tier that is not allowed for the project.
43 43
44Project restrictions apply to the `default`, `flex`, and `priority` service tiers. The `fast` service tier is evaluated as `priority`. Requests that omit `service_tier` or set it to `auto` can also return this error if they resolve to a disallowed tier. Scale Tier remains outside this project policy.44Project restrictions apply to the `default`, `flex`, and `priority` service tiers. The `fast` service tier is evaluated as `priority`. Requests that omit `service_tier` or set it to `auto` can also return this error if they resolve to a disallowed tier. Scale Tier remains outside this project policy.
45 45
46To resolve this error:46To resolve this error:
47 47
4848- Check the allowed service tiers in [project settings](https://platform.openai.com/settings/).- Check the allowed service tiers in [project settings](https://platform.openai.com/settings/) and [organization settings](https://platform.openai.com/settings/organization/general#service-tiers). Projects cannot enable tiers blocked by the organization.
49- Set `service_tier` to a tier allowed for the project.49- Set `service_tier` to a tier allowed for the project.
50- If the request uses `auto` or omits `service_tier`, update the project settings so the resolved tier is allowed.50- If the request uses `auto` or omits `service_tier`, update the project settings so the resolved tier is allowed.
51 51
80 80
81This error message indicates that the API key you are using in your request is not correct. This could happen for several reasons, such as:81This error message indicates that the API key you are using in your request is not correct. This could happen for several reasons, such as:
82 82
8383- There is a typo or an extra space in your API key.- Your API key contains a typo or an extra space.
84- You are using an API key that belongs to a different organization or project.84- You are using an API key that belongs to a different organization or project.
85- You are using an API key that has been deleted or deactivated.85- You are using an API key that has been deleted or deactivated.
86- An old, revoked API key might be cached locally.86- An old, revoked API key might be cached locally.