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/completionsSend a message and receive a streaming AI response.
GET
/v1/chatsList all chat sessions for the authenticated user.
POST
/v1/chatsCreate a new chat session.
DELETE
/v1/chats/:idDelete a chat session and all its messages.
GET
/v1/chats/:id/messagesRetrieve all messages in a chat session.