Loading...
Loading...
Complete reference for the AisaysAI API. Base URL: https://api.aisays.ai
/v1/chat/completionsAuthCreate a chat completion (OpenAI format)
/anthropic/v1/messagesAuthCreate a message (Anthropic format)
// Create a chat completion
const response = await fetch("https://api.aisays.ai/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY",
},
body: JSON.stringify({
model: "deepseek/deepseek-v4-flash",
messages: [{ role: "user", content: "Hello!" }],
}),
})
const data = await response.json()
console.log(data.choices[0].message.content)API endpoints marked with Auth require authentication via a Bearer token in the Authorization header.
You can create API keys from the API Keys page in your workspace.
Authorization: Bearer sk-or-xxxxxxxxxxxxxxxxxxxxxxxx