@ -6,7 +6,7 @@ Written by [@xtekky](https://github.com/hlohaus) & maintained by [@hlohaus](http
< div id = "top" > < / div >
> By using this repository or any code related to it, you agree to the [legal notice ]( LEGAL_NOTICE.md). The author is **not responsible for the usage of this repository nor endorses it** , nor is the author responsible for any copies, forks, re-uploads made by other users, or anything else related to GPT4Free. This is the author's only account and repository. To prevent impersonation or irresponsible actions, please comply with the GNU GPL license this Repository uses.
> By using this repository or any code related to it, you agree to the [legal notice ](https://github.com/xtekky/gpt4free/blob/main/ LEGAL_NOTICE.md). The author is **not responsible for the usage of this repository nor endorses it** , nor is the author responsible for any copies, forks, re-uploads made by other users, or anything else related to GPT4Free. This is the author's only account and repository. To prevent impersonation or irresponsible actions, please comply with the GNU GPL license this Repository uses.
> [!Warning]
*"gpt4free"* serves as a **PoC** (proof of concept), demonstrating the development of an API package with multi-provider requests, with features like timeouts, load balance and flow control.
@ -91,7 +91,7 @@ As per the survey, here is a list of improvements to come
```sh
docker pull hlohaus789/g4f
docker run -p 8080:8080 -p 1337:1337 -p 7900:7900 --shm-size="2g" -v ${PWD}/hardir:/app/hardir hlohaus789/g4f:latest
docker run -p 8080:8080 -p 1337:1337 -p 7900:7900 --shm-size="2g" -v ${PWD}/har_and_cookies:/app/har_and_cookies hlohaus789/g4f:latest
```
3. **Access the Client:**
@ -114,12 +114,12 @@ To ensure the seamless operation of our application, please follow the instructi
By following these steps, you should be able to successfully install and run the application on your Windows system. If you encounter any issues during the installation process, please refer to our Issue Tracker or try to get contact over Discord for assistance.
Run the **Webview UI** on other Platfroms:
- [/docs/guides/webview ]( /docs/webview.md)
- [/docs/guides/webview ](https://github.com/xtekky/gpt4free/blob/main /docs/webview.md)
##### Use your smartphone:
Run the Web UI on Your Smartphone:
- [/docs/guides/phone ]( /docs/guides/phone.md)
- [/docs/guides/phone ](https://github.com/xtekky/gpt4free/blob/main /docs/guides/phone.md)
#### Use python
@ -135,18 +135,18 @@ pip install -U g4f[all]
```
How do I install only parts or do disable parts?
Use partial requirements: [/docs/requirements ]( /docs/requirements.md)
Use partial requirements: [/docs/requirements ](https://github.com/xtekky/gpt4free/blob/main /docs/requirements.md)
##### Install from source:
How do I load the project using git and installing the project requirements?
Read this tutorial and follow it step by step: [/docs/git ]( /docs/git.md)
Read this tutorial and follow it step by step: [/docs/git ](https://github.com/xtekky/gpt4free/blob/main /docs/git.md)
##### Install using Docker:
How do I build and run composer image from source?
Use docker-compose: [/docs/docker ]( /docs/docker.md)
Use docker-compose: [/docs/docker ](https://github.com/xtekky/gpt4free/blob/main /docs/docker.md)
## 💡 Usage
@ -184,13 +184,13 @@ image_url = response.data[0].url
```
[![Image with cat ](/docs/cat.jpeg )](/docs/client.md)
[![Image with cat ](/docs/cat.jpeg )](https://github.com/xtekky/gpt4free/blob/main /docs/client.md)
**Full Documentation for Python API**
- New AsyncClient API from G4F: [/docs/async_client ]( /docs/async_client.md)
- Client API like the OpenAI Python library: [/docs/client ]( /docs/client.md)
- Legacy API with python modules: [/docs/legacy ]( /docs/legacy.md)
- New AsyncClient API from G4F: [/docs/async_client ](https://github.com/xtekky/gpt4free/blob/main /docs/async_client.md)
- Client API like the OpenAI Python library: [/docs/client ](https://github.com/xtekky/gpt4free/blob/main /docs/client.md)
- Legacy API with python modules: [/docs/legacy ](https://github.com/xtekky/gpt4free/blob/main /docs/legacy.md)
#### Web UI
@ -209,7 +209,7 @@ python -m g4f.cli gui -port 8080 -debug
You can use the Interference API to serve other OpenAI integrations with G4F.
See docs: [/docs/interference ]( /docs/interference.md)
See docs: [/docs/interference ](https://github.com/xtekky/gpt4free/blob/main /docs/interference.md)
Access with: http://localhost:1337/v1
@ -217,10 +217,11 @@ Access with: http://localhost:1337/v1
#### Cookies
You need cookies for BingCreateImages and the Gemini Provider.
From Bing you need the "_U" cookie and from Gemini you need the "__Secure-1PSID" cookie.
Sometimes you doesn't need the "__Secure-1PSID" cookie, but some other auth cookies.
You can pass the cookies in the create function or you use the `set_cookies` setter before you run G4F:
Cookies are essential for using Meta AI and Microsoft Designer to create images.
Additionally, cookies are required for the Google Gemini and WhiteRabbitNeo Provider.
From Bing, ensure you have the "_U" cookie, and from Google, all cookies starting with "__Secure-1PSID" are needed.
You can pass these cookies directly to the create function or set them using the `set_cookies` method before running G4F:
```python
from g4f.cookies import set_cookies
@ -228,10 +229,25 @@ from g4f.cookies import set_cookies
set_cookies(".bing.com", {
"_U": "cookie value"
})
set_cookies(".google.com", {
"__Secure-1PSID": "cookie value"
})
...
```
Alternatively, you can place your .har and cookie files in the `/har_and_cookies` directory. To export a cookie file, use the EditThisCookie extension available on the Chrome Web Store: [EditThisCookie Extension ](https://chromewebstore.google.com/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg ).
You can also create .har files to capture cookies. If you need further assistance, refer to the next section.
```bash
python -m g4f.cli api --debug
```
```
Read .har file: ./har_and_cookies/you.com.har
Cookies added: 10 from .you.com
Read cookie file: ./har_and_cookies/google.json
Cookies added: 16 from .google.com
Starting server... [g4f v-0.0.0] (debug)
```
#### .HAR File for OpenaiChat Provider
@ -249,7 +265,7 @@ To utilize the OpenaiChat provider, a .har file is required from https://chat.op
##### Storing the .HAR File
- Place the exported .har file in the `./har dir ` directory if you are using Docker. Alternatively, you can store it in any preferred location within your current working directory.
- Place the exported .har file in the `./har _and_cookies ` directory if you are using Docker. Alternatively, you can store it in any preferred location within your current working directory.
Note: Ensure that your .har file is stored securely, as it may contain sensitive information.
@ -273,42 +289,50 @@ set G4F_PROXY=http://host:port
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
| ------ | ------- | ------- | ----- | ------ | ------ | ---- |
| [bing.com ](https://bing.com/chat ) | `g4f.Provider.Bing` | ❌ | ✔️ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chatgpt.ai ](https://chatgpt.ai ) | `g4f.Provider.ChatgptAi` | ❌ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [liaobots.site ](https://liaobots.site ) | `g4f.Provider.Liaobots` | ✔️ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chat.openai.com ](https://chat.openai.com ) | `g4f.Provider.OpenaiChat` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [bing.com ](https://bing.com/chat ) | `g4f.Provider.Bing` | ❌ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chatgpt.ai ](https://chatgpt.ai ) | `g4f.Provider.ChatgptAi` | ❌ | ✔️ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [liaobots.site ](https://liaobots.site ) | `g4f.Provider.Liaobots` | ✔️ | ✔️ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chat.openai.com ](https://chat.openai.com ) | `g4f.Provider.OpenaiChat` | ✔️ | ✔️ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌+ ✔️ |
| [raycast.com ](https://raycast.com ) | `g4f.Provider.Raycast` | ✔️ | ✔️ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [beta.theb.ai ](https://beta.theb.ai ) | `g4f.Provider.Theb` | ✔️ | ✔️ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [you.com ](https://you.com ) | `g4f.Provider.You` | ✔️ | ✔️ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [you.com ](https://you.com ) | `g4f.Provider.You` | ✔️ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
## Best OpenSource Models
While we wait for gpt-5, here is a list of new models that are at least better than gpt-3.5-turbo. **Some are better than gpt-4** . Expect this list to grow.
| Website | Provider | parameters | better than |
| ------ | ------- | ------ | ------ |
| [mixtral-8x22b ](https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1 ) | `g4f.Provider.DeepInfra` | 176B / 44b active | gpt-3.5-turbo |
| [claude-3-opus ](https://anthropic.com/ ) | `g4f.Provider.You` | ?B | gpt-4-0125-preview |
| [command-r+ ](https://txt.cohere.com/command-r-plus-microsoft-azure/ ) | `g4f.Provider.HuggingChat` | 104B | gpt-4-0314 |
| [llama-3-70b ](https://meta.ai/ ) | `g4f.Provider.Llama` or `DeepInfra` | 70B | gpt-4-0314 |
| [claude-3-sonnet ](https://anthropic.com/ ) | `g4f.Provider.You` | ?B | gpt-4-0314 |
| [reka-core ](https://chat.reka.ai/ ) | `g4f.Provider.Reka` | 21B | gpt-4-vision |
| [dbrx-instruct ](https://www.databricks.com/blog/introducing-dbrx-new-state-art-open-llm ) | `g4f.Provider.DeepInfra` | 132B / 36B active| gpt-3.5-turbo |
| [command-r+ ](https://txt.cohere.com/command-r-plus-microsoft-azure/ ) | `g4f.Provider.HuggingChat` | 104B | gpt-4-0613 |
| [mixtral-8x22b ](https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1 ) | `g4f.Provider.DeepInfra` | 176B / 44b active | gpt-3.5-turbo |
### GPT-3.5
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
| ------ | ------- | ------- | ----- | ------ | ------ | ---- |
| [chat3.aiyunos.top ](https://chat3.aiyunos.top/ ) | `g4f.Provider.AItianhuSpace` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chatforai.store ](https://chatforai.store ) | `g4f.Provider.ChatForAi` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chatgpt4online.org ](https://chatgpt4online.org ) | `g4f.Provider.Chatgpt4Online` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chatgpt-free.cc ](https://www.chatgpt-free.cc ) | `g4f.Provider.ChatgptNext` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chatgptx.de ](https://chatgptx.de ) | `g4f.Provider.ChatgptX` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [flowgpt.com ](https://flowgpt.com/chat ) | `g4f.Provider.FlowGpt` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [freegptsnav.aifree.site ](https://freegptsnav.aifree.site ) | `g4f.Provider.FreeGpt` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [gpttalk.ru ](https://gpttalk.ru ) | `g4f.Provider.GptTalkRu` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [koala.sh ](https://koala.sh ) | `g4f.Provider.Koala` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chat10.aichatos.xyz ](https://chat10.aichatos.xyz ) | `g4f.Provider.Aichatos` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chatforai.store ](https://chatforai.store ) | `g4f.Provider.ChatForAi` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chatgpt4online.org ](https://chatgpt4online.org ) | `g4f.Provider.Chatgpt4Online` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chatgpt-free.cc ](https://www.chatgpt-free.cc ) | `g4f.Provider.ChatgptNext` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chatgptx.de ](https://chatgptx.de ) | `g4f.Provider.ChatgptX` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [f1.cnote.top ](https://f1.cnote.top ) | `g4f.Provider.Cnote` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [duckduckgo.com ](https://duckduckgo.com/duckchat ) | `g4f.Provider.DuckDuckGo` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [ecosia.org ](https://www.ecosia.org ) | `g4f.Provider.Ecosia` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [feedough.com ](https://www.feedough.com ) | `g4f.Provider.Feedough` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [flowgpt.com ](https://flowgpt.com/chat ) | `g4f.Provider.FlowGpt` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [freegptsnav.aifree.site ](https://freegptsnav.aifree.site ) | `g4f.Provider.FreeGpt` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [gpttalk.ru ](https://gpttalk.ru ) | `g4f.Provider.GptTalkRu` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [koala.sh ](https://koala.sh ) | `g4f.Provider.Koala` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [app.myshell.ai ](https://app.myshell.ai/chat ) | `g4f.Provider.MyShell` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [perplexity.ai ](https://www.perplexity.ai ) | `g4f.Provider.PerplexityAi` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [poe.com ](https://poe.com ) | `g4f.Provider.Poe` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [talkai.info ](https://talkai.info ) | `g4f.Provider.TalkAi` | ✔️ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [chat.vercel.ai ](https://chat.vercel.ai ) | `g4f.Provider.Vercel` | ✔️ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [chat.vercel.ai ](https://chat.vercel.ai ) | `g4f.Provider.Vercel` | ✔️ | ❌ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [aitianhu.com ](https://www.aitianhu.com ) | `g4f.Provider.AItianhu` | ✔️ | ❌ | ✔️ | ![Inactive ](https://img.shields.io/badge/Inactive-red ) | ❌ |
| [chatgpt.bestim.org ](https://chatgpt.bestim.org ) | `g4f.Provider.Bestim` | ✔️ | ❌ | ✔️ | ![Inactive ](https://img.shields.io/badge/Inactive-red ) | ❌ |
| [chatbase.co ](https://www.chatbase.co ) | `g4f.Provider.ChatBase` | ✔️ | ❌ | ✔️ | ![Inactive ](https://img.shields.io/badge/Inactive-red ) | ❌ |
@ -326,50 +350,86 @@ While we wait for gpt-5, here is a list of new models that are at least better t
### Other
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
| ------ | ------- | ------- | ----- | ------ | ------ | ---- |
| [openchat.team ](https://openchat.team ) | `g4f.Provider.Aura` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [bard.google.com ](https://bard.google.com ) | `g4f.Provider.Bard` | ❌ | ❌ | ❌ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [deepinfra.com ](https://deepinfra.com ) | `g4f.Provider.DeepInfra` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [free.chatgpt.org.uk ](https://free.chatgpt.org.uk ) | `g4f.Provider.FreeChatgpt` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [gemini.google.com ](https://gemini.google.com ) | `g4f.Provider.Gemini` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [ai.google.dev ](https://ai.google.dev ) | `g4f.Provider.GeminiPro` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [gemini-chatbot-sigma.vercel.app ](https://gemini-chatbot-sigma.vercel.app ) | `g4f.Provider.GeminiProChat` | ❌ | ❌ | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [huggingface.co ](https://huggingface.co/chat ) | `g4f.Provider.HuggingChat` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [huggingface.co ](https://huggingface.co/chat ) | `g4f.Provider.HuggingFace` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [llama2.ai ](https://www.llama2.ai ) | `g4f.Provider.Llama2` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [labs.perplexity.ai ](https://labs.perplexity.ai ) | `g4f.Provider.PerplexityLabs` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [pi.ai ](https://pi.ai/talk ) | `g4f.Provider.Pi` | ❌ | ❌ | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [theb.ai ](https://theb.ai ) | `g4f.Provider.ThebApi` | ❌ | ❌ | ❌ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [open-assistant.io ](https://open-assistant.io/chat ) | `g4f.Provider.OpenAssistant` | ❌ | ❌ | ✔️ | ![Inactive ](https://img.shields.io/badge/Inactive-red ) | ✔️ |
| Website | Provider | Stream | Status | Auth |
| ------ | ------- | ------ | ------ | ---- |
| [openchat.team ](https://openchat.team ) | `g4f.Provider.Aura` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [blackbox.ai ](https://www.blackbox.ai ) | `g4f.Provider.Blackbox` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [cohereforai-c4ai-command-r-plus.hf.space ](https://cohereforai-c4ai-command-r-plus.hf.space ) | `g4f.Provider.Cohere` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [deepinfra.com ](https://deepinfra.com ) | `g4f.Provider.DeepInfra` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [free.chatgpt.org.uk ](https://free.chatgpt.org.uk ) | `g4f.Provider.FreeChatgpt` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [gemini.google.com ](https://gemini.google.com ) | `g4f.Provider.Gemini` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [ai.google.dev ](https://ai.google.dev ) | `g4f.Provider.GeminiPro` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [gemini-chatbot-sigma.vercel.app ](https://gemini-chatbot-sigma.vercel.app ) | `g4f.Provider.GeminiProChat` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [developers.sber.ru ](https://developers.sber.ru/gigachat ) | `g4f.Provider.GigaChat` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [console.groq.com ](https://console.groq.com/playground ) | `g4f.Provider.Groq` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [huggingface.co ](https://huggingface.co/chat ) | `g4f.Provider.HuggingChat` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [huggingface.co ](https://huggingface.co/chat ) | `g4f.Provider.HuggingFace` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [llama2.ai ](https://www.llama2.ai ) | `g4f.Provider.Llama` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [meta.ai ](https://www.meta.ai ) | `g4f.Provider.MetaAI` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [openrouter.ai ](https://openrouter.ai ) | `g4f.Provider.OpenRouter` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ✔️ |
| [labs.perplexity.ai ](https://labs.perplexity.ai ) | `g4f.Provider.PerplexityLabs` | ✔️ | ![Active ](https://img.shields.io/badge/Active-brightgreen ) | ❌ |
| [pi.ai ](https://pi.ai/talk ) | `g4f.Provider.Pi` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [replicate.com ](https://replicate.com ) | `g4f.Provider.Replicate` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ❌ |
| [theb.ai ](https://theb.ai ) | `g4f.Provider.ThebApi` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [whiterabbitneo.com ](https://www.whiterabbitneo.com ) | `g4f.Provider.WhiteRabbitNeo` | ✔️ | ![Unknown ](https://img.shields.io/badge/Unknown-grey ) | ✔️ |
| [bard.google.com ](https://bard.google.com ) | `g4f.Provider.Bard` | ❌ | ![Inactive ](https://img.shields.io/badge/Inactive-red ) | ✔️ |
### Models
| Model | Base Provider | Provider | Website |
|-----------------------------| ------------- | -------- | ------- |
| gpt-3.5-turbo | OpenAI | 5+ Providers | [openai.com ](https://openai.com/ ) |
| gpt-4 | OpenAI | 2+ Providers | [openai.com ](https://openai.com/ ) |
| gpt-4-turbo | OpenAI | g4f.Provider.Bing | [openai.com ](https://openai.com/ ) |
| Llama-2-7b-chat-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Llama-2-13b-chat-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Llama-2-70b-chat-hf | Meta | 3+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Meta-Llama-3-8b | Meta | 3+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Meta-Llama-3-70b | Meta | 3+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| CodeLlama-34b-Instruct-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| CodeLlama-70b-Instruct-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Mixtral-8x7B-Instruct-v0.1 | Huggingface | 4+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| Mistral-7B-Instruct-v0.1 | Huggingface | 4+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| dolphin-2.6-mixtral-8x7b | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| lzlv_70b_fp16_hf | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| airoboros-70b | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| airoboros-l2-70b-gpt4-1.4.1 | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| openchat_3.5 | Huggingface | 2+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| gemini | Google | g4f.Provider.Gemini | [gemini.google.com ](https://gemini.google.com/ ) |
| gemini-pro | Google | 2+ Providers | [gemini.google.com ](https://gemini.google.com/ ) |
| claude-v2 | Anthropic | 1+ Providers | [anthropic.com ](https://www.anthropic.com/ ) |
| claude-3-opus | Anthropic | g4f.Provider.You | [anthropic.com ](https://www.anthropic.com/ ) |
| claude-3-sonnet | Anthropic | g4f.Provider.You | [anthropic.com ](https://www.anthropic.com/ ) |
| pi | Inflection | g4f.Provider.Pi | [inflection.ai ](https://inflection.ai/ ) |
| Model | Base Provider | Provider | Website |
| ----- | ------------- | -------- | ------- |
| gpt-3.5-turbo | OpenAI | 8+ Providers | [openai.com ](https://openai.com/ ) |
| gpt-4 | OpenAI | 2+ Providers | [openai.com ](https://openai.com/ ) |
| gpt-4-turbo | OpenAI | g4f.Provider.Bing | [openai.com ](https://openai.com/ ) |
| Llama-2-7b-chat-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Llama-2-13b-chat-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Llama-2-70b-chat-hf | Meta | 3+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Meta-Llama-3-8b-instruct | Meta | 1+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Meta-Llama-3-70b-instruct | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| CodeLlama-34b-Instruct-hf | Meta | g4f.Provider.HuggingChat | [llama.meta.com ](https://llama.meta.com/ ) |
| CodeLlama-70b-Instruct-hf | Meta | 2+ Providers | [llama.meta.com ](https://llama.meta.com/ ) |
| Mixtral-8x7B-Instruct-v0.1 | Huggingface | 4+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| Mistral-7B-Instruct-v0.1 | Huggingface | 3+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| Mistral-7B-Instruct-v0.2 | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| zephyr-orpo-141b-A35b-v0.1 | Huggingface | 2+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| dolphin-2.6-mixtral-8x7b | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| gemini | Google | g4f.Provider.Gemini | [gemini.google.com ](https://gemini.google.com/ ) |
| gemini-pro | Google | 2+ Providers | [gemini.google.com ](https://gemini.google.com/ ) |
| claude-v2 | Anthropic | 1+ Providers | [anthropic.com ](https://www.anthropic.com/ ) |
| claude-3-opus | Anthropic | g4f.Provider.You | [anthropic.com ](https://www.anthropic.com/ ) |
| claude-3-sonnet | Anthropic | g4f.Provider.You | [anthropic.com ](https://www.anthropic.com/ ) |
| lzlv_70b_fp16_hf | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| airoboros-70b | Huggingface | g4f.Provider.DeepInfra | [huggingface.co ](https://huggingface.co/ ) |
| openchat_3.5 | Huggingface | 2+ Providers | [huggingface.co ](https://huggingface.co/ ) |
| pi | Inflection | g4f.Provider.Pi | [inflection.ai ](https://inflection.ai/ ) |
### Image and Vision Models
| Label | Provider | Image Model | Vision Model | Website |
| ----- | -------- | ----------- | ------------ | ------- |
| Microsoft Copilot in Bing | `g4f.Provider.Bing` | dall-e-3 | gpt-4-vision | [bing.com ](https://bing.com/chat ) |
| DeepInfra | `g4f.Provider.DeepInfra` | stability-ai/sdxl | llava-1.5-7b-hf | [deepinfra.com ](https://deepinfra.com ) |
| Gemini | `g4f.Provider.Gemini` | ✔️ | ✔️ | [gemini.google.com ](https://gemini.google.com ) |
| Gemini API | `g4f.Provider.GeminiPro` | ❌ | gemini-1.5-pro | [ai.google.dev ](https://ai.google.dev ) |
| Meta AI | `g4f.Provider.MetaAI` | ✔️ | ❌ | [meta.ai ](https://www.meta.ai ) |
| OpenAI ChatGPT | `g4f.Provider.OpenaiChat` | dall-e-3 | gpt-4-vision | [chat.openai.com ](https://chat.openai.com ) |
| Reka | `g4f.Provider.Reka` | ❌ | ✔️ | [chat.reka.ai ](https://chat.reka.ai/ ) |
| Replicate | `g4f.Provider.Replicate` | stability-ai/sdxl| llava-v1.6-34b | [replicate.com ](https://replicate.com ) |
| You.com | `g4f.Provider.You` | dall-e-3| ✔️ | [you.com ](https://you.com ) |
```python
import requests
from g4f.client import Client
client = Client()
image = requests.get("https://change_me.jpg", stream=True).raw
response = client.chat.completions.create(
"",
messages=[{"role": "user", "content": "what is in this picture?"}],
image=image
)
print(response.choices[0].message.content)
```
## 🔗 Powered by gpt4free
@ -781,11 +841,11 @@ We welcome contributions from the community. Whether you're adding new providers
###### Guide: How do i create a new Provider?
- Read: [/docs/guides/create_provider ]( /docs/guides/create_provider.md)
- Read: [/docs/guides/create_provider ](https://github.com/xtekky/gpt4free/blob/main /docs/guides/create_provider.md)
###### Guide: How can AI help me with writing code?
- Read: [/docs/guides/help_me ]( /docs/guides/help_me.md)
- Read: [/docs/guides/help_me ](https://github.com/xtekky/gpt4free/blob/main /docs/guides/help_me.md)
## 🙌 Contributors
@ -799,8 +859,8 @@ A list of all contributors is available [here](https://github.com/xtekky/gpt4fre
< a href = "https://github.com/Commenter123321" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/36051603?v=4&s=45" width = "45" title = "Commenter123321" > < / a >
< a href = "https://github.com/DanielShemesh" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/20585236?v=4&s=45" width = "45" title = "DanielShemesh" > < / a >
< a href = "https://github.com/Luneye" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/73485421?v=4&s=45" width = "45" title = "Luneye" > < / a >
< a href = "https://github.com/enganese" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/69082498?v=4&s=45" width = "45" title = "enganese" > < / a >
< a href = "https://github.com/ezerinz" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/100193740?v=4&s=45" width = "45" title = "ezerinz" > < / a >
< a href = "https://github.com/enganese" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/69082498?v=4&s=45" width = "45" title = "enganese" > < / a >
< a href = "https://github.com/Lin-jun-xiang" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/63782903?v=4&s=45" width = "45" title = "Lin-jun-xiang" > < / a >
< a href = "https://github.com/nullstreak" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/139914347?v=4&s=45" width = "45" title = "nullstreak" > < / a >
< a href = "https://github.com/valerii-chirkov" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/81074936?v=4&s=45" width = "45" title = "valerii-chirkov" > < / a >
@ -808,16 +868,16 @@ A list of all contributors is available [here](https://github.com/xtekky/gpt4fre
< a href = "https://github.com/repollo" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/2671466?v=4&s=45" width = "45" title = "repollo" > < / a >
< a href = "https://github.com/hpsj" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/54535414?v=4&s=45" width = "45" title = "hpsj" > < / a >
< a href = "https://github.com/taiyi747" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/63543716?v=4&s=45" width = "45" title = "taiyi747" > < / a >
< a href = "https://github.com/ostix360" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/55257054?v=4&s=45" width = "45" title = "ostix360" > < / a >
< a href = "https://github.com/WdR-Tech" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/143020293?v=4&s=45" width = "45" title = "WdR-Tech" > < / a >
< a href = "https://github.com/HexyeDEV" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/65314629?v=4&s=45" width = "45" title = "HexyeDEV" > < / a >
< a href = "https://github.com/9fo" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/71867245?v=4&s=45" width = "45" title = "9fo" > < / a >
< a href = "https://github.com/eltociear" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/22633385?v=4&s=45" width = "45" title = "eltociear" > < / a >
< a href = "https://github.com/ramonvc" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/13617054?v=4&s=45" width = "45" title = "ramonvc" > < / a >
< a href = "https://github.com/naa7" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/44613678?v=4&s=45" width = "45" title = "naa7" > < / a >
< a href = "https://github.com/zeng-rr" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/47846202?v=4&s=45" width = "45" title = "zeng-rr" > < / a >
< a href = "https://github.com/editor-syntax" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/109844019?v=4&s=45" width = "45" title = "editor-syntax" > < / a >
< a href = "https://github.com/HexyeDEV" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/65314629?v=4&s=45" width = "45" title = "HexyeDEV" > < / a >
< a href = "https://github.com/WdR-Tech" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/143020293?v=4&s=45" width = "45" title = "WdR-Tech" > < / a >
< a href = "https://github.com/ostix360" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/55257054?v=4&s=45" width = "45" title = "ostix360" > < / a >
< a href = "https://github.com/devAdityaa" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/77636021?v=4&s=45" width = "45" title = "devAdityaa" > < / a >
< a href = "https://github.com/editor-syntax" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/109844019?v=4&s=45" width = "45" title = "editor-syntax" > < / a >
< a href = "https://github.com/zeng-rr" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/47846202?v=4&s=45" width = "45" title = "zeng-rr" > < / a >
< a href = "https://github.com/naa7" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/44613678?v=4&s=45" width = "45" title = "naa7" > < / a >
< a href = "https://github.com/ramonvc" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/13617054?v=4&s=45" width = "45" title = "ramonvc" > < / a >
< a href = "https://github.com/eltociear" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/22633385?v=4&s=45" width = "45" title = "eltociear" > < / a >
< a href = "https://github.com/kggn" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/95663228?v=4&s=45" width = "45" title = "kggn" > < / a >
< a href = "https://github.com/xiangsx" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/29322721?v=4&s=45" width = "45" title = "xiangsx" > < / a >
< a href = "https://github.com/ggindinson" target = "_blank" > < img src = "https://avatars.githubusercontent.com/u/97807772?v=4&s=45" width = "45" title = "ggindinson" > < / a >
@ -826,11 +886,14 @@ A list of all contributors is available [here](https://github.com/xtekky/gpt4fre
< img src = "https://avatars.githubusercontent.com/u/12299238?s=45&v=4" width = "45" title = "xqdoo00o" >
< img src = "https://avatars.githubusercontent.com/u/97126670?s=45&v=4" width = "45" title = "nathanrchn" >
< img src = "https://avatars.githubusercontent.com/u/81407603?v=4&s=45" width = "45" title = "dsdanielpark" >
< img src = "https://avatars.githubusercontent.com/u/55200481?v=4&s=45" width = "45" title = "missuo" >
- The [`Vercel.py` ](g4f/Provider/Vercel.py ) file contains code from [vercel-llm-api ](https://github.com/ading2210/vercel-llm-api ) by [@ading2210 ](https://github.com/ading2210 )
- The [`har_file.py` ](g4f/Provider/openai/har_file.py ) has input from [xqdoo00o/ChatGPT-to-API ](https://github.com/xqdoo00o/ChatGPT-to-API )
- The [`PerplexityLabs.py` ](g4f/Provider/openai/har_file.py ) has input from [nathanrchn/perplexityai ](https://github.com/nathanrchn/perplexityai )
- The [`Gemini.py` ](g4f/Provider/needs_auth/Gemini.py ) has input from [dsdanielpark/Gemini-API ](https://github.com/dsdanielpark/Gemini-API )
- The [`Vercel.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/Vercel.py ) file contains code from [vercel-llm-api ](https://github.com/ading2210/vercel-llm-api ) by [@ading2210 ](https://github.com/ading2210 )
- The [`har_file.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/openai/har_file.py ) has input from [xqdoo00o/ChatGPT-to-API ](https://github.com/xqdoo00o/ChatGPT-to-API )
- The [`PerplexityLabs.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/openai/har_file.py ) has input from [nathanrchn/perplexityai ](https://github.com/nathanrchn/perplexityai )
- The [`Gemini.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/needs_auth/Gemini.py ) has input from [dsdanielpark/Gemini-API ](https://github.com/dsdanielpark/Gemini-API )
- The [`MetaAI.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/MetaAI.py ) file contains code from [meta-ai-api ](https://github.com/Strvm/meta-ai-api ) by [@Strvm ](https://github.com/Strvm )
- The [`proofofwork.py` ](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/openai/proofofwork.py ) has input from [missuo/FreeGPT35 ](https://github.com/missuo/FreeGPT35 )
*Having input implies that the AI's code generation utilized it as one of many sources.*
@ -870,7 +933,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
< / td >
< td >
< img src = "https://img.shields.io/badge/License-GNU_GPL_v3.0-red.svg" / > < br >
This project is licensed under < a href = " ./LICENSE"> GNU_GPL_v3.0< / a > .
This project is licensed under < a href = " https://github .com/xtekky/gpt4free/blob/main /LICENSE"> GNU_GPL_v3.0< / a > .
< / td >
< / tr >
< / table >