const fs = require('fs'); const dotenv = require('dotenv'); dotenv.config(); async function test() { const ep = 'https://api.sarvam.ai/speech-to-text/job'; console.log("Testing POST empty JSON"); let res = await fetch(ep, { method: 'POST', headers: { 'api-subscription-key': process.env.SARVAM_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({}) }); console.log(res.status); console.log(await res.text()); } test();