And here’s another bit of code, more reverse engineering of what is undocumented API.
organization user to usage
The convoluted “organization” system that doesn’t really align with a developer providing AI services or a company using them - which would require each employee or user to have a personal OpenAI account:
An account can have one organization:
API keys are unique to a user account.
The user can be invited to an organization.
The user can select the default organization for all API keys.
The user can specify a different organization of theirs in an API call.
(then this is confused by the “user” field in an API call, which seemingly can only serve to let you blame one of your users when OpenAI tries to kick you for content.)