Skip to main content
Use GAIA’s REST API directly without any SDK.

Authentication

Include your API key in headers:

Chat Completion

Response:

Streaming

Run GAIA as an API server and integrate it into your applications.

Setup

Start GAIA in headless mode:
GAIA runs on http://localhost:3000 with no UI, just API endpoints.

Authentication

Get your API key:
Use it in headers:

Basic Usage

1. Create a Project (Agent)

2. Add Knowledge

3. Chat with OpenAI SDK

Why Headless?

  • Backend integration - Use GAIA in your server
  • Custom UIs - Build your own interface
  • Microservices - Deploy as part of your architecture
  • API-first - Everything configurable via API
See Integration guides for SDK examples. Returns Server-Sent Events (SSE).

Other Operations

  • Upload Knowledge: POST /api/knowledge/upload
  • Create Tools: POST /api/tools/create
  • Add MCP Servers: POST /api/mcp/add-server
  • Manage Projects: POST /api/projects/create
See full API Reference for all endpoints.