Skip to main content

NanoGPT-client

NanoGPT-client is an unofficial TypeScript implementation of the NanoGPT API. This library aims to provide a type-safe client for both browser and Node.js environments.

Overview

NanoGPT-client is built on the inferred OpenAPI spec, providing a strongly-typed interface to interact with the NanoGPT API. This makes it easier to integrate NanoGPT’s capabilities into your TypeScript applications with full type checking and IntelliSense support.

Installation

Install the package via npm:
Or using yarn:

Basic Usage

Features

  • Type Safety: Full TypeScript type definitions for all API endpoints and parameters
  • Cross-Platform: Works in both browser and Node.js environments
  • Modern Architecture: Built with modern TypeScript practices
  • Comprehensive Coverage: Supports all NanoGPT API endpoints

API Methods

Chat Completions

Text Completions

Image Generation

Video Generation

Check Balance

Advanced Configuration

Development

The library is open-source and welcomes contributions. To contribute:
  1. Fork the repository
  2. Clone your fork
  3. Install dependencies (npm install or yarn)
  4. Make your changes
  5. Submit a pull request

Resources