import PiClient from 'withpi';
const client = new PiClient({
apiKey: process.env['WITHPI_API_KEY'], // This is the default and can be omitted
});
const response = await client.data.generateInputResponsePairs.streamData('job_id');
console.log(response);