ViewMax Agent Skills
Install ViewMax Agent Skills for credit-aware video, image, music, and audio generation through the REST API.
Agent Skills teach an agent to call the ViewMax REST API with curl. Prefer MCP when your client supports it; Skills suit agents that can run shell commands but have no MCP connection.
Install
Download the video Skill and its concise API reference into a Claude skills directory:
curl -fsSL https://viewmax.studio/skills/viewmax-video/SKILL.md \
--create-dirs -o ~/.claude/skills/viewmax-video/SKILL.md
curl -fsSL https://viewmax.studio/skills/viewmax-video/reference.md \
--create-dirs -o ~/.claude/skills/viewmax-video/reference.mdTo share a Skill with a project, download it to .claude/skills/<name>/ in the repository instead. Other agents that load Agent Skills can use the same two files from their own skills directory.
The Skill is named viewmax-video. Its trigger description covers requests to generate video, use Seedance, Veo, Kling, or MiniMax, or turn an image into video.
Workflow
The installed Skill instructs an agent to:
- Check that
VIEWMAX_API_KEYis available. - Fetch
GET https://viewmax.studio/api/v1/modelsand choose a current model, its allowed values, andmax_prompt_length. - Tell the user the model and credit cost, and wait for confirmation before creating a task.
- Create the task with
POST /api/v1/videosand anIdempotency-Keyheader, reusing the key on a retry. - Poll
GET /api/v1/tasks/{taskId}every 5–10 seconds untilsuccess,failed, orcanceled. - Return the first
data.taskUrlsentry after success, or reporterrorMessagefromdata.taskInfoafter a failure.
reference.md contains the endpoint table, accepted request fields, task lifecycle, and the error types with the action for each.
Image, music, and audio skills
The same pattern is available for the other modalities. Each Skill triggers on its media type and wraps the matching v1 endpoint.
# Image (text-to-image and image-to-image)
curl -fsSL https://viewmax.studio/skills/viewmax-image/SKILL.md \
--create-dirs -o ~/.claude/skills/viewmax-image/SKILL.md
curl -fsSL https://viewmax.studio/skills/viewmax-image/reference.md \
--create-dirs -o ~/.claude/skills/viewmax-image/reference.md
# Music
curl -fsSL https://viewmax.studio/skills/viewmax-music/SKILL.md \
--create-dirs -o ~/.claude/skills/viewmax-music/SKILL.md
curl -fsSL https://viewmax.studio/skills/viewmax-music/reference.md \
--create-dirs -o ~/.claude/skills/viewmax-music/reference.md
# Audio (text-to-speech and sound effects)
curl -fsSL https://viewmax.studio/skills/viewmax-audio/SKILL.md \
--create-dirs -o ~/.claude/skills/viewmax-audio/SKILL.md
curl -fsSL https://viewmax.studio/skills/viewmax-audio/reference.md \
--create-dirs -o ~/.claude/skills/viewmax-audio/reference.mdviewmax-image— text-to-image and image-to-image viaPOST /api/v1/images.viewmax-music— original music tracks viaPOST /api/v1/music(60 credits up to 60 seconds, then 1 credit per second).viewmax-audio— text-to-speech viaPOST /api/v1/speech(ceil(characters / 20)credits, at least 1) and sound effects viaPOST /api/v1/sound-effects(5 credits).
Credentials and safety
The Skills send Authorization: Bearer $VIEWMAX_API_KEY. Keep the key in the agent's secure environment, not in a prompt or client-side source. A Skill must not create a billable task before the user confirms the credit cost.