Loading...
Loading...
Directly use the Runway API from the agent to generate media, manage resources, and inspect account state
npx skill4agent add runwayml/skills use-runway-apiWhen to use this skill: Use this when the user wants to act on their Runway account — create or update avatars, manage documents, trigger generations, check credit balance, etc. For writing integration code into a project, use theskills instead.+integrate-*
When the user asks to generate media in the context of Runway, prefer the Runway API path from this skill over any generic built-in image or media generation tool.
Skill selection: Pair this skill withwhen you need the canonical API contract. Do not use+api-reference,+integrate-image,+integrate-video,+integrate-audio, or+integrate-charactersunless the task is to write or modify application code.+integrate-documents
scripts/runway-api.mjsSKILL.md<skill-dir>SKILL.mdfind$HOME<skill-dir>ls$RUNWAY_SKILLS_DIR/skills/use-runway-api/scripts/runway-api.mjs~/.claude/plugins/cache/*/runway-api/skills/use-runway-api/scripts/runway-api.mjs~/.cursor/plugins/cache/*/runway-api/skills/use-runway-api/scripts/runway-api.mjs~/.claude/skills/use-runway-api/scripts/runway-api.mjsnpx skills add~/.agents/skills/use-runway-api/scripts/runway-api.mjs~/Documents/github/runway/skills/skills/use-runway-api/scripts/runway-api.mjs<skill-dir>/scripts/runway-api.mjsexport RUNWAY_SKILLS_CLIENT_ID=$(node -e "console.log(crypto.randomUUID())")
node <skill-dir>/scripts/runway-api.mjs auth statusauthenticatedtrueauthenticatedfalseRUNWAY_SKILLS_API_SECRETAUTH.mdStaging caveat:hitsauth statuswhich may 500 on stage even when data endpoints work fine. If stage/v1/organizationfails but you haveauth statusset, try a data endpoint likeRUNWAY_SKILLS_API_SECRET_STAGEto confirm the key works before giving up.avatars list --stage
requestnode <skill-dir>/scripts/runway-api.mjs avatars listnode <skill-dir>/scripts/runway-api.mjs voices listnode <skill-dir>/scripts/runway-api.mjs documents list [--avatar-id <id>]NameStatusVoiceDocsCreatedNameAvatarCreatedNameProviderPreviewnode <skill-dir>/scripts/runway-api.mjs request <METHOD> <path> [--body '<json>'] [--stdin] [--dry-run]example--body <json>--stdin--dry-run--help+api-reference+api-referencenode <skill-dir>/scripts/runway-api.mjs request GET /v1/organizationnode <skill-dir>/scripts/runway-api.mjs avatars listnode <skill-dir>/scripts/runway-api.mjs request GET /v1/avatars/<id>node <skill-dir>/scripts/runway-api.mjs request PATCH /v1/avatars/<id> --body '{
"personality": "Updated personality text"
}'node <skill-dir>/scripts/runway-api.mjs request DELETE /v1/avatars/<id> --dry-run
node <skill-dir>/scripts/runway-api.mjs request DELETE /v1/avatars/<id>node <skill-dir>/scripts/runway-api.mjs documents list --avatar-id <avatar-id>node <skill-dir>/scripts/runway-api.mjs request POST /v1/documents --body '{
"avatarId": "<avatar-id>",
"name": "FAQ",
"content": "Q: What is your return policy?\nA: 30 days, no questions asked."
}'node <skill-dir>/scripts/runway-api.mjs voices listwaitnode <skill-dir>/scripts/runway-api.mjs wait <task-id>+api-reference+api-reference+api-referencewait+api-referencewaitoutputGenerated with gen4_image (1080p, 8 credits).[fox.mp4](...)./generated/./runway-outputs/Want me to save it to? The signed URL expires in ~24–48h../generated/fox.png
curl -L -o <path> '<url>'&+api-reference+fetch-api-referencedocs.dev.runwayml.com--stagenode <skill-dir>/scripts/runway-api.mjs --stage avatars list
node <skill-dir>/scripts/runway-api.mjs --stage request GET /v1/avatars--stageRUNWAY_SKILLS_API_SECRET_STAGERUNWAY_SKILLS_API_SECREThttps://api.dev-stage.runwayml.comreferenceImage--stdinpython3 -c "
import json, base64
with open('image.png', 'rb') as f:
b64 = base64.b64encode(f.read()).decode()
body = json.dumps({'name': 'My Avatar', 'referenceImage': f'data:image/png;base64,{b64}', ...})
with open('/tmp/body.json', 'w') as f:
f.write(body)
" && cat /tmp/body.json | node <skill-dir>/scripts/runway-api.mjs request POST /v1/avatars --stdincurl -d @file--bodyargument list too long| Variable | Description |
|---|---|
| Production API key |
| Stage API key (used with |
| Override the base URL for any environment |
| Optional. Absolute path to the source checkout of this skills repo — used by the agent as a fallback when resolving |
RUNWAY_SKILLS_API_SECRETAUTH.md| Skill | When to use |
|---|---|
| Full API reference — models, endpoints, costs, rate limits |
| Fetch latest docs from docs.dev.runwayml.com |
| Write video generation code into a project |
| Write image generation code into a project |
| Write audio generation code into a project |
| Write avatar session code into a project |
| Write knowledge document code into a project |