aimlapi-media-gen
⚠Review·Scanned 2/17/2026
This skill generates images and videos via AIMLAPI using local scripts. It requires the AIMLAPI_API_KEY, instructs running python3 {baseDir}/scripts/gen_image.py/gen_video.py, calls https://api.aimlapi.com/v1, and writes output to ./out/images and ./out/videos.
from clawhub.ai·v34418b2·10.1 KB·0 installs
Scanned from 1.0.0 at 34418b2 · Transparency log ↗
$ vett add clawhub.ai/d1m7asis/aimlapi-media-genReview findings below
AIMLAPI Media Generation
Overview
Generate images and videos via the AIMLAPI OpenAI-compatible API using reusable scripts that handle auth, payloads, and media downloads.
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" --model aimlapi/<provider>/<video-model>
Tasks
Generate images
Use scripts/gen_image.py to call /images/generations and save results locally.
python3 {baseDir}/scripts/gen_image.py \
--prompt "cozy cabin in a snowy forest" \
--model aimlapi/openai/gpt-image-1 \
--size 1024x1024 \
--count 2 \
--out-dir ./out/images
Notes:
- Change
--base-urlif your AIMLAPI endpoint differs. - Use
--extra-jsonto pass provider-specific parameters without editing the script.
Generate videos
Use scripts/gen_video.py to call the video generation endpoint and save the returned media.
python3 {baseDir}/scripts/gen_video.py \
--prompt "time-lapse of clouds over a mountain range" \
--model aimlapi/<provider>/<video-model> \
--endpoint videos/generations \
--out-dir ./out/videos \
--extra-json '{"duration": 6, "size": "1024x576"}'
Notes:
- The video endpoint and payload fields vary by provider. Confirm the correct endpoint and fields in your AIMLAPI model docs and pass them via
--endpointand--extra-json.
References
references/aimlapi-media.md: endpoint and payload notes, plus troubleshooting tips.