Puter.js API Layer

This server acts as an API layer between puterjs AI services and your frontend.

Getting Started

  1. First, visit the Auth Page to get your token
  2. Use the token to make API calls to puterjs AI services

Available Endpoints

Example Usage

// Chat with AI
POST /api/chat
{
    "message": "Hello, how are you?",
    "model": "gpt-4.1-nano"
}

// Generate image
POST /api/generate-image
{
    "prompt": "A beautiful sunset over mountains"
}