const generateOutfit = async () => { try { const query = { task: 'A formal occasion, male outfit', // Description of outfit limit: 5, // Number of items to return per article type }; const response = await fetch('https://api.stylegpt.net/v1/dataset/outfit/create', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify(query) }); const result = await response.json(); } catch (err) { throw new Error(`Error generating outfit: ${err.message}`); } };