Xpersona
S

Seedance 2.0 Al Video Generator

CLAWHUB · Unverified

Generates video via Loova Seedance 2.0 API (Seedance 2.0 video). Requires LOOVA_API_KEY from .env or environment (get API key at loova.ai). Use when the user...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174x4k76dzsjpqyvkwsnm240s83g49k:seedance-2-ai-video-generator
  1. Install using `clawhub skill install s174x4k76dzsjpqyvkwsnm240s83g49k:seedance-2-ai-video-generator` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/hjianfeng/seedance-2-ai-video-generator before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hjianfeng-seedance-2-ai-video-generator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

147,484 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: seedance-2-ai-video-generator
displayName: Seedance 2.0 AI Video Generator (Text to Video, Image to Video, Reference to Video)
description: Generates video via Loova Seedance 2.0 API (Seedance 2.0 video). Requires LOOVA_API_KEY from .env or environment (get API key at loova.ai). Use when the user asks for Loova, Seedance 2.0, image-to-video, or Seedance 2.0 video.

metadata: {"openclaw":{"homepage":"https://api.loova.ai/api","requires":{"bins":[],"env":["LOOVA_API_KEY"]},"primaryEnv":"LOOVA_API_KEY"}}
---

# Seedance 2.0 Video Generator

Create AI videos from text or images using the latest multi-modal reference system with the Loova Seedance 2.0 API (Seedance 2.0 Video). Submit a job, poll for completion, and get the video result. **Generation may take up to 3 hours**; poll **once per minute** and return to the user immediately when status becomes **succeeded** or **failed** (or any terminal error state). **Stop polling immediately on failure/error** and return the error details to the user.

## Capabilities

1. **Image to Video** – Turn images into videos using the Loova Seedance 2.0 Video API, powered by Seedance 2.0 or Seedance 2.0 Fast.
1. **Text to Video** – Convert text into videos with the Loova Seedance 2.0 Video API, powered by Seedance 2.0 or Seedance 2.0 Fast.
2. **Multi-Modal Reference System** – Supports multiple input types, including text, images, videos, and audio. These inputs can be used as references for different parts of your video.
3. **Configurable Settings** – Customize duration (4–15 seconds), aspect ratio, and function mode (first frame, last frame, or omni reference).
4. **Attachment-friendly workflow** 
  - When users provide media via URL, pass it directly using --image-urls, --video-urls, or --audio-urls (no download required).
  - When users upload files in chat (images, videos, or audio), save them locally in the OpenClaw workspace (e.g., workspace/assets/) and pass the file paths via --files.
  - If both URLs and local files are provided for the same media type, URLs take precedence (local files of the same type will be ignored).

## Quick Start

```bash
# Generate video from prompt only
python scripts/run_seedance.py --prompt "Camera slowly pushes in, person smiles"

# With local file(s) (sent as FormData File uploads)
python scripts/run_seedance.py --prompt "Person turns head" --files "photo.jpg" --duration 8

# Fast model, custom ratio
python scripts/run_seedance.py --prompt "A cat in the sun" --model seedance_2_0_fast --ratio "16:9"
```

## Setup

### Required API Key

Obtain your API key from your account after logging in at [https://loova.ai/](https://loova.ai/). Do not hardcode the key; use environment variables or `.env`.

Add to your environment or `.env` file in the project root:

```bash
# Required for Loova API
LOOVA_API_KEY=your_api_key_here
```

Create `.env` from the example:

```bash
cp .env.example .env
# Edit .env and set LOOVA_API_KEY
```

The script loads variables from `.env` automa

README.md

# Seedance 2.0 Video Generator

End-to-end AI video generation using the Loova Seedance 2.0 API. Create videos from text prompts or local media (images/video/audio) via the Seedance 2.0 video API. Requests use **multipart/form-data** with File uploads, so OpenClaw users can attach files directly. Automatic job submission and result polling.

**ClawHub / OpenClaw** – Use this Skill when the user asks for Loova video, Seedance 2.0, or image-to-video generation.

**Note:** Video generation can take **up to 3 hours** depending on server load. The script polls until the task completes and will notify the user at start.

## Overview

- **Submit** – `POST https://api.loova.ai/api/v1/video/seedance-2` to create a video generation task
- **Poll** – `GET https://api.loova.ai/v1/tasks?task_id=...` until the task completes
- **Auth** – `Authorization: Bearer <API_KEY>`; get your API key after logging in at [loova.ai](https://loova.ai/)

## Upload to ClawHub

Upload this repository (or the skill folder) to ClawHub for OpenClaw. Expected structure:

```
├── SKILL.md           # Main instructions (triggers and usage)
├── QUICK_START.md     # Short setup and run guide
├── README.md          # This file
├── reference.md       # API reference
├── requirements.txt  # Python deps (requests, python-dotenv)
├── .env.example       # Example env (LOOVA_API_KEY)
└── scripts/
    └── run_seedance.py   # Submit + poll script
```

## Setup

### 1. Get API key

Open [https://loova.ai/api](https://loova.ai/api) in a browser, sign in to your account, and get your API key from the Loova API page.

### 2. Configure credentials

**Option A – .env (recommended)**  
The script loads `.env` automatically (via `python-dotenv`), same as [ai-video-gen](https://clawhub.ai/rhanbourinajd/ai-video-gen).

```bash
cp .env.example .env
# Edit .env and set:
LOOVA_API_KEY=your_api_key_here
```

**Option B – Environment variable**

```bash
export LOOVA_API_KEY="your_api_key_here"
```

Do not hardcode the key in code.

### 3. Install dependencies

```bash
pip install -r requirements.txt
```

Requires: `requests`, `python-dotenv`.

## Usage

### Via OpenClaw / Agent

The agent uses this Skill when the user mentions Loova video, Seedance 2.0, text-to-video, or image-to-video. It can run the script with the appropriate `--prompt` and optional `--files`, `--duration`, `--ratio`, etc.

### Run the script locally

```bash
# Prompt only
python scripts/run_seedance.py --prompt "Camera slowly pushes in"

# With options
python scripts/run_seedance.py --prompt "Person smiles" --model seedance_2_0_fast --duration 8 --ratio "16:9"

# With local image file(s)
python scripts/run_seedance.py --prompt "Person turns head" --files "a.jpg"
```

Output: the script prints the final result JSON (including the video URL when the task succeeds).

## Parameters

| Parameter    | Required | Description                                                                 |
|-------------|----------|------------------------------

_meta.json

{
  "ownerId": "kn77t724d8cppgt59c9669g6hn8082yz",
  "slug": "seedance-2-ai-video-generator",
  "version": "1.0.13",
  "publishedAt": 1774319737474
}

QUICK_START.md

# Quick Start – Seedance 2.0 Video Generator

Generate AI videos from text prompts or images using the Loova Seedance 2.0 API. **Video generation can take up to 3 hours**; the script will poll until the task completes and prints a notice at start.

## 1. Get your API key

1. Open [https://loova.ai/api](https://loova.ai/api) and log in.
2. Get your API key from the Loova API page in your Loova account.
3. Create a `.env` file in the project root (or next to the script):

```bash
# Copy from example
cp .env.example .env
# Edit .env and set:
LOOVA_API_KEY=your_api_key_here
```

Or set the variable in your shell:

```bash
export LOOVA_API_KEY="your_api_key_here"
```

## 2. Install dependencies

```bash
pip install -r requirements.txt
```

## 3. Run your first video

**Text prompt only (no input image):**

```bash
python scripts/run_seedance.py --prompt "Camera slowly pushes in, person smiles"
```

**With optional parameters:**

```bash
python scripts/run_seedance.py --prompt "A cat walking in the sun" --duration 8 --ratio "16:9"
```

**With local image file(s):**

```bash
python scripts/run_seedance.py --prompt "Person turns head" --files "photo.jpg"
```

The script submits the job, polls until the video is ready, and prints the result JSON (including the video URL when succeeded).

## Scripts reference

| Script | Description |
|--------|-------------|
| `scripts/run_seedance.py` | Submit Seedance 2.0 video job and poll for result (prompt, optional images, duration, ratio) |

## Parameters

| Option | Required | Default | Description |
|--------|----------|---------|-------------|
| `--prompt` | Yes | — | Text prompt for the video |
| `--model` | No | `seedance_2_0` | `seedance_2_0` or `seedance_2_0_fast` |
| `--duration` | No | `5` | Duration in seconds (4–15) |
| `--ratio` | No | `16:9` | Aspect ratio |
| `--function-mode` | No | — | `first_last_frames` or `omni_reference` |
| `--files` | No | — | Comma-separated local file paths (sent as FormData File uploads; images/video/audio) |

For full API details, see [reference.md](reference.md). For ClawHub/OpenClaw usage, see [SKILL.md](SKILL.md).

reference.md

# Loova Seedance 2.0 Video API Reference

## Authentication

- Obtain your API key after logging in at [https://loova.ai/](https://loova.ai/).
- All requests must include the header: `Authorization: Bearer <API_KEY>`.

## 1. Submit Task: POST /api/v1/video/seedance-2

This is the **single** Seedance 2.0 generation endpoint for both:

- Text-to-video (no media inputs)
- Image-to-video / video reference / audio reference (optional media inputs)

- **URL**: `https://api.loova.ai/api/v1/video/seedance-2`
- **Method**: POST
- **Headers**:
  - With file upload (`files` provided): `Authorization: Bearer <API_KEY>` and use **multipart/form-data**
  - Without file upload: `Authorization: Bearer <API_KEY>`, `Content-Type: application/json`
- **Body**:
  - multipart/form-data: flat fields at the top level (`model`, `prompt`, etc.), optional `files` parts
    - For list fields like `image_urls`, send **repeated form keys** (e.g. multiple `image_urls` entries)
  - application/json: `{ "model": string, "prompt": string, ... }` (all params at the top level)


| Field                 | Type          | Required | Description                                                                                       |
| --------------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------- |
| `model`               | string        | Yes      | `seedance_2_0` or `seedance_2_0_fast`                                                             |
| `prompt`              | string        | Yes      | Prompt; supports @ reference syntax                                                               |
| `functionMode`        | string        | No       | `first_last_frames` (first/last frame) / `omni_reference` (omni mode)                             |
| (multipart) `files`   | File[]        | No       | Optional media files (images/video/audio) sent as multipart/form-data File parts                  |
| `image_urls`          | string[]      | No       | Optional image URL list                                                                           |
| `video_urls`          | string[]      | No       | Optional video URL list                                                                           |
| `audio_urls`          | string[]      | No       | Optional audio URL list                                                                           |
| `ratio`               | string        | No       | Video aspect ratio, default `16:9`                                                                |
| `aspect_ratio`        | string        | No       | Video aspect ratio (legacy), default `16:9`                                                       |
| `duration`            | number/string | No       | Duration in seconds, 4–15, default `5`                                                            |


**Response**: Contains `task_id` for polling the result.

## 2. Get Result: GET /v1/tasks

- **URL**:

Sponsored

Ads related to Seedance 2.0 Al Video Generator and adjacent AI workflows.