I am out of quota, but I have tokens. Why?
Why this happens Due to Google limitations, if the user invoking the GPT function in a document is not in the same Google Workspace domain as the file owner, we can’t retrieve the invoker’s email address. In that case, we default to using the file owner’s email for billing/usage.
If the file owner has no tokens, the request is charged to the owner and fails-so the invoker receives an “out of quota” error.
Please note that this behavior is specific to Google Sheets GPT formulas (i.e., when invoking the GPT function via a Sheets formula).
When it works as expected
If the invoker owns the file, their email can be used and their tokens apply-so it should work normally.
How to fix
Transfer ownership of the file to the user who will run the GPT function, or have them create/copy the file under their account.
Ensure the current file owner has tokens/quota if the file must remain under that owner.
If possible, keep the owner and invokers within the same Google Workspace domain.
Last updated