/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install aiml-image-video - After installation, invoke the skill by name or use
/aiml-image-video - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 1513 downloads so far.
How do I install AIML Generate images and videos?
Run "/install aiml-image-video" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AIML Generate images and videos free?
Yes, AIML Generate images and videos is completely free (open-source). You can download, install and use it at no cost.
Which platforms does AIML Generate images and videos support?
AIML Generate images and videos is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AIML Generate images and videos?
It is built and maintained by AI/ML API (@aimlapihello); the current version is v1.0.2.