with
synthesizeJsonStreaming
There's no way to catch an error if you're out of credits. It just returns an iterable stream with nothing in it