# Send LiblibAI Image & Video Gen to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "liblib-ai-gen",
    "name": "LiblibAI Image & Video Gen",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/xtaq/liblib-ai-gen",
    "canonicalUrl": "https://clawhub.ai/xtaq/liblib-ai-gen",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/liblib-ai-gen",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=liblib-ai-gen",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/liblib_client.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "liblib-ai-gen",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T23:30:01.379Z",
      "expiresAt": "2026-05-11T23:30:01.379Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=liblib-ai-gen",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=liblib-ai-gen",
        "contentDisposition": "attachment; filename=\"liblib-ai-gen-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "liblib-ai-gen"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/liblib-ai-gen"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/liblib-ai-gen",
    "downloadUrl": "https://openagent3.xyz/downloads/liblib-ai-gen",
    "agentUrl": "https://openagent3.xyz/skills/liblib-ai-gen/agent",
    "manifestUrl": "https://openagent3.xyz/skills/liblib-ai-gen/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/liblib-ai-gen/agent.md"
  }
}
```
## Documentation

### LiblibAI Image & Video Generation

Generate images (Seedream4.5) and videos (Kling) via LiblibAI's API.

### Prerequisites

Environment variables must be set:

LIB_ACCESS_KEY — API access key
LIB_SECRET_KEY — API secret key

### Usage

Run the CLI script at scripts/liblib_client.py:

# Generate image
python3 scripts/liblib_client.py image "a cute cat wearing a hat" --width 2048 --height 2048

# Generate video from text
python3 scripts/liblib_client.py text2video "a rocket launching into space" --model kling-v2-6 --duration 5

# Generate video from image
python3 scripts/liblib_client.py img2video "the cat turns its head" --start-frame https://example.com/cat.jpg

# Check task status
python3 scripts/liblib_client.py status <generateUuid>

### Image Generation (Seedream4.5)

Endpoint: POST /api/generate/seedreamV4
Model: doubao-seedream-4-5-251128
Default size: 2048×2048. For 4.5, min total pixels = 3,686,400 (e.g. 2560×1440)
Supports reference images (1-14), prompt expansion, and sequential image generation
Options: --width, --height, --count (1-15), --ref-images, --prompt-magic

### Text-to-Video

Endpoint: POST /api/generate/video/kling/text2video
Models: kling-v2-6 (latest, supports sound), kling-v2-1-master, kling-v2-5-turbo, etc.
Options: --model, --aspect (16:9/9:16/1:1), --duration (5/10s), --mode (std/pro), --sound (on/off)

### Image-to-Video

Endpoint: POST /api/generate/video/kling/img2video
Provide --start-frame image URL; optionally --end-frame (v1-6 only)
For kling-v2-6: uses images array instead of startFrame/endFrame

### Async Pattern

All generation tasks are async:

Submit task → get generateUuid
Poll POST /api/generate/status with { "generateUuid": "..." }
Result contains images[].imageUrl or videos[].videoUrl

The script auto-polls by default. Use --no-poll to submit only.

### Notes

QPS limit: 1 request/second for task submission
Max concurrent tasks: 5
Image URLs in results expire after 7 days
For kling-v2-5-turbo and kling-v2-6, mode must be "pro" (default)
Sound generation only supported on kling-v2-6+
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: xtaq
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T23:30:01.379Z
- Expires at: 2026-05-11T23:30:01.379Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/liblib-ai-gen)
- [Send to Agent page](https://openagent3.xyz/skills/liblib-ai-gen/agent)
- [JSON manifest](https://openagent3.xyz/skills/liblib-ai-gen/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/liblib-ai-gen/agent.md)
- [Download page](https://openagent3.xyz/downloads/liblib-ai-gen)