Configuration
The code behind this
This page calls the same API you'd use in your own app:
const res = await fetch('https://api.duonexo.com/api/v1/generate', {
method: 'POST',
headers: {
'Authorization': 'Bearer dnx_live_••••••••••••••b9rk',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'black-forest-labs/flux-schnell',
input: { prompt: 'Your prompt here' }
})
})
const data = await res.json()
console.log(data.output)