Skip to content

feat: add lucy-2.1-vton batch/queue API support#117

Merged
AdirAmsalem merged 1 commit intomainfrom
lucy-vton-batch-api
Apr 14, 2026
Merged

feat: add lucy-2.1-vton batch/queue API support#117
AdirAmsalem merged 1 commit intomainfrom
lucy-vton-batch-api

Conversation

@AdirAmsalem
Copy link
Copy Markdown
Contributor

@AdirAmsalem AdirAmsalem commented Apr 14, 2026

Summary

lucy-2.1-vton (virtual try-on) is now available as a batch/queue model in addition to realtime. Users can submit async video processing jobs for virtual try-on using the queue API.

Also adds lucy-vton-latest as a video model alias for server-side resolution.

Usage

import { createDecartClient, models } from "@decartai/sdk";

const client = createDecartClient({ apiKey: "..." });

const result = await client.queue.submitAndPoll({
  model: models.video("lucy-2.1-vton"),
  prompt: "Wearing a red leather jacket",
  data: videoBlob,
});

Test plan

  • Unit tests pass (179/179)
  • Build succeeds
  • E2E tests for lucy-2.1-vton prompt and reference_image variants

Note

Low Risk
Low risk: this primarily extends the SDK’s model registry/types with a new video model and alias, plus adds example and test coverage; no core request/queue logic is refactored.

Overview
Adds lucy-2.1-vton as a first-class queue/batch video model in the SDK (model enums, input schema mapping, and model definitions with /v1/generate/* + /v1/jobs/* paths), and introduces lucy-vton-latest as a video-model alias for server-side resolution.

Updates type-level input documentation selection so lucy-2.1-vton uses the VideoEdit2Inputs shape, adds an example script for async virtual try-on processing, and extends unit + E2E tests to cover the new model/alias.

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@decartai/sdk@117

commit: d7174eb

@AdirAmsalem AdirAmsalem merged commit ce95c8f into main Apr 14, 2026
5 checks passed
@AdirAmsalem AdirAmsalem deleted the lucy-vton-batch-api branch April 14, 2026 05:35
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