协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
aimlapi-media-gen【开发与工程】Generate images or videos via AIMLAPI (OpenAI-compatible) from prompts. Use when Codex needs to call AI/ML API media endpoints, batch image/video jobs, or produce media files from text prompts using AIMLAPI credentials.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate images and videos via the AIMLAPI OpenAI-compatible API using reusable scripts that handle auth, payloads, and media downloads.
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>
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:
--base-url if your AIMLAPI endpoint differs.--extra-json to pass provider-specific parameters without editing the script.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:
--endpoint and --extra-json.references/aimlapi-media.md: endpoint and payload notes, plus troubleshooting tips.