const response = await fetch('https://api.microai.jp/v1/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{Your microAI API Key}}'
},
body: JSON.stringify({
spec: "low",
messages: [{ role: "user", content: "Hello" }]
})
});