Nano GPT logo
NanoGPT
Nano GPT logo
NanoGPT
Conversations
Create Media
Workspace
Gallery
Models
Pricing

Account

Balance
Usage
Settings
API
Presets
Invitations
Subscription
Teams

Resources

Benchmarks
Suggestions and bugs
Batch API
Blog
Help
Applications

Ӿ

Earn
Partners
Terms

|

Privacy

|

Refunds

Private AI

Back to Blog

Setting up LibreChat with NanoGPT's API

Mar 28, 2025
Setting up LibreChat with NanoGPT's API

Want to use LibreChat with NanoGPT? Here's how to set it up using LibreChat's configuration system.

Quick Setup Guide

  1. Get your API key from nano-gpt.com/api
  2. Locate your LibreChat installation's librechat.example.yml file
  3. Create a copy named librechat.yml
  4. Add the following configuration to your librechat.yml:
# NanoGPT Example
- name: 'NanoGPT'
  apiKey: '${NANO_GPT_API_KEY}'
  baseURL: 'https://nano-gpt.com/api/v1/'
  models:
      default: [
        "chatgpt-4o-latest",
        "gpt-4o-mini",
        ]
      fetch: true
  titleConvo: true
  titleModel: 'gpt-4o-mini'
  modelDisplayLabel: 'NanoGPT'
  iconUrl: https://nano-gpt.com/logo.png
  1. Set your API key in your environment variables:
export NANO_GPT_API_KEY='your-api-key-here'

That's it! Restart LibreChat, and you'll have access to all NanoGPT models through the interface.

Configuration Explained

Let's break down the configuration options:

  • name: Identifies the provider in LibreChat
  • apiKey: Your NanoGPT API key (using environment variable)
  • baseUrl: NanoGPT's API endpoint
  • models.fetch: Automatically fetches available models
  • titleConvo: Enables conversation titling
  • titleModel: Model used for generating conversation titles
  • modelDisplayLabel: How it appears in the interface
  • iconUrl: NanoGPT's logo for visual identification

Available Models

Through this integration, you can access all our models, including:

  • ChatGPT
  • Claude 3.7 Sonnet
  • Gemini 2.0 Pro
  • Perplexity
  • And many more!

For a complete list of available models and their pricing, visit our pricing page.

Why Use NanoGPT with LibreChat?

  • Simple Configuration: Easy setup through YAML configuration
  • Environment Variable Support: Secure API key management
  • Automatic Model Discovery: Access to all models automatically
  • Custom Branding: Proper visual integration with icon support
  • Cost-Effective: Pay only for what you use

Need Help?

If you run into any issues or have questions about using NanoGPT with LibreChat, feel free to:

  • Join our Discord server for community support
  • Contact our support team at support@nano-gpt.com
  • Check LibreChat's documentation for general setup questions
Milan de Reede

Milan de Reede

CEO & Co-Founder

milan@nano-gpt.com

Related articles

Continue with more NanoGPT guides and research on this topic.

Pay-Per-Use AI: How x402 Enables Instant, Anonymous API Access

Learn how NanoGPT implements the x402 HTTP payment protocol for instant, anonymous AI API access with Nano, USDC, and gasless EIP-3009 signatures.

Dec 1, 2025

How to Debug Third-Party API Integration Issues

Learn effective strategies to identify and resolve third-party API integration issues, ensuring your application's reliability and performance.

Nov 9, 2025

How to Build Tool-Using AI Workflows with the Responses API

A practical guide to custom tools, public MCP servers on supported OpenAI models, streaming tool calls, and stored response chains in NanoGPT's Responses API.

Jul 21, 2026

How to Calculate AI Image API Costs

Step-by-step guide to estimating AI image API expenses — per-image vs token pricing, subscriptions, batch savings, hidden fees, and example cost calculations.

Feb 14, 2026
Back to Blog