Skip to content

feat: add lucy-2.1-vton batch API support#46

Merged
AdirAmsalem merged 3 commits intomainfrom
lucy-2.1-vton-batch
Apr 14, 2026
Merged

feat: add lucy-2.1-vton batch API support#46
AdirAmsalem merged 3 commits intomainfrom
lucy-2.1-vton-batch

Conversation

@AdirAmsalem
Copy link
Copy Markdown
Contributor

@AdirAmsalem AdirAmsalem commented Apr 14, 2026

Summary

lucy-2.1-vton (virtual try-on) previously only supported realtime streaming. This adds batch/queue API support, so users can submit longer video try-on jobs asynchronously.

  • Registers lucy-2.1-vton and lucy-vton-latest as video (batch) models
  • Adds a video_tryon.py example

Usage

result = await client.queue.submit_and_poll({
    "model": models.video("lucy-2.1-vton"),
    "prompt": "wear this outfit",
    "data": open("person_video.mp4", "rb"),
    "reference_image": open("garment.png", "rb"),
})

Note

Low Risk
Low risk: this primarily adds new model identifiers/definitions plus tests and an example script, without changing existing model behavior or core request logic.

Overview
Adds batch/queue API support for virtual try-on by registering lucy-2.1-vton and the lucy-vton-latest alias as models.video(...) entries (new /v1/jobs/... endpoints) alongside existing realtime support.

Includes a new examples/video_tryon.py CLI demonstrating how to submit and poll a try-on job with a reference garment image, and extends tests/test_models.py to cover the new video models (plus updates uv.lock version metadata).

Reviewed by Cursor Bugbot for commit e436436. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 77bed01. Configure here.

Comment thread examples/video_tryon.py
Comment thread examples/video_tryon.py Outdated
@AdirAmsalem AdirAmsalem merged commit 1ad0317 into main Apr 14, 2026
9 checks passed
@AdirAmsalem AdirAmsalem deleted the lucy-2.1-vton-batch branch April 14, 2026 05:39
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