MJ::Arcana::Camera
Inherits JSON::Serializable < Struct < Value < Object
The camera registry — what a caller should NOT have to know.
Every image model on Runware arrives with its own geometry rules, its own parameter spelling, and its own ways of failing quietly. Callers that talk to the API directly reimplement that knowledge and get some of it wrong; arcana-ai's identity methods sat broken in production for months because nothing surfaced the mistake. Encoding it once, here, is the whole reason this service exists.
Costs and timings below are MEASURED from live calls (Runware's includeCost), not
quoted from documentation. Re-measure rather than trusting them to stay true.
Constructors
Instance methods
Models constrain size in one of two ways, and conflating them loses real sizes.
dims is an exhaustive list (Nano, Kontext, GPT Image 1.5); range is
{min, max, step} and accepts anything in between (Klein, GPT-Image 2.5). Exactly
one is set. Both were read off the API's own rejection messages, not guessed —
an empty positivePrompt makes size validation answer for free, because it runs
before prompt validation.
Some models constrain TOTAL pixels as well as each side, and the two are not redundant: GPT-Image 2.5 takes sides from 16 to 3840 but demands the product sit between 655,360 and 8,294,400. So 512x512 is refused for being too few pixels even though both sides are legal, and 3840x3840 is refused for being too many. Found the hard way — a 512x512 shot came back "below the current minimum pixel budget" after every earlier test happened to use 1024x1024.
Which transport serves this camera. All seven are "runware" today, and that is the point of recording it: every one of them queues behind a single endpoint on a single account, so choosing a different camera does NOT route around congestion. Model diversity is not capacity diversity. When a second transport exists, this field is what tells a caller which cameras are genuinely independent pools.
A rank, not a measurement: ordered by Trans's eye over the model survey, ascending. Reuse can prefer a higher rank when several cached pictures match.
Does a caller-supplied seed actually reproduce a picture on this camera?
Measured by generating the same prompt with the same seed twice and comparing the bytes, because every provider ACCEPTS a seed and most then ignore it:
klein identical bytes -> honours it flare hard 400 -> Runware: unsupportedArchitectureSeed kontext different bytes -> accepted and ignored lite different bytes -> accepted and ignored dnano different bytes -> accepted and ignored dlite different bytes -> accepted and ignored
Only the FLUX diffusion model reproduces. The GPT-Image and Gemini families do not, whether reached through Runware or directly. nano, sunburst, hero, dflare, dsunburst and dhero are marked false by inference from their families rather than measured one by one — the two that were measured in each family agreed.
Models reject unsupported sizes outright rather than snapping, so this has to happen before the request goes out.
A PROVENANCE marker, not a quality signal: it records that this camera's
configuration differed, and implies nothing whatever about whether the result is
better. quality is the only ordering signal here. That separation is deliberate —
a bump can be a forced model substitution that is merely different, so a consumer
preferring "newer" on this field would sometimes prefer worse.
Know its limit before relying on it: it only moves when WE change something —
the model id, the default parameters, the prompt scaffolding. If Google silently
improves a model behind the same id, this stays where it is while the pictures
change. It cannot answer "did the provider upgrade?", and nothing on this side
reliably can. generated_at on each result is the field that survives that, because
it is a fact about the picture rather than a claim about the config.