# GPT4Free GPT4Free is an open-source project that provides free access to GPT-4 and other large language models. It supports various models such as GPT-4, Claude, Gemini, and more, allowing users to access these powerful AI models for free. ![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/gpt4free.png) ![](https://cdn.jsdelivr.net/gh/xiaoY233/PicList@main/public/assets/GPT4Free-Model.png) ![](https://img.shields.io/badge/Copyright-arch3rPro-ff9800?style=flat&logo=github&logoColor=white) ## Features - Support for multiple large language models including GPT-4, Claude, Gemini, and more - OpenAI-compatible API interface - Text and image generation capabilities - Built-in web interface for easy use - Support for both local inference and remote API calls ## Usage After installation, you can access GPT4Free through: 1. Web Interface: Visit `http://your-ip:8080/chat/` to use the built-in chat interface 2. API Interface: Use `http://your-ip:1337/v1` as your API base URL ## Environment Variables - `OLLAMA_HOST`: Ollama server address, defaults to host.docker.internal ## Port Information - 8080: Web interface and API - 1337: Alternative API port - 7900: Remote desktop (for provider login) ## More Information - Official Website: [g4f.dev](https://g4f.dev/) - GitHub Repository: [github.com/xtekky/gpt4free](https://github.com/xtekky/gpt4free) - Documentation: [g4f.dev/docs](https://github.com/gpt4free/g4f.dev/blob/main/docs)