Files
openmotion/docs/generation-options.md
Haoran Zhou 7c9bf3455a feat(studio): improve provider setup UX, Free/Go guidance, and OpenDesign generation options (#702)
* fix(studio): surface provider setup, Free/Go upgrade guidance, and OpenDesign media options

- Show a non-blocking subscription upgrade banner with a direct Manage subscription link in Studio when the signed-in OpenDesign account reports mediaEntitlement: not-included, and prefer totalAvailableCreditsUsd over balanceUsd when reading account billing.
- Show a direct Configure <provider> or Sign in with OpenDesign action in Studio when a selected model belongs to an unconfigured provider, routing straight to that provider or Account settings.
- Derive quick generation options for OpenDesign Cloud and account image/video models from published capabilities (paired aspect_ratio + resolution profiles with fallback to sizes, quality, and video ratio/resolution/duration), pack Cloud image aspect_ratio + resolution into output on submission, filter compatible image resolutions in GenerationParameters, and let Shorts Studio default to 9:16.
- Add localized UI copy across all 10 non-English locales, update generation-options documentation, and add unit tests covering backend parameter resolution, billing precedence, and Studio UI flows.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix(media): enforce edit profile envelope and document Cloud image wire shape

- Validate and filter OpenDesign image aspect_ratio/resolution choices against the active generations vs edits profile envelope across shared/generation-options.ts, gateway/service.ts, and Studio GenerationParameters.
- Reject lone aspect_ratio or resolution values (and size/output conflicts) in gateway/opendesign.ts before uploading references when no capabilities.profiles envelope is available to complete the pair.
- Update opendesign.md, account.md, and docs/generation-options.md to document the Cloud output wire envelope, active profile pairing rules, and auto-completion behavior.
- Add regression tests covering distinct generations/edits envelopes and unprofiled Cloud image rejection.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

---------

Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-11-20 14:22:41 +08:00

5.3 KiB

Generation options

Studio, external MCP callers and the embedded asset Agent receive the same optional Model.generationOptions from Model Gateway discovery. shared/generation-options.ts maintains exact provider/model profiles. The service validates known fields before queueing a new job; idempotent replay returns the original job. Unknown model IDs receive no guessed profile. Advanced JSON remains available for provider-specific fields, including custom FLUX image dimensions.

Quick controls override matching advanced fields; request parameters override saved model defaults. Unchanged fields are omitted and inherit saved/provider defaults. Studio preserves separate parameter drafts for each model while the creator is open. These drafts are not account settings. Returned jobs and asset versions record actual submitted parameters. Local Codex image preferences are appended to its instruction: they are creative requests, not guaranteed raster specifications.

Maintained profiles

Checked on 2026-11-15 against the following official endpoint schemas and current adapters:

Exact endpoint Quick controls Source
codex:image-generation Requested aspect ratio and background, delivered as prompt preferences gateway/agents.ts, gateway/service.ts
atlascloud:google/nano-banana-2/text-to-image Aspect ratio, resolution, format, thinking level, web search, seed Atlas schema
atlascloud:bytedance/seedance-2.0/text-to-video Ratio, resolution, integer duration, audio, bitrate, seed Atlas schema
atlascloud:suno/chirp-v4 Instrumental-only and vocal gender; prompt remains an inspiration brief Atlas schema
fal:fal-ai/flux/schnell Image size, output count, format, seed fal schema
fal:fal-ai/wan/v2.2-a14b/text-to-video Ratio, resolution, frames, frame rate, prompt expansion, negative prompt, seed fal schema
fal:fal-ai/kokoro/american-english Voice and speed; spoken input uses prompt fal schema
OpenDesign Cloud/account image Aspect ratio, resolution (paired from the active generations or edits envelope in capabilities.profiles; Cloud packs paired fields into output: { aspect_ratio, resolution } and rejects incomplete pairs when no profiles are published), legacy image size (when no profiles are published), and quality Current Cloud/account /api/v1/media/models catalogue contract
OpenDesign Cloud/account video Aspect ratio, resolution and integer duration derived from published capabilities.ratios, resolutions and durations Current Cloud/account /api/v1/media/models catalogue contract
OpenDesign Cloud/account speech elevenlabs-v3 and byteplus-tts-2 offer voices checked against the media API, defaulting to the first; another non-empty voice ID for the same model is passed through unchecked. Other speech models require a voice ID Current Cloud/account adapter contract
OpenDesign account music Optional whole-second duration Connector audio music --duration; the catalogue publishes no range

These controls cover a maintained subset, not all models or all provider parameters. Custom model names and live catalogue labels do not establish wire compatibility. Provider-native types remain intact: Seedance duration is an integer, audio is a boolean, and Wan takes frames rather than a fabricated duration field. Local asset references are limited to image models that report supportsImageReference: the Codex image adapter and OpenDesign account image models whose catalogue publishes edits. No local-upload support is inferred from a model accepting remote reference URLs.

The embedded Codex conversation separately exposes model selection and discovered reasoning efforts. Effort is passed as turn/start.effort, with null restoring the model default on subsequent turns. This field was checked against the installed Codex app-server JSON schema. Other Agents continue to use external MCP; selecting a local CLI in settings does not add an embedded runner.

Interaction and validation

Generation settings use an anchored, non-modal popover with ratio tiles, selections, switches and bounded numeric controls. Known failures use the shared Toast layer. The asset navigation and creation pane have drag separators, keyboard arrows (Shift for larger steps), Home/End limits and double-click reset. Width preferences survive reloads; available content space bounds their rendered widths, and narrow creation uses the whole workspace.

Deterministic tests cover model discovery, invalid native parameter types, queued parameter identity, replay without another submission, Kokoro wire mapping, reasoning forwarding, JSON/control precedence and pane persistence/bounds. Browser inspection covers opened nested menus, actual drags, both themes and narrow layouts. Live paid generation, provider entitlement and human visual acceptance remain separate.