Metadata-Version: 2.5
Name: lfx-acedatacloud-seedream
Version: 0.1.7
Summary: Seedream 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/seedream.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,seedream
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx<1,>=0.24
Requires-Dist: lfx<2,>=1.12.5
Description-Content-Type: text/markdown

# Seedream by Ace Data Cloud for Langflow

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

## Install

In Langflow's Python environment, install `lfx-acedatacloud-seedream` from [PyPI](https://pypi.org/project/lfx-acedatacloud-seedream/) 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/seedream
lfx extension list
```

Restart Langflow. Find **Seedream by Ace Data Cloud** under Components. The wheel ships two credential-free JSON files in `lfx_acedatacloud_seedream/examples/`. Import `seedream.json` to generate and query together, or `retrieve_only/seedream.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 `/seedream/images` and `/seedream/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 sets Model to `doubao-seedream-5-0-lite-260128` and Size to `2K`, with Watermark off. Generate sends `async=true` to return a task ID for the connected reader.

The reader sends `POST /seedream/tasks` with the original task ID. A successful response surfaces the image 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/seedream.json) · [简体中文](https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/seedream_zh_CN.md)
