Exact variant identity and catalog structure
OpenGen separates four concepts so execution choices stay explicit and auditable:
- **Exact model variant (
modelId)**: A fixed<creator>/<variant>execution identity (for exampleopenai/gpt-image-2,bytedance/seedance-2.5,alibaba/wan-3.0, orminimax/h3-max). OpenGen catalogs 54 exact variants (7 published withopen-weights, each retaining its own license). Derivatives and speed tiers (Fast,Flash,Lite,Mini,Turbo,Prime,Klein) are never merged by marketing name. Where equivalence is explicitly confirmed — such asminimax/h3-maxserved by MiniMax and fal — legacy aliases (fal/h3-max) resolve cleanly without merging distinct derivatives (fal/h3-max-turbo,pika/h3-flex). - Model series: A public grouping of closely related variants for browsing (33 series across 11 model providers — for example GPT Image 2, Seedance 2.5, Wan 3.0, Kling 4.0, Nano Banana 2, FLUX 3 Image, MiniMax H3, and GPT-4o mini TTS).
- **Regional deployment (
deploymentId)**: A serving provider's specific API endpoint region and scope (20 deployments across 12 serving providers: Alibaba Cloud, Black Forest Labs, BytePlus, fal, Google, Kling AI, MiniMax, OpenAI, Pika, Replicate, Runway, and xAI). - **Regional route (
routeId)**: One exactmodelIdserved on onedeploymentIdwith explicit supported operations, resolutions, durations, single-source pricing, privacy disclosure, and verification status (184 total routes: 19live-verifiedwith scopedliveVerificationmetadata and 165documented).
Public catalog endpoints (6 routes)
All six endpoints under the models OpenAPI tag are unauthenticated, CORS-enabled (Access-Control-Allow-Origin: *), and served with Cache-Control: public, max-age=60, s-maxage=300 (Vary: Authorization, Cookie) on unauthenticated 200 OK responses:
| Endpoint | Operation ID | Purpose & Key Query Parameters |
|---|---|---|
GET /v1/models | models.list | Compact list/search of exact variants (~25 KB default without generationProfiles). Filters: q, modality (image\|video\|audio), familyId, providerId, region, operation, inputRole, collection, and optional expand=schemas to embed full generationProfiles |
GET /v1/models/{provider}/{model} | models.get | Recommended single-call inspection: returns model (with generationProfiles), series, routes (with privacyDisclosure), pricing, and deployments. Optional ?operation=<op> narrows schemas, routes, and pricing |
GET /v1/models/schema | models.schema | Returns one exact GenerationProfile (?modelId=<id>&operation=<op>), including commonArguments, modelSpecificArguments, defaults, capabilities, inputSchema, sources, notices, and validated examples |
GET /v1/collections | collections.list | Lists all 9 curated factual model collections with slugs, factual selection criteria, modalities, and modelIds |
GET /v1/collections/{slug} | collections.get | Returns full collection detail including constituent models (with generationProfiles), series, and privacy-disclosed routes |
GET /v1/routes | routes.list | Lists documented and live-verified regional routes with privacyDisclosure, rates, publishedPricing, and pricingSource. Filters: ?modelId= and ?operation= |
Compact search and single-call inspection
# Compact filtered search (returns ~25 KB or smaller summaries without JSON Schemas)
curl --fail-with-body \
"$OPENGEN_API_URL/v1/models?modality=video&operation=image-to-video&inputRole=firstFrame"
# Opt-in bulk schema expansion when needed
curl --fail-with-body \
"$OPENGEN_API_URL/v1/models?collection=image-utilities&expand=schemas"
# Single-call model inspection (schemas + routes + privacy disclosures + pricing + deployments)
curl --fail-with-body \
"$OPENGEN_API_URL/v1/models/bytedance/seedance-2.5?operation=image-to-video"
# Exact schema profile only (JSON Schema + defaults + example payload)
curl --fail-with-body \
"$OPENGEN_API_URL/v1/models/schema?modelId=bytedance%2Fseedance-2.5&operation=image-to-video"
# List regional routes for one model
curl --fail-with-body \
"$OPENGEN_API_URL/v1/routes?modelId=alibaba%2Fwan-3.0&operation=text-to-video"Supported operations and input roles
Every generation request declares an exact operation from the 10 canonical operations in @media-router/contracts. Each operation has a dedicated walkthrough guide with live supported-model tables:
| Operation | Modality | Primary Input Roles | Guide |
|---|---|---|---|
text-to-image | Image | prompt | Text to Image |
image-edit | Image | prompt, references.image, optional mask | Image Edit |
image-upscale | Image | references.image, scale | Image Upscale |
background-remove | Image | references.image | Background Remove |
text-to-video | Video | prompt | Text to Video |
image-to-video | Video | firstFrame, optional lastFrame, keyframes | Image to Video |
reference-to-video | Video | references.image / video / audio / document, elements | Reference to Video |
video-edit | Video | sourceVideo, prompt, optional references / elements | Video Edit |
video-extend | Video | sourceVideo or previousJobId | Video Extend |
text-to-speech | Audio | prompt, voice, speed | Text to Speech |
Filter GET /v1/models or MCP find_models by any of the 11 canonical inputRole values: firstFrame, lastFrame, keyframes, sourceVideo, references.image, references.video, references.audio, references.document, mask, elements, and targetAudio.
Curated factual collections (9 slugs)
Collections are computed deterministically from live catalog metadata via GET /v1/collections and GET /v1/collections/{slug} (or MCP find_models({ listCollections: true }) / find_models({ collection: "<slug>" })):
fast-image— Image variants explicitly designated Flash, Klein, Lite, Turbo, or Highspeed.image-editing— Image models supportingimage-edit.image-utilities— Specializedimage-upscaleandbackground-removemodels.text-to-video— Video models supportingtext-to-video.image-to-video— Video models supporting first-frame, last-frame, or keyframe conditioning.audio-enabled-video— Video models with documentedswitchableoralways-onsynchronized audio.reference-consistent-video— Video models supportingreference-to-video.text-to-speech— Audio speech synthesis models supportingtext-to-speech.open-weights— Exact catalog variants published with open weights (each with its own license).
Reading GenerationProfile and examples
GET /v1/models/{provider}/{model} and GET /v1/models/schema return GenerationProfile objects containing:
commonArgumentsandmodelSpecificArguments: exact allowlisted keys forinput. Unknown or unsupported fields fail fast with400 invalid_generationbefore hitting any provider.capabilities: exactresolutions,aspectRatios,duration(minimum,maximum,integer,auto),references(types, per-typemaximum,totalMaximum),frames(first,last,lastOnly,keyframesMaximum,timed),frameReferenceMix,audio(switchable | always-on | unsupported | unverified),quality, andcountMaximum.inputSchema: JSON Schema for the nestedinputobject.examples: ready-to-editrequest,generateenvelope,clicommand,placeholders(asset keys to replace after uploading), andnotices.
Model-specific connect instructions & .md twins
Every model series page (/[provider]/[series], such as /openai/gpt-image-2 or /bytedance/seedance-2.5) pairs an above-the-fold Pricing at a Glance summary with a single-source #connect section generated from @media-router/docs and @media-router/catalog:
- An above-the-fold Pricing at a Glance prose lead and
Provider | Unit Price | Cost per 1,000 ... | Regioncomparison table sourced strictly from@media-router/catalog(with a unifiedChecked YYYY-MM-DDcatalog/pricing review date, exact same-modelIdLowestcomparisons,≈markers for approximate/token-derived rates,Unknown/—for unpriced or mixed-unit entries, and explicit separation of higher-priced, unpriced, and other-variant regions). Treat starting rates as catalog list rates rather than executable quotes — confirm exact request cost viaPOST /v1/pricing/estimateor MCPestimate_cost(see Pricing & Analytics). - A copyable Agent Prompt box tailored to the selected exact variant and operation (with zero-auth
GET /v1/models/{provider}/{model}/ MCPget_model, dry-runPOST /v1/pricing/estimate, private/v1/assetsupload when required, and persistedIdempotency-Keysafety). - Step-by-step connection checklists and synced 5-tab copy-paste examples (
cURL,TypeScript,Python,MCP, andCLI) backed by liveGenerationProfileschemas. - Direct backlinks to the matching
/docs/guides/<operation>page and core platform docs (/docs/quickstart,/docs/mcp,/docs/clients,/docs/authentication,/docs/generations,/docs/regional-routing,/docs/pricing-and-analytics,/docs/webhooks, and/docs/api). - A full Markdown twin at
/[provider]/[series].md(and viaAccept: text/markdown) including## Pricing at a Glance,## Agent Prompt, and optional?variant=<modelId>&operation=<operation>selection.