struct

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

new(id : String, label : String, model : String, cost : Float64, seconds : Float64, note : String, quality : Int32, version : Int32 = 1, dims : Nil | Array(Array(Int32)) = nil, range : Tuple(Int32, Int32, Int32) | Nil = nil, pixels : Tuple(Int32, Int32) | Nil = nil, provider : String = "runware", seeds : Bool = false, extra : Hash(String, JSON::Any) = {} of String => JSON::Any)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cost
Source
dims

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.

Source
extra
Source
label
Source
model
Source
note
Source
pixels

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.

Source
provider

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.

Source
quality

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.

Source
range
Source
seconds
Source
seeds

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.

Source
sizes
Source
snap(width : Int32, height : Int32) : Tuple(Int32, Int32)

Models reject unsupported sizes outright rather than snapping, so this has to happen before the request goes out.

Source
version

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.

Source