NexusAI API

Build AI-powered applications with the NexusAI API. Simple, fast, and OpenAI-compatible.

Streaming Responses

Real-time token streaming via Server-Sent Events.

API Key Auth

Simple Bearer token authentication on every request.

Rate Limiting

Fair use limits with clear headers so you can plan ahead.

OpenAI Compatible

Familiar request/response format for easy migration.

Quick Start

curl
curl https://api.nexusai.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      { "role": "user", "content": "Hello, NexusAI!" }
    ],
    "stream": true
  }'

Endpoints

POST
/v1/chat/completions

Send a message and receive a streaming AI response.

GET
/v1/chats

List all chat sessions for the authenticated user.

POST
/v1/chats

Create a new chat session.

DELETE
/v1/chats/:id

Delete a chat session and all its messages.

GET
/v1/chats/:id/messages

Retrieve all messages in a chat session.

Ready to build?

Get your API key from the dashboard settings.

Get your API key →