submit-danceref.mjs
1.13 KB
// spike, one-off: generate a short dance clip via H3 Console text2video to use
// as the "reference dance video" test asset for S1/S2. Not product code.
process.loadEnvFile(new URL("../../.env", import.meta.url));
const BASE = process.env.H3_CONSOLE_BASE;
const TOKEN = process.env.H3_CONSOLE_TOKEN;
const prompt = `A young woman dancing energetically alone in a plain seamless studio, vertical 9:16 framing, medium-full shot. She performs a lively hip-hop inspired routine: hips swaying side to side on the beat, arms pumping and tracing arcs overhead, a quarter turn away from camera and back, weight transferring smoothly foot to foot. Warm key light camera-left, soft fill, clean contemporary look. Static camera, no cuts, no text or overlays anywhere in frame.`;
const body = {
prompt,
width: 480,
height: 832,
frames: 96, // 4s
steps: 20,
turbo: false,
seed: 0,
};
const res = await fetch(`${BASE}/v1/videos`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${TOKEN}`,
},
body: JSON.stringify(body),
});
const json = await res.json();
console.log(JSON.stringify(json, null, 2));