media_gen_client.py for Seedream image generation.
Install
What can agents do with it?
Marketing creatives
“Generate an ultra-detailed product shot of a red panda, studio lighting, sharp focus.”
Large-format images
“Generate a 2048×2048 magazine cover: neo-noir detective portrait, film grain.”
Text-to-video
“Sweeping establishing shot of a neon cyberpunk skyline at dusk, 5 seconds.”
Image-to-video
“Starting from this reference image, gentle camera push-in with parallax.”
Requirements
- Python 3 and a POSIX shell
AISA_API_KEYin the environment
Current models and routes
The live gateway serves these media models. CheckGET /v1/models for the current list; each model lists its preferred route.
- Seedream rejects images below 3,686,400 pixels (for example
1024×1024). Use a size such as1920x1920or2048x2048.wan2.7-imageaccepts smaller sizes. - Video generation is asynchronous: create a task, then poll it by
task_iduntil it finishes. - Each image in
nis billed separately. Request a free quote first by addingX-AISA-Cost-Mode: quoteto the same request; see Billing & Credits.
Quick start
With the skill’s client (Seedream):Get started
- Sign up at aisa.one and create an API key in the console.
- Set it in your shell:
export AISA_API_KEY="your-key". - Install the skill with one of the commands under Install, then start a new agent session.
Related
Image generations
OpenAI-compatible image generation endpoint and current image models.
Model catalog
Current model IDs, modalities, and routes.