CluserAI developer access
Get your CluserAI API key
Sign in with your CluserAI account to create and manage API keys for the CluserAI API (model: cluserai-3.8oX Lite).
Loading…
or
Please verify your email address. We sent a link to — open it, then press the button below.
Your API keys
Quick start
curl -X POST https://cluserai.netlify.app/api \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"message": "Hello, CluserAI!"}'
Send photos & files
Add images and files (base64) next to your message. Supported: PNG, JPEG, WebP, HEIC, PDF and text files (txt, md, csv, json, html, xml, code). Up to 8 attachments, about 4 MB in total per request. For any other text file, send {"name":"...","text":"..."}.
{
"message": "What is in this photo, and summarize the PDF.",
"images": [ { "mimeType": "image/jpeg", "data": "BASE64..." } ],
"files": [ { "name": "report.pdf", "mimeType": "application/pdf", "data": "BASE64..." } ]
}
JavaScript example (browser):
const b64 = (file) => new Promise((ok) => {
const r = new FileReader();
r.onload = () => ok(r.result.split(",")[1]);
r.readAsDataURL(file);
});
const res = await fetch("https://cluserai.netlify.app/api", {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY" },
body: JSON.stringify({
message: "Describe this image",
images: [{ mimeType: file.type, data: await b64(file) }]
})
});
console.log((await res.json()).response);
Response
{ "model": "cluserai-3.8ox-lite", "response": "Hi there! How can I help?" }
