CODE
A one-way trip
01
Install
ENV VAR
export RUNWAYML_API_SECRET="tu-api-key-aqui"
NODE.JS
# Node.js
npm install --save @runwayml/sdk
PYTHON
# Python
pip install runwayml
USAGE
import RunwayML from '@runwayml/sdk';
const client = new RunwayML();
const task = await client.textToImage.create({
model: "gemini_image3_pro", // o "seedream5_lite"
promptText: "retrato de un corredor en la línea de meta al atardecer",
ratio: "1344:768",
}).waitForTaskOutput();
TEXT-TO-SPEECH
const audioTask = await client.textToSpeech.create({
model: "seed_audio_1.0",
promptText: "texto o descripción del sonido/voz deseado",
}).waitForTaskOutput();
SUNO API
git clone https://github.com/gcui-art/suno-api.git
cd suno-api
npm install
cp .env.example .env
API CALL
curl -X POST http://localhost:3000/api/generate \
-H "Content-Type: application/json" \
-d '{
"prompt": "una canción alegre sobre correr una maratón",
"make_instrumental": false,
"wait_audio": true
}'