BrainUs LogoBrainUs AI
Developer API

Query with File Uploads

Upload files directly with your query using multipart/form-data. Supports images and PDFs processed in-memory without storage.

POST
/api/v1/dev/query-multipart

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication. Get yours from the Developer Dashboard.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.brainus.lk/api/v1/dev/query-multipart" \  -F query="What is shown in this diagram?"
{
  "answer": "Photosynthesis is the process by which plants convert light energy into chemical energy...",
  "has_citations": true,
  "citations": [
    {
      "document_id": "string",
      "chunk_id": "string",
      "text": "string",
      "score": 0,
      "metadata": {}
    }
  ]
}
Empty
Empty
Empty