MJ::Arcana::GoogleDirectTransport
Inherits MJ::Arcana::Transport < Reference < Object
Google's Gemini image API, direct — a third independent capacity pool.
Same models Runware fronts as google:4@3 and google:nano-banana@2-lite, admitted
against our own Google quota instead of queueing behind every other Runware customer.
Unlike the OpenAI pool this one is also markedly FASTER: lite measured ~2.8s direct
against 6.1s through Runware, which makes it the best candidate for anything a player
might notice.
Everything below was probed against the live API, and three things differ from every other provider here:
- It takes an aspect RATIO, not pixel dimensions. The 14 legal ratios and the
size each produces are in
Cameras::GOOGLE_DIMS/RATIO_FOR, measured one call at a time. Eight of them match the Nano sizes probed through Runware exactly, which is good evidence the size set belongs to the model rather than the aggregator — and two (928x1152, 1152x928) are sizes Runware does not expose at all. - It rejects unknown fields. Runware silently swallows a parameter it does not
implement, so a 200 there proves nothing; OpenAI accepts the field name but the
model may still refuse it. Google answers
Unknown name "bogusField". A 200 from this provider actually means the parameters engaged, which makes it the only one of the three whose success is self-verifying. - It reports tokens, so cost is computed rather than quoted.
usageMetadatagives image output tokens — a flat 1120 for every 1K image regardless of aspect, so a 2928x352 panorama costs exactly what a square does.
Constants
Reverse of the measured size table: which ratio string produces this exact size.
The service snaps a caller's request to one of these sizes through the camera's
dims, so the lookup is always an exact hit.
Published USD per 1M image output tokens, by model. Measured token counts times these give the per-call figure. NOT billed-back numbers — Google reports tokens and no price — so results carry usd_estimated: true.
The batch endpoint (batchGenerateContent, which every image model supports) is half these rates. Nothing uses it yet; it is the right home for a stock library, where no caller is waiting.