Metadata-Version: 2.5
Name: lfx-acedatacloud-wan
Version: 0.1.7
Summary: Wan by Ace Data Cloud: generation and same-task retrieval for Langflow
Project-URL: Homepage, https://platform.acedata.cloud?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
Project-URL: Documentation, https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/wan.md
Project-URL: Repository, https://github.com/AceDataCloud/LangflowAceDataCloud
Author-email: Ace Data Cloud <dev@acedata.cloud>
License-Expression: MIT
License-File: LICENSE
Keywords: acedatacloud,langflow,lfx,wan
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx<1,>=0.24
Requires-Dist: lfx<2,>=1.12.5
Description-Content-Type: text/markdown

# Wan by Ace Data Cloud for Langflow

Install **Wan Generate** and **Wan Retrieve Task** for text-to-video workflows in Langflow 1.12.5 or later.

## Install

In Langflow's Python environment, install `lfx-acedatacloud-wan` from [PyPI](https://pypi.org/project/lfx-acedatacloud-wan/) when the distribution is listed. To build from the [complete source checkout](https://github.com/AceDataCloud/LangflowAceDataCloud), use the following command.

```bash
python -m pip install ./packages/wan
lfx extension list
```

Restart Langflow. Find **Wan by Ace Data Cloud** under Components. The wheel ships two credential-free JSON files in `lfx_acedatacloud_wan/examples/`. Import `wan.json` to generate and query together, or `retrieve_only/wan.json` to look up an existing task.

## Connect your application API key

If your account has no General application yet, choose **Initialize General Application** in the Applications console first.

1. Copy your application API key from the [Applications console](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) or create one under **Manage Keys**. If you restrict **Allowed APIs**, allow `/wan/videos` and `/wan/tasks`.
2. In **Settings → Global Variables → Add New**, create a **Credential** named `ACEDATACLOUD_API_KEY` and save the raw token. In both nodes, bind **Ace Data Cloud API key** to that Credential.

## Generate and retrieve

Enter a prompt and run the connected flow once. The example uses Model `wan3.0-video`, Duration `5` seconds, Resolution `720P`, Aspect ratio `16:9`, and Generate audio off. Generate sends `action=text2video` and `async=true` to return a task ID for the connected reader.

The reader sends `POST /wan/tasks` with the original task ID. A successful response surfaces the video URLs in `media_urls`. If the task is still pending, use the retrieve-only flow with the original task ID.

Check [current model pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) before submission and match the original task or trace to a record in [Usage History](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen).

[API reference](https://docs.acedata.cloud/openapi/wan.json) · [简体中文](https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/wan_zh_CN.md)
