This works with the openrouter API as well, which skips having to make a google account etc. Here's a Claude-coded openrouter compatible adaptation which seems to work fine: https://github.com/RomeoV/gemimg
A 1024x1024 image seems to cost about 3ct to generate.
One thing I'm missing when making slides with typst is the ability to show short videos or animated gifs. Although to be fair this isn't easy in beamer either.
Typst can actually include gifs, but they don't move for me. I have some hopes that perhaps one could make slides straight in html which could alleviate the issue.
Looks like the performance is pretty decent, somewhere around Llama3.1 for general knowledge (Tables 17) but still a bit behind in Code and Reasoning (Table 18). Llama3.1 was released about one year ago.
I don't want to read too much into it, but the person (supposedly) submitting the PR seems to work at 1Password since December last year, as per his Linkedin. (And his Linkedin page has a link to the Github profile that made the PR).