Repository navigation
feat(video): Sellers announce each model's queue fields as supportedParameters - #1222
Closed
alexanderludwig wants to merge 1 commit into
Closed
alexanderludwig wants to merge 1 commit into
alexanderludwig wants to merge 1 commit into
Conversation
Collaborator
Author
|
Follow-up review: checked frameFieldMap against all 100 fal image-to-video endpoints (live public schemas). Added |
alexanderludwig
force-pushed
the
codex/fal-frame-field-mapping
branch
2 times, most recently
from
October 15, 2026 19:13
f19ad9c to
52deea5
Compare
…arameters fal sellers read each endpoint's public OpenAPI input schema at startup and pass the request body to fal unchanged. Venice sellers derive the fields from Venice's video model list and their announced frame inputs. The antseed-videos skill picks frame and audio field names and whether to send aspect_ratio from what the chosen seller announces, so buyers never call fal directly. Sellers that announce nothing keep the previous behavior.
alexanderludwig
force-pushed
the
codex/fal-frame-field-mapping
branch
from
October 15, 2026 19:36
52deea5 to
8a11b75
Compare
Collaborator
Author
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
To choose between
image_urlandstart_image_url, theantseed-videosskillcurled fal's OpenAPI schema directly from the buyer (first_field). Buyers should only talk to AntSeed sellers.Design
The upstream API is kept as it is: the seller passes the body to fal unchanged, and the buyer uses fal's own field names. The seller tells the buyer what those names are.
@antseed/provider-fal-video):init()fetches each allowed endpoint's public OpenAPI input schema. It sends no seller key and uses a 10s timeout.capabilities.supportedParameters. That field already exists: it's signed and sent through discovery.supportedParametersinANTSEED_SERVICE_CAPABILITIES_JSONkeeps its own list and skips the fetch.supportedParametersand picks the first-frame field (image_url/start_image_url/first_frame_url/first_image_url) and the last-frame field (end_image_url/tail_image_url/last_frame_url). It falls back toimage_url/end_image_urlwhen the seller lists none. The falcurlis removed.fal-videogetsmodelas a baseline field. The existing check for fields a seller didn't announce now works for fal video too, without warning about the routing field.I checked against fal's live schemas: all 100 fal image-to-video endpoints produce a valid list (the largest has 22 fields). Kling V3 announces
start_image_urlandend_image_url, plus its other inputs.Venice sellers too
@antseed/provider-venice-videonow does the same.init()readsGET /api/v1/models?type=videowith the seller key and announces each model's queue fields:promptandduration.resolutionandaspect_ratio.audio.video.inputs. When the seller announces none, image-to-video models getimage_url.A configured
supportedParameterslist wins, and failures fall back to announcing nothing. All 138 Venice video models produce a valid list. The result matches what D5V1N2 already announces by hand: forltx-2-5-fast-image-to-videothat'saspect_ratio,audio,duration,image_url,prompt,resolution. The gateway treatsmodelas a baseline field forvenice-videotoo.Skill
One picker reads the chosen seller's list:
audioorgenerate_audio, and dropsaudiowhen the model doesn't take it.aspect_ratiowhen the seller lists fields without it. That replaces the Seedance "don't send aspect_ratio" rule for sellers that announce.image_url/end_image_url, the protocol's audio name, and the model notes foraspect_ratio.Tests
plugins/provider-fal-video:vitest(16 tests) andtsc --noEmitpass. New tests cover:init()announcing the field names and fetching without the seller key;apps/cli:routing-parameters.test.tspasses, including a newfal-videocase;tsc --noEmitpasses.plugins/provider-venice-video:vitest(10 tests) andtsc --noEmitpass.image-video-payment-flow.test.tspasses.Proposed sandbox checks (not run)
fal-ai/kling-video/v3/pro/image-to-video./v1/models/<id>should liststart_image_urlundersupportedParameters. Run the skill with a first frame: it should sendstart_image_url, and the job should queue and start on that frame.fal-ai/kling-video/v2.1/pro/image-to-videoand a last frame. The skill should sendtail_image_url.image_urlandend_image_url.seedance-2-5-image-to-video-basicshould announceaudio,duration,end_image_url,image_url,prompt,resolution, and the skill should not sendaspect_ratio.supportedParameters.