/install aiml-image-video
AIMLAPI Media Generation
Overview
Generate images and videos via AIMLAPI with scripts that include retries, API key file fallback, verbose logs, and required User-Agent headers on every request.
Quick start
export AIMLAPI_API_KEY="sk-aimlapi-..."
python3 {baseDir}/scripts/gen_image.py --prompt "ultra-detailed studio photo of a lobster astronaut"
python3 {baseDir}/scripts/gen_video.py --prompt "slow drone shot of a foggy forest"
Tasks
Generate images
Use scripts/gen_image.py with /v1/images/generations.
python3 {baseDir}/scripts/gen_image.py \
--prompt "cozy cabin in a snowy forest" \
--model aimlapi/openai/gpt-image-1 \
--size 1024x1024 \
--count 2 \
--retry-max 4 \
--user-agent "openclaw-custom/1.0" \
--out-dir ./out/images
Generate videos (async AIMLAPI flow)
Use scripts/gen_video.py with the real async flow:
POST /v2/video/generations(create task)GET /v2/video/generations?generation_id=...(poll status)- download
video.urlwhen status is completed
python3 {baseDir}/scripts/gen_video.py \
--model google/veo-3.1-t2v-fast \
--prompt "time-lapse of clouds over a mountain range" \
--poll-interval 10 \
--max-wait 1000 \
--user-agent "openclaw-custom/1.0" \
--out-dir ./out/videos
References
references/aimlapi-media.md: endpoint notes, async polling statuses, and troubleshooting.README.md: changelog-style summary of new instructions.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install aiml-image-video - 安装完成后,直接呼叫该 Skill 的名称或使用
/aiml-image-video触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AIML Generate images and videos 是什么?
Generate images or videos via AIMLAPI from prompts. Use when Codex needs reliable AI/ML API media generation with retries, explicit User-Agent headers, and a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1513 次。
如何安装 AIML Generate images and videos?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install aiml-image-video」即可一键安装,无需额外配置。
AIML Generate images and videos 是免费的吗?
是的,AIML Generate images and videos 完全免费(开源免费),可自由下载、安装和使用。
AIML Generate images and videos 支持哪些平台?
AIML Generate images and videos 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AIML Generate images and videos?
由 AI/ML API(@aimlapihello)开发并维护,当前版本 v1.0.2。