Metadata-Version: 2.5
Name: lfx-acedatacloud-grok-video
Version: 0.1.9
Summary: Grok Video 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/grok-video.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,grok-video,langflow,lfx
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx<1,>=0.24
Requires-Dist: lfx<2,>=1.12.5
Description-Content-Type: text/markdown

# Grok Video by Ace Data Cloud for Langflow

<img src="https://cdn.acedata.cloud/p1ge98.png" alt="Grok Video product artwork" width="64" height="64">

Generate a video from a text prompt using the Grok Videos API. The independent package provides **Grok Video Generate** and **Grok Video Retrieve Task**.

## Install

```bash
python -m pip install "lfx-acedatacloud-grok-video==0.1.9"
lfx extension list
```

The [GitHub release](https://github.com/AceDataCloud/LangflowAceDataCloud/releases/tag/v0.1.9) also provides the standalone wheel. Install it in the same Python environment as Langflow 1.12.5 or later, then restart the host. The independent package can coexist with the aggregate. Use the credential-free example flows bundled in `lfx_acedatacloud_grok/examples/`.

## Connect your application API key

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

## Submit and check a task

The example selects `grok-imagine-video-1.5-fast:reverse`, sets a duration and resolution, and returns final video links in `media_urls`. The asynchronous example sends one request to `POST /grok/videos` and passes the original task ID to **Grok Video Retrieve Task**.

The reader calls `POST /grok/tasks`. Use the retrieve-only example with the same ID while a task is pending. If submission times out, check your application history for the original task before submitting again. Generation may use Credits. [Application history](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) · [Grok Video API contract](https://docs.acedata.cloud/openapi/grok.json)

[简体中文](https://github.com/AceDataCloud/LangflowAceDataCloud/blob/main/guides/grok-video_zh_CN.md)
