import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const modelUsage = await client.models.usageStatistics.retrieve('model_name', {
chunks: 0,
end_date: '2019-12-27T18:11:19.117Z',
start_date: '2019-12-27T18:11:19.117Z',
});
console.log(modelUsage.data);