OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add yacey/agnes-ai-generation-skill --skill 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.
npx skills add yacey/agnes-ai-generation-skill --skill agnes-ai-generation
Use this skill to call Agnes text, image, and video generation APIs through https://apihub.agnes-ai.com.
references/api.md when endpoint details, parameters, or response fields are needed.scripts/agnes_api.py for real API calls instead of rewriting curl by hand.AGNES_API_KEY, AGNES_API_TOKEN, or APIHUB_AGNES_API_KEY. Never print the key.smoke-test; it avoids video creation by default. Add --include-image-edit for 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.Text generation:
Streaming text:
Streaming output is normalized and includes aggregated content, events, done, and a short raw_prefix.
Image generation:
Image-to-image:
Text-to-video with polling:
Image-to-video:
Keyframe / multi-image video:
Retrieve a video task:
Light live smoke test:
Image edit smoke test:
Single video smoke test:
agnes-2.0-flash for text chat/completions.function_call with overall status=completed, and submitting function_call_output with previous_response_id may fail. Use this skill's chat completions path for text generation and treat tool-calling as best-effort request-shape compatibility only.agnes-image-2.1-flash for 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.agnes-video-v2.0 for 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.video_id when the create response includes it. The script falls back to legacy task_id lookup only when video_id is absent.num_frames must be 8n + 1 and <= 441; 81 or 121 are good short values.num_frames=121 and frame_rate=24 for more stable generation. Video smoke tests default to num_frames=81 and frame_rate=24.smoke-test --video-case <case> to avoid creating many tasks at once. Supported cases are text-to-video, image-to-video, multi-image, and keyframes.tool_calls; use smoke-test --strict-tools when strict tool-call validation is required.division by zero error, so keep video retries visible and report provider errors clearly.extra_body.response_format is url.video_url, url, or remixed_from_video_id when status is completed.GET /agnesapi?video_id=...&model_name=agnes-video-v2.0; legacy GET /v1/videos/{task_id} remains a fallback.python scripts/agnes_api.py image --prompt "A luminous floating city above a misty canyon at sunrise, cinematic realism" --size 1024x768python scripts/agnes_api.py image --prompt "Turn the scene into a rainy cyberpunk night while preserving composition" --image https://example.com/input.png --size 1024x768python scripts/agnes_api.py video --prompt "A cinematic shot of a cat walking on the beach at sunset" --pollpython scripts/agnes_api.py video --prompt "Animate subtle camera movement and natural lighting" --image https://example.com/image.png --pollpython 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 --pollpython scripts/agnes_api.py video-get video_123456python scripts/agnes_api.py smoke-testpython scripts/agnes_api.py smoke-test --include-image-editpython scripts/agnes_api.py smoke-test --video-case text-to-video