Free OpenAI GPT-4 API in TypeScript
Top 6.8% on sourcepulse
This project provides a free, reverse-engineered API gateway for various large language models, including GPT-4, GPT-3.5, Claude, and Llama. It targets developers and users seeking to access these powerful models without direct API keys or subscriptions, offering a unified interface to multiple backend providers.
How It Works
The project acts as a proxy, routing requests to various websites that offer free access to LLMs. It scrapes these sites, extracts the model responses, and presents them through a standardized OpenAI-compatible API endpoint. This approach leverages existing, often unofficial, access points to provide a free alternative to paid services.
Quick Start & Requirements
yarn install
yarn start
docker run -p 3000:3000 --env-file .env xiangsx/gpt4free-ts:latest
.env
file is required for proxy settings, API keys (for specific providers like Forefront), and email types for registration.Highlighted Details
Maintenance & Community
xtekky/gpt4free
.Licensing & Compatibility
Limitations & Caveats
The project relies on reverse-engineered access to third-party websites, which are prone to breaking without notice. The availability and performance of models are dependent on the stability of these external providers. The project explicitly states it is for educational purposes only and disclaims responsibility for any misuse.
11 months ago
1 day