
agnes-ai-generation
Call Agnes AI / Sapiens AI generation APIs for text, image, and video. Use when the user asks to use Agnes models, Agnes Image, Agnes Video, Agnes 2.0 Flash, apihub.agnes-ai.com, or to generate text, images, edit images, create videos, animate images, create keyframe videos, or test Agnes API calls.
- Installs
- 2.4K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/yacey/agnes-ai-generation-skill --skill agnes-ai-generation- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads agnes-ai-generation automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Agnes AI Generation
Use this skill to call Agnes text, image, and video generation APIs through https://apihub.agnes-ai.com.
Quick Start
- Read
references/api.mdwhen endpoint details, parameters, or response fields are needed. - Use
scripts/agnes_api.pyfor real API calls instead of rewriting curl by hand. - Require an API key in
AGNES_API_KEY,AGNES_API_TOKEN, orAPIHUB_AGNES_API_KEY. Never print the key. - For light live verification, run
smoke-test; it avoids video creation by default. Add--include-image-editfor image-to-image, and add--video-case <case>explicitly for video modes. Treat the skill as fully tested only when basic text, text streaming, text tool calling, text-to-image, image-to-image, text-to-video, image-to-video, multi-image video, keyframe video, and video retrieval return successful responses.
Commands
Text generation:
python scripts/agnes_api.py text --prompt "Write a concise product tagline for an AI assistant."
Streaming text:
python scripts/agnes_api.py text --prompt "Write a short product intro." --stream
Streaming output is normalized and includes aggregated content, events, done, and a short raw_prefix.
Image generation:
python scripts/agnes_api.py image --prompt "A luminous floating city above a misty canyon at sunrise, cinematic realism" --size 1024x768
Image-to-image:
python scripts/agnes_api.py image --prompt "Turn the scene into a rainy cyberpunk night while preserving composition" --image https://example.com/input.png --size 1024x768
Text-to-video with polling:
python scripts/agnes_api.py video --prompt "A cinematic shot of a cat walking on the beach at sunset" --poll
Image-to-video:
python scripts/agnes_api.py video --prompt "Animate subtle camera movement and natural lighting" --image https://example.com/image.png --poll
Keyframe / multi-image video:
python scripts/agnes_api.py video --prompt "Create a smooth cinematic transition between the two keyframes" --image https://example.com/a.png --image https://example.com/b.png --mode keyframes --poll
Retrieve a video task:
python scripts/agnes_api.py video-get video_123456
Light live smoke test:
python scripts/agnes_api.py smoke-test
Image edit smoke test:
python scripts/agnes_api.py smoke-test --include-image-edit
Single video smoke test:
python scripts/agnes_api.py smoke-test --video-case text-to-video
Workflow
- Prefer
agnes-2.0-flashfor text chat/completions. - Do not use Agnes Responses API multi-turn function calling for autonomous tool workflows. Live testing showed the provider can return
function_callwith overallstatus=completed, and submittingfunction_call_outputwithprevious_response_idmay fail. Use this skill's chat completions path for text generation and treat tool-calling as best-effort request-shape compatibility only. - Prefer
agnes-image-2.1-flashfor text-to-image, image-to-image, and high-information-density image generation. High-density generation is prompt-driven; include subject hierarchy, environment, secondary details, lighting, composition, and quality requirements. - Prefer
agnes-video-v2.0for text-to-video, image-to-video, multi-image video, keyframe animation, prompt-based motion and scene control, cinematic output, asynchronous task creation, polling-based result retrieval, and seed-based reproducibility. - For image and video generation, convert any non-English user prompt to a fluent English generation prompt before calling the image/video API. English prompts are more stable for Agnes video generation. Preserve concrete visual details, style, lighting, composition, motion, camera instructions, and constraints during translation.
- For videos, remember the API is asynchronous: create a task first, then poll or retrieve by
video_idwhen the create response includes it. The script falls back to legacytask_idlookup only whenvideo_idis absent. - The script validates image sizes, video frame counts, frame rates, and dimensions before sending requests.
num_framesmust be8n + 1and<= 441;81or121are good short values. - The video command defaults to
num_frames=121andframe_rate=24for more stable generation. Video smoke tests default tonum_frames=81andframe_rate=24. - Warn the user before costly or long-running live video generation unless they explicitly asked to test or generate video.
- Test video capabilities one at a time with
smoke-test --video-case <case>to avoid creating many tasks at once. Supported cases aretext-to-video,image-to-video,multi-image, andkeyframes.
Current Validation Notes
- Confirmed locally: skill metadata validation and Python syntax.
- Confirmed by live API: basic text, streaming text, tool-calling request shape, text-to-image, image-to-image, high-information-density text-to-image, Chinese prompt translation for image/video, completed text-to-video URL retrieval, and completed image-to-video URL retrieval.
- Caveat: Agnes may accept tool-calling request parameters without consistently returning
tool_calls; usesmoke-test --strict-toolswhen strict tool-call validation is required. - Caveat: Agnes Responses API multi-turn function calling is not reliable for agent tool loops; do not rely on it for Codex/Claude-style automatic tool continuation.
- Supported by the script and smoke-test selector, but not re-run end-to-end in the latest pass: multi-image video and keyframe animation.
- Not yet confirmed end-to-end: completed URL retrieval for every multi-image video and keyframe animation task. A previous text-to-video task returned a provider-side
division by zeroerror, so keep video retries visible and report provider errors clearly.
Output Handling
- Return generated image/video URLs directly by default. Do not download, save, open, or inspect generated media unless the user explicitly asks for a local file or visual inspection.
- For image responses, expect URL-style results when
extra_body.response_formatisurl. - For video responses, extract URLs from
video_url,url, orremixed_from_video_idwhenstatusiscompleted. - For video retrieval, prefer
GET /agnesapi?video_id=...&model_name=agnes-video-v2.0; legacyGET /v1/videos/{task_id}remains a fallback. - If a request fails, report HTTP status and provider error body without exposing the API key.
FAQ
What does the agnes-ai-generation skill do?
Call Agnes AI / Sapiens AI generation APIs for text, image, and video. Use when the user asks to use Agnes models, Agnes Image, Agnes Video, Agnes 2.0 Flash, apihub.agnes-ai.com, or to generate text, images, edit images, create videos, animate images, create keyframe videos, or test Agnes API calls.
How do I install agnes-ai-generation?
Run npx skills add https://github.com/yacey/agnes-ai-generation-skill --skill agnes-ai-generation in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/agnes-ai-generation/ (personal) or .claude/skills/agnes-ai-generation/ (project).
Which AI agents can use agnes-ai-generation?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is agnes-ai-generation safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains agnes-ai-generation?
It is published by yacey in yacey/agnes-ai-generation-skill. It has 2,371 recorded installs.
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image