Loading...
Loading...
Guide users through obtaining and configuring a Runway API key
npx skill4agent add runwayml/skills rw-setup-api-keyPREREQUISITE: Runfirst to ensure the project has server-side capability.+rw-check-compatibility
npm install @runwayml/sdkpip install runwaymlRUNWAYML_API_SECRET.env.envRUNWAYML_API_SECRET=your_api_key_here.env.envdotenvnpm install dotenvimport 'dotenv/config';python-dotenvpip install python-dotenvfrom dotenv import load_dotenv
load_dotenv()export RUNWAYML_API_SECRET=your_api_key_here// Node.js
const client = new RunwayML({ apiKey: 'your_api_key_here' });# Python
client = RunwayML(api_key='your_api_key_here').env.gitignore.env
.env.local
.env.*.local.gitignoreimport RunwayML from '@runwayml/sdk';
const client = new RunwayML();
// If no error is thrown, the API key is configured correctly
console.log('Runway SDK initialized successfully');from runwayml import RunwayML
client = RunwayML()
# If no error is thrown, the API key is configured correctly
print('Runway SDK initialized successfully')// Node.js - check organization info
const response = await fetch('https://api.dev.runwayml.com/v1/organization', {
headers: {
'Authorization': `Bearer ${process.env.RUNWAYML_API_SECRET}`,
'X-Runway-Version': '2024-11-06'
}
});
const org = await response.json();
console.log('Credits:', org.creditBalance);.env.gitignore+rw-integrate-video+rw-integrate-image+rw-integrate-audio+rw-integrate-uploads