Welcome to the Alteryx Knowledge Base
Created/Edited -
When attempting to create a connection to the OpenAI connector, the process fails with the error: “Test connection failed”, even after generating and using a valid OpenAI API key.
OpenAI API usage limits are found in the logs. The 429 on POST /v1/chat/completions with type: "insufficient_quota" means the project tied to that key has no billable quota left (or a budget cap is hit).
Error code: 429 in the Datadog- {'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': None, 'code': 'insufficient_quota'}}
- Alteryx One
A 429 error with type: insufficient_quota means the OpenAI project associated with your API key has run out of credits. This typically happens when:
- Free trial credits have expired.
- The paid plan quota has been reached.
- A spending limit or budget cap has been hit in OpenAI’s billing settings.
This issue is not related to Alteryx. It will need to be reviewed and addressed by your organization’s IT team or whoever manages your OpenAI account.
Here’s what they could do:
Check billing status
- Visit: https://platform.openai.com/account/usage
- Review your current usage and limits.
Add a payment method or increase budget
- Visit: https://platform.openai.com/account/billing/overview
- If the free trial has ended, add a credit card.
- If a budget cap has been reached, increase or remove it.
Rotate or update the API key (optional)
- If you have another OpenAI project or organisation with an active quota, you can create a new API key and update your application or integration to use it.