Skip to content

feat: Enhance Sora2 video generation parameters#680

Open
inoribea wants to merge 1 commit intoDooy:mainfrom
inoribea:feat/sora2-parameters
Open

feat: Enhance Sora2 video generation parameters#680
inoribea wants to merge 1 commit intoDooy:mainfrom
inoribea:feat/sora2-parameters

Conversation

@inoribea
Copy link

Summary

Significantly enhance Sora2 video generation models (sora-2 and sora-2-pro) with more precise parameter controls and new features for better video quality and customization.

Changes

Model Configuration (src/views/video/tpl.ts)

sora-2 (Standard version) enhancements:

  • ✅ Replace orientation (portrait/landscape) with aspect_ratio (16:9 / 9:16) for more precise control
  • ✅ Add resolution selection: 4K / 1080p / 720p / 480p
  • ✅ Update duration options: 5s / 10s / 15s (default changed from 15s to 5s)
  • ✅ Add watermark toggle (default: off)
  • ✅ Add private toggle (default: off)
  • ✅ Add enhance_prompt field (auto-enabled by default)

sora-2-pro (Pro version) enhancements:

  • ✅ All features from standard version
  • New: HD Mode toggle (exclusive to Pro version)
  • ✅ Extended duration options: 5s / 10s / 15s / 20s / 25s (up to 25 seconds)
  • ✅ Same resolution, aspect ratio, watermark, and private controls

Internationalization

  • src/locales/zh-CN.ts - Added Chinese translations:

    • sora2about: "Sora2 相关"
    • sora2server: "Sora2 接口地址"
    • sora2keyPlaceholder: "Sora2 的 API Key, 可不填"
    • sora2key: "Sora2 Key"
    • hdMode: "高清模式"
    • watermark: "水印"
    • private: "私密"
    • enhancePrompt: "提示词增强"
    • sora2Desc: Comprehensive description
  • src/locales/en-US.ts - Added English translations for all above keys

Key Improvements

  1. More Precise Controls: Replaced vague orientation/size with specific aspect_ratio/resolution
  2. Better User Experience: Default duration changed to 5s for faster testing
  3. Privacy & Branding: New watermark and private toggles give users control
  4. Pro Features: HD Mode exclusive to Pro version for premium quality
  5. Prompt Enhancement: Auto prompt optimization for better results
  6. Full i18n Support: Complete bilingual interface (Chinese & English)

Technical Details

  • Backward compatible: New parameters replace old ones without breaking existing functionality
  • Type-safe: All parameters properly typed in TypeScript
  • UI-ready: Switch components for boolean parameters, select for enums

- Replace orientation with aspect_ratio for both sora-2 and sora-2-pro
- Add resolution selection (4K/1080p/720p/480p) for all Sora2 models
- Add watermark toggle for both models
- Add private toggle for both models
- Add enhance_prompt field (auto-enabled by default)
- Add HD Mode toggle for sora-2-pro (exclusive)
- Extend duration options for sora-2-pro (5/10/15/20/25s)
- Update default duration from 15s to 5s for better user experience
- Add i18n translations for all new parameters (zh-CN and en-US)
@vercel
Copy link

vercel bot commented Dec 30, 2025

@inoribea is attempting to deploy a commit to the dooy's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant