const axios = require('axios'); async function txt2video(prompt) { try { const { data: k } = await axios.post('https://soli.aritek.app/txt2videov3', { deviceID: Math.random().toString(16).substr(2, 8) + Math.random().toString(16).substr(2, 8), prompt: prompt, used: [], versionCode: 51 }, { headers: { authorization: 'eyJzdWIiwsdeOiIyMzQyZmczNHJ0MzR0weMzQiLCJuYW1lIjorwiSm9objMdf0NTM0NT', 'content-type': 'application/json; charset=utf-8', 'accept-encoding': 'gzip', 'user-agent': 'okhttp/4.11.0' } }); const { data } = await axios.post('https://soli.aritek.app/video', { keys: [k.key] }, { headers: { authorization: 'eyJzdWIiwsdeOiIyMzQyZmczNHJ0MzR0weMzQiLCJuYW1lIjorwiSm9objMdf0NTM0NT', 'content-type': 'application/json; charset=utf-8', 'accept-encoding': 'gzip', 'user-agent': 'okhttp/4.11.0' } }); return data.datas[0].url; } catch (error) { throw new Error(error.message); } } // Usage: const resp = await txt2video('A pixel-art queen, standing in her grand pixelated throne room, with a sunbeam casting light onto her flowing cape.'); console.log(resp);