Repository navigation
feat(openrouter): sync video generation models as v2-only - #10605
Merged
Merged
Conversation
Contributor
|
No actionable findings. |
rekram1-node
enabled auto-merge (squash)
October 20, 2026 23:48
rekram1-node
disabled auto-merge
October 20, 2026 23:48
rekram1-node
force-pushed
the
openrouter-video
branch
from
October 20, 2026 23:52
e8f34d6 to
40b93fd
Compare
Contributor
|
No actionable findings. |
rekram1-node
force-pushed
the
openrouter-video
branch
from
October 21, 2026 02:24
40b93fd to
c6bac51
Compare
Contributor
|
No actionable findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
OpenRouter lists 30 video-only models (
output_modalities=["video"]) that the sync skips./modelsreports"0"prices for them; the real prices are thepricing_skusinGET /api/v1/videos/models, which use about 45 SKU names. This follows #10593 (speech, transcription, embedding and rerank) and #10603 (images, merged). It's built on top of the image code and reuses its fetch helper, base-model resolution and price-entry builder.Change
Each file is
v2_only = true, usesbase_model, and authors[api.videos](POST /api/v1/videos;@openrouter/ai-sdk-providerhasvideoModel).SKU → CostV2
cents_per_second_output[_res],cents_per_video_output_second_resvideo.output,unit = "second", cents ÷ 100cents_per_second_video_continuation_reswhen.input_video = trueduration_seconds[_with|_without_audio][_res]video.outputper second (USD),when.generate_audiotext_to_video_/image_to_video_/reference_prefixwhen.mode=text-to-video/image-to-video/reference-to-video(OpenRouter's generation modes)video_tokens[_res][_with_video_input|_without_audio]video.outputper 1M tokens,when.input_video/generate_audiocents_per_image_input,reference_images,reference_input_imagesimage.input,unit = "image"_480p…_1080p,_2k,_4kwhen.resolutionwith OpenRouter's request values (480p,2K,4K)generate_audiodefaults totruefor models with audio (OpenRouter docs), and billing follows that default. Live, Kling 3.0 Std billed $0.63 with no flag and $0.42 withgenerate_audio: false, which is 5 s × $0.126 and 5 s × $0.084. None of today's SKUs vary by duration.Unrepresentable prices (no
[cost]on these 2)runway/aleph-2minimum_cents_per_generation= 56black-forest-labs/flux-video-upscalecents_per_megapixel_second_precise/_creativeAlso noted but not in the SKUs: Kling billed a 3.04 s clip as 5 seconds (see above). Its per-second prices hold from 5 s up.
Lab files
19 new, all v2-only:
Reused:
minimax/MiniMax-H3andMiniMax-Hailuo-2.3,bytedance-seed/seedance-2.0/-2.0-fast/-2.5,xai/grok-imagine-video/-1.5/-1.5-lite, and the threegoogle/veo-3.1*-generate-previewlabs (OpenRouter'sgoogle/veo-3.1*; the file keeps OpenRouter's name, "Veo 3.1"). OpenRouter'sbytedance/andkwaivgi/prefixes map tobytedance-seedandkuaishouthrough a media-only table, so chat models under those prefixes don't change. Each new lab cites its release date and its input formats. New labs outputvideo/mp4only; generated sound is a track inside the MP4, so they add no genericaudiooutput.Out of scope
generate-v2still derivesapifrom v1 fields, so the v2 output showschat-completionsinstead ofvideos(known, deferred).Verification
bun packages/core/src/sync/index.ts openrouter --dry-run --no-issues: dev showed 0 created / 7 updated (live DeepSeek, MiMo and GLM price churn) / 566 unchanged. The 30 files come from a real sync run on this branch (30 created), with the 7 unrelated updates reverted; the dry run afterwards shows 0 created and only the same 7 updates.bun run v1:check: v1 output is byte-identical.bun validate: passes.bun test: same 11 failures as dev. 6 new OpenRouter video tests pass: type mapping, per second with resolution and continuation, audio and mode overrides, per-token SKUs, unrepresentable SKUs, and base_model/standalone files._experimental_v2.0_api.json): all 30 present withtype = "video",video/mp4and their costs.