ChatGPT Plus and the API are billed separately. The API is prepaid: go to platform.openai.com → Settings → Billing and add credits (minimum is small). Then it works, sometimes after a few minutes.
insufficient_quota = no money on the account. A "real" rate limit says rate_limit_exceeded instead, and waiting helps for that one.