AI Agent Hub
Back to skills
Agnes AI Image and Video Generation icon

Agnes AI Image and Video Generation

Design & Media Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Install @user_cdd89df6/agnes-gen into your AI assistant by following https://skillhub.cn/install/skillhub.md.

About this skill

Problem It Solves

In multimodal agent workflows, image and video generation often require assembling POST /v1/images/generations, POST /v1/videos, polling task status, and handling Agnes AI authentication, parameter limits, and response field quirks. This skill wraps API key configuration, base URL, and model calls into a usable workflow, reducing boilerplate for HTTP requests and status handling.

Core Capabilities and Workflow

  • Text-to-image: uses agnes-image-2.1-flash with /v1/images/generations for prompt-based image generation.
  • Image editing: uses agnes-image-2.0-flash, passing one or more reference images via extra_body.image, requires tags: ["img2img"], and supports a fixed seed for reproducible results.
  • Video generation: uses agnes-video-v2.0 as an asynchronous task; poll /v1/videos/{task_id} after creation. num_frames must be 8n+1 and no greater than 441, commonly 81, 121, 241, or 441.
  • Status handling: lifecycle moves from queued to in_progress to completed / failed; when completed, read the video download URL from remixed_from_video_id.

Boundaries

This skill relies on the free Agnes AI API, so it may hit RPM limits, video queuing, or 500/502/503 errors during peak periods. Store the API key in environment variables or configuration, and avoid committing it to Git.

Use Cases

  • Generate product concept art from prompts by calling Agnes text-to-image endpoints.
  • Edit or compose reference images using img2img mode, then fix the seed for reproducible results.
  • Build short demo videos with text-to-video or image-to-video tasks, then poll until completion.
  • Wrap image and video generation as agent tool calls to reduce manual HTTP and polling code.

Best For

  • Multimodal agent engineers who need to expose image and video generation as tools.
  • Frontend or full-stack developers who need a free image and video API for demos.
  • Visual designers who need img2img editing and fixed seeds for reproducible iteration.
  • Content creators who need to turn text or reference images into short video assets.