Miscellaneous
TypeScript Library
TypeScript client for NanoGPT API
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:
- Fork the repository
- Clone your fork
- Install dependencies (
npm install
oryarn
) - Make your changes
- Submit a pull request