Skip to content

feat: add Doubao Seedance 2.0 Mini model#2812

Merged
steebchen merged 1 commit into
theopenco:mainfrom
analogpvt:feat/add-seedance-2-0-mini
Jul 9, 2026
Merged

feat: add Doubao Seedance 2.0 Mini model#2812
steebchen merged 1 commit into
theopenco:mainfrom
analogpvt:feat/add-seedance-2-0-mini

Conversation

@analogpvt

@analogpvt analogpvt commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Adds the new Doubao/Dreamina Seedance 2.0 Mini video model (seedance-2-0-mini) under the ByteDance provider list, with its associated resolution/duration validations and pricing.

Summary by CodeRabbit

  • New Features
    • Added Seedance 2.0 Mini to available video-generation models.
    • Updated supported options for sizes/durations, reference-guided generation, and acceptance of first/last frame inputs for this model.
    • Added seedance-2-0-mini pricing for 480p and 720p (with audio and video only).
  • Bug Fixes
    • Improved validation and messaging for unsupported frame and reference inputs across Seedance 2.0 variants.
    • Refined resolution selection for Dreamina requests to better match the chosen output size.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@steebchen, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9495e278-4223-444a-9926-0e63f7e73ae5

📥 Commits

Reviewing files that changed from the base of the PR and between 72018e0 and 2571c72.

📒 Files selected for processing (2)
  • apps/docs/content/features/video-generation.mdx
  • apps/gateway/src/videos/videos.ts

Walkthrough

Adds seedance-2-0-mini as a ByteDance video model, updates gateway Seedance 2.0 routing and input checks, and refreshes the video-generation documentation with the new model’s capabilities and pricing.

Changes

Seedance 2.0 Mini model addition

Layer / File(s) Summary
Model definition
packages/models/src/models/bytedance.ts
Adds the seedance-2-0-mini model entry with provider ID, release date, pricing, supported sizes and durations, and capability flags.
Gateway Seedance 2.0 handling
apps/gateway/src/videos/videos.ts
Extends Seedance 2.0 detection to include the mini provider ID, updates frame/reference unsupported-input messages, and changes Dreamina resolution mapping from video size resolution.
Documentation update
apps/docs/content/features/video-generation.mdx
Adds the model to the available list, updates sizes/durations, frame-input scope, omni-reference wording, and pricing rows.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • theopenco/llmgateway#2270: Introduced earlier ByteDance Seedance model support in bytedance.ts and videos.ts, which this PR extends with the mini variant.
  • theopenco/llmgateway#2538: Added Seedance 2.0 reference input handling in videos.ts and related docs, overlapping with the constraint updates here.
  • theopenco/llmgateway#2699: Updated Seedance 2.0 frame input gating in videos.ts, which this PR expands to include seedance-2-0-mini.

Suggested reviewers: smakosh

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding the Doubao Seedance 2.0 Mini model.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/features/video-generation.mdx`:
- Line 16: The video-generation docs currently group seedance-2-0-mini with the
720p/1080p 5/10 profile, but its actual capability differs. Update the
capability table in the video generation docs to split Seedance 2.0 Mini into
its own row using the correct model mapping from the bytedance/seedance-2-0-mini
entry, and keep Seedance 2.0, Seedance 2.0 Fast, and Seedance 1.5 Pro in the
existing row with the shared resolution/duration profile.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 24f8083d-3a0f-46f8-9242-574de911ac97

📥 Commits

Reviewing files that changed from the base of the PR and between dce6db1 and b20feb9.

📒 Files selected for processing (3)
  • apps/docs/content/features/video-generation.mdx
  • apps/gateway/src/videos/videos.ts
  • packages/models/src/models/bytedance.ts

Comment thread apps/docs/content/features/video-generation.mdx Outdated
Adds the Doubao/Dreamina Seedance 2.0 Mini video model (seedance-2-0-mini)
under the ByteDance provider, with its resolution/duration validations and
pricing.

Mini natively supports 480p and 720p; 480p costs half the 720p rate
(3 vs 6 credits/sec), so it has explicit 480p_ perSecondPrice keys at
$0.0378/s while 720p resolves to the $0.0756 default. Dreamina requests
route 480p to the upstream resolution=480p instead of silently upscaling
to 720p. Verified end-to-end: an 848x480 request returns a genuine ~480p
clip.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@steebchen steebchen force-pushed the feat/add-seedance-2-0-mini branch from 72018e0 to 2571c72 Compare July 9, 2026 13:54
@steebchen steebchen enabled auto-merge July 9, 2026 14:02
@steebchen steebchen added this pull request to the merge queue Jul 9, 2026
Merged via the queue into theopenco:main with commit 4dfb9a7 Jul 9, 2026
10 checks passed
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.

2 participants