XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update provider capabilities and model support (#2600)

* Update provider capabilities and model support - Update provider documentation with latest model support - Remove deprecated models and update model counts - Add new model variants and fix formatting - Update provider class labels for better clarity - Add support for new models including DeepSeek-R1 and sd-turbo - Clean up unused model aliases and improve code organization Key changes: - Update Blackbox vision capabilities - Remove legacy models (midijourney, unity, rtist) - Add flux variants and update provider counts - Set explicit provider labels - Update model aliases and mappings - Add new model support in multiple providers * Upodate g4f/models.py * Update docs/providers-and-models.md g4f/models.py g4f/Provider/Blackbox.py --------- Co-authored-by: kqlio67 <>

e4c4e7b5
kqlio67 <166700875+kqlio67@users.noreply.github.com>
提交于

代码差异

7 个文件 +89 -107
Modified docs/providers-and-models.md +31 -34
@@ -5,7 +5,7 @@
5 5
6 6 This document provides an overview of various AI providers and models, including text generation, image generation, and vision capabilities. It aims to help users navigate the diverse landscape of AI services and choose the most suitable option for their needs.
7 7
8 > **Note**: See our [Authentication Guide] (authentication.md) for authentication instructions for the provider.
8 > **Note**: See our [Authentication Guide](authentication.md) for authentication instructions for the provider.
9 9
10 10
11 11 ## Table of Contents
@@ -40,7 +40,7 @@ This document provides an overview of various AI providers and models, including
40 40 |[aichatfree.info](https://aichatfree.info)|No auth required|`g4f.Provider.AIChatFree`|`gemini-1.5-pro` _**(1+)**_|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
41 41 |[aiuncensored.info/ai_uncensored](https://www.aiuncensored.info/ai_uncensored)|Optional API key|`g4f.Provider.AIUncensored`|`hermes-3`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
42 42 |[autonomous.ai](https://www.autonomous.ai/anon/)|No auth required|`g4f.Provider.AutonomousAI`|`llama-3.3-70b, qwen-2.5-coder-32b, hermes-3, llama-3.2-90b, llama-3.3-70b, llama-3-2-70b`|✔|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
43 |[blackbox.ai](https://www.blackbox.ai)|No auth required|`g4f.Provider.Blackbox`|`blackboxai, gpt-4, gpt-4o, gemini-1.5-flash, gemini-1.5-pro, claude-3.5-sonnet, blackboxai-pro, llama-3.1-8b, llama-3.1-70b, llama-3-1-405b, llama-3.3-70b, mixtral-7b, deepseek-chat, dbrx-instruct, qwq-32b, hermes-2-dpo, deepseek-r1` _**(+31)**_|`flux`|`blackboxai, gpt-4o, gemini-1.5-pro, gemini-1.5-flash, llama-3.1-8b, llama-3.1-70b, llama-3.1-405b`|✔|![](https://img.shields.io/badge/Active-brightgreen)|
43 |[blackbox.ai](https://www.blackbox.ai)|No auth required|`g4f.Provider.Blackbox`|`blackboxai, gpt-4, gpt-4o, gemini-1.5-flash, gemini-1.5-pro, claude-3.5-sonnet, blackboxai-pro, llama-3.1-8b, llama-3.1-70b, llama-3-1-405b, llama-3.3-70b, mixtral-7b, deepseek-chat, dbrx-instruct, qwq-32b, hermes-2-dpo, deepseek-r1` _**(+31)**_|`flux`|`blackboxai, gpt-4o, gemini-1.5-pro, gemini-1.5-flash, llama-3.1-8b, llama-3.1-70b, llama-3.1-405b, deepseek-r1`|✔|![](https://img.shields.io/badge/Active-brightgreen)|
44 44 |[cablyai.com](https://cablyai.com)|No auth required|`g4f.Provider.CablyAI`|`cably-80b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
45 45 |[chatglm.cn](https://chatglm.cn)|No auth required|`g4f.Provider.ChatGLM`|`glm-4`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
46 46 |[chatgpt.com](https://chatgpt.com)|No auth required|`g4f.Provider.ChatGpt`|✔ _**(+7)**_|❌|❌|✔|![Error](https://img.shields.io/badge/HTTPError-f48d37)|
@@ -50,12 +50,13 @@ This document provides an overview of various AI providers and models, including
50 50 |[copilot.microsoft.com](https://copilot.microsoft.com)|Optional API key|`g4f.Provider.Copilot`|`gpt-4, gpt-4o`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
51 51 |[darkai.foundation](https://darkai.foundation)|No auth required|`g4f.Provider.DarkAI`|`gpt-3.5-turbo, gpt-4o, llama-3.1-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
52 52 |[duckduckgo.com/aichat](https://duckduckgo.com/aichat)|No auth required|`g4f.Provider.DDG`|`gpt-4, gpt-4o-mini, claude-3-haiku, llama-3.1-70b, mixtral-8x7b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
53 |[deepinfra.com/chat](https://deepinfra.com/chat)|No auth required|`g4f.Provider.DeepInfraChat`|`llama-3.1-8b, llama-3.1-70b, qwq-32b, wizardlm-2-8x22b, wizardlm-2-7b, qwen-2-72b, qwen-2.5-coder-32b, nemotron-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
53 |[deepinfra.com/chat](https://deepinfra.com/chat)|No auth required|`g4f.Provider.DeepInfraChat`|`llama-3.1-8b, llama-3.1-70b, qwq-32b, wizardlm-2-8x22b, wizardlm-2-7b, qwen-2.5-72b, qwen-2.5-coder-32b, nemotron-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
54 54 |[chat10.free2gpt.xyz](https://chat10.free2gpt.xyz)|No auth required|`g4f.Provider.Free2GPT`|`mistral-7b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
55 55 |[freegptsnav.aifree.site](https://freegptsnav.aifree.site)|No auth required|`g4f.Provider.FreeGpt`|`gemini-1.5-pro`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
56 56 |[app.giz.ai/assistant](https://app.giz.ai/assistant)|No auth required|`g4f.Provider.GizAI`|`gemini-1.5-flash`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
57 57 |[gprochat.com](https://gprochat.com)|No auth required|`g4f.Provider.GPROChat`|`gemini-1.5-pro`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
58 |[editor.imagelabs.net](editor.imagelabs.net)|No auth required|`g4f.Provider.ImageLabs`|❌|✔ _**(1+)**_|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
58 |[editor.imagelabs.net](https://editor.imagelabs.net)|No auth required|`g4f.Provider.ImageLabs`|`gemini-1.5-pro`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
59 |[editor.imagelabs.net](editor.imagelabs.net)|No auth required|`g4f.Provider.ImageLabs`|❌|`sdxl-turbo`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
59 60 |[huggingface.co/spaces](https://huggingface.co/spaces)|Optional API key|`g4f.Provider.HuggingSpace`|`qvq-72b, qwen-2-72b, command-r, command-r-plus, command-r7b`|`flux-dev, flux-schnell, sd-3.5`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
60 61 |[jmuz.me](https://jmuz.me)|Optional API key|`g4f.Provider.Jmuz`|`claude-3-haiku, claude-3-opus, claude-3-haiku, claude-3.5-sonnet, deepseek-r1, deepseek-chat, gemini-exp, gemini-1.5-flash, gemini-1.5-pro, gemini-2.0-flash-thinking, gpt-4, gpt-4o, gpt-4o-mini, llama-3-70b, llama-3-8b, llama-3.1-405b, llama-3.1-70b, llama-3.1-8b, llama-3.2-11b, llama-3.2-90b, llama-3.3-70b, mixtral-8x7b, qwen-2.5-72b, qwen-2.5-coder-32b, qwq-32b, wizardlm-2-8x22b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
61 62 |[liaobots.work](https://liaobots.work)|[Automatic cookies](https://liaobots.work)|`g4f.Provider.Liaobots`|`grok-2, gpt-4o-mini, gpt-4o, gpt-4, o1-preview, o1-mini, claude-3-opus, claude-3.5-sonnet, claude-3-sonnet, gemini-1.5-flash, gemini-1.5-pro, gemini-2.0-flash, gemini-2.0-flash-thinking`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
@@ -64,7 +65,7 @@ This document provides an overview of various AI providers and models, including
64 65 |[labs.perplexity.ai](https://labs.perplexity.ai)|No auth required|`g4f.Provider.PerplexityLabs`|`sonar-online, sonar-chat, llama-3.3-70b, llama-3.1-8b, llama-3.1-70b, lfm-40b`|❌|❌|✔|![Error](https://img.shields.io/badge/Active-brightgreen)|
65 66 |[pi.ai/talk](https://pi.ai/talk)||[Manual cookies](https://pi.ai/talk)|`g4f.Provider.Pi`|`pi`|❌|❌|✔|![Error](https://img.shields.io/badge/Active-brightgreen)|
66 67 |[pizzagpt.it](https://www.pizzagpt.it)|No auth required|`g4f.Provider.Pizzagpt`|`gpt-4o-mini`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
67 |[pollinations.ai](https://pollinations.ai)|No auth required|`g4f.Provider.PollinationsAI`|`gpt-4o, mistral-large, mistral-nemo, llama-3.3-70b, gpt-4, qwen-2-72b, qwen-2.5-coder-32b, claude-3.5-sonnet, claude-3.5-haiku, command-r, deepseek-chat, llama-3.1-8b, evil, p1, unity, midijourney, rtist`|`flux, midjourney, dall-e-3, sd-turbo`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
68 |[pollinations.ai](https://pollinations.ai)|No auth required|`g4f.Provider.PollinationsAI`|`gpt-4o-mini, gpt-4o, qwen-2.5-72b, qwen-2.5-coder-32b, llama-3.3-70b, mistral-nemo, deepseek-chat, llama-3.1-8b, deepseek-r1` _**(2+)**_|`flux, flux-pro, flux-realism, flux-cablyai, flux-anime, flux-3d, midjourney, dall-e-3, sdxl-turbo`|gpt-4o, gpt-4o-mini|✔|![](https://img.shields.io/badge/Active-brightgreen)|
68 69 |[app.prodia.com](https://app.prodia.com)|No auth required|`g4f.Provider.Prodia`|❌|✔ _**(46)**_|❌|❌|![](https://img.shields.io/badge/Active-brightgreen)|
69 70 |[teach-anything.com](https://www.teach-anything.com)|No auth required|`g4f.Provider.TeachAnything`|`llama-3.1-70b`|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
70 71 |[you.com](https://you.com)|[Manual cookies](https://you.com)|`g4f.Provider.You`|✔|✔|✔|✔|![](https://img.shields.io/badge/Active-brightgreen)|
@@ -72,7 +73,7 @@ This document provides an overview of various AI providers and models, including
72 73
73 74 ---
74 75 ### Providers HuggingSpace
75 | Website | API Credentials | Provider | Text Models | Image Models | Vision Models | Stream | Status | Auth |
76 | Website | API Credentials | Provider | Text Models | Image Models | Vision (Image Upload) | Stream | Status | Auth |
76 77 |----------|-------------|--------------|---------------|--------|--------|------|------|------|
77 78 |[black-forest-labs-flux-1-dev.hf.space](https://black-forest-labs-flux-1-dev.hf.space)|[Get API key](https://huggingface.co/settings/tokens)|`g4f.Provider.BlackForestLabsFlux1Dev`|❌|`flux-dev`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
78 79 |[black-forest-labs-flux-1-schnell.hf.space](https://black-forest-labs-flux-1-schnell.hf.space)|[Get API key](https://huggingface.co/settings/tokens)|`g4f.Provider.BlackForestLabsFlux1Schnell`|❌|`flux-schnell`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
@@ -83,9 +84,8 @@ This document provides an overview of various AI providers and models, including
83 84 |[voodoohop-flux-1-schnell.hf.space](https://voodoohop-flux-1-schnell.hf.space)|[Get API key](https://huggingface.co/settings/tokens)|`g4f.Provider.VoodoohopFlux1Schnell`|❌|`flux-schnell`|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
84 85
85 86 ---
86
87 87 ### Providers Needs Auth
88 | Website | API Credentials | Provider | Text Models | Image Models | Vision Models | Stream | Status |
88 | Website | API Credentials | Provider | Text Models | Image Models | Vision (Image Upload) | Stream | Status |
89 89 |----------|-------------|--------------|---------------|--------|--------|------|------|
90 90 |[console.anthropic.com](https://console.anthropic.com)|[Get API key](https://console.anthropic.com/settings/keys)|`g4f.Provider.Anthropic`|✔ _**(8+)**_|❌|❌|✔|![](https://img.shields.io/badge/Active-brightgreen)|
91 91 |[bing.com/images/create](https://www.bing.com/images/create)|[Manual cookies](https://www.bing.com)|`g4f.Provider.BingCreateImages`|❌|`dall-e-3`|❌|❌|![](https://img.shields.io/badge/Active-brightgreen)|
@@ -122,8 +122,8 @@ This document provides an overview of various AI providers and models, including
122 122 |-------|---------------|-----------|---------|
123 123 |gpt-3|OpenAI|2+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-3-5-turbo)|
124 124 |gpt-3.5-turbo|OpenAI|2+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-3-5-turbo)|
125 |gpt-4|OpenAI|11+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4)|
126 |gpt-4o|OpenAI|9+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o)|
125 |gpt-4|OpenAI|10+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4)|
126 |gpt-4o|OpenAI|10+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o)|
127 127 |gpt-4o-mini|OpenAI|9+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o-mini)|
128 128 |o1|OpenAI|1+ Providers|[platform.openai.com](https://openai.com/index/introducing-openai-o1-preview/)|
129 129 |o1-preview|OpenAI|1+ Providers|[platform.openai.com](https://openai.com/index/introducing-openai-o1-preview/)|
@@ -134,23 +134,23 @@ This document provides an overview of various AI providers and models, including
134 134 |llama-3-8b|Meta Llama|2+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3/)|
135 135 |llama-3-70b|Meta Llama|1+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Meta-Llama-3-70B)|
136 136 |llama-3.1-8b|Meta Llama|6+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
137 |llama-3.1-70b|Meta Llama|9+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
137 |llama-3.1-70b|Meta Llama|6+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
138 138 |llama-3.1-405b|Meta Llama|2+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.1-405B)|
139 139 |llama-3.2-1b|Meta Llama|1+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.2-1B)|
140 140 |llama-3.2-11b|Meta Llama|3+ Providers|[ai.meta.com](https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/)|
141 141 |llama-3.2-70b|Meta Llama|1+ Providers|[ai.meta.com](https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/)|
142 142 |llama-3.2-90b|Meta Llama|2+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.2-90B-Vision)|
143 |llama-3.3-70b|Meta Llama|7+ Providers|[llama.com/]()|
143 |llama-3.3-70b|Meta Llama|8+ Providers|[]( )|
144 144 |mixtral-7b|Mistral AI|1+ Providers|[mistral.ai](https://mistral.ai/news/mixtral-of-experts/)|
145 145 |mixtral-8x7b|Mistral AI|2+ Providers|[mistral.ai](https://mistral.ai/news/mixtral-of-experts/)|
146 146 |mistral-nemo|Mistral AI|3+ Providers|[huggingface.co](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407)|
147 |mistral-large|Mistral AI|1+ Providers|[mistral.ai](https://mistral.ai/news/mistral-large-2407/)|
148 147 |hermes-2-dpo|NousResearch|2+ Providers|[huggingface.co](https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO)|
149 148 |hermes-3|NousResearch|2+ Providers|[nousresearch.com](https://nousresearch.com/hermes3/)|
150 |phi-3.5-mini|Microsoft|2+ Providers|[huggingface.co](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)|
149 |phi-3.5-mini|Microsoft|1+ Providers|[huggingface.co](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)|
151 150 |wizardlm-2-7b|Microsoft|1+ Providers|[wizardlm.github.io](https://wizardlm.github.io/WizardLM2/)|
152 151 |wizardlm-2-8x22b|Microsoft|2+ Providers|[wizardlm.github.io](https://wizardlm.github.io/WizardLM2/)|
153 |gemini|Google DeepMind|2+ Providers|[deepmind.google](http://deepmind.google/technologies/gemini/)|
152 |gemini|Google DeepMind|1+ Providers|[deepmind.google](http://deepmind.google/technologies/gemini/)|
153 |gemini-exp|Google DeepMind|1+ Providers|[blog.google](https://blog.google/feed/gemini-exp-1206/)|
154 154 |gemini-1.5-flash|Google DeepMind|5+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/flash/)|
155 155 |gemini-1.5-pro|Google DeepMind|7+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/pro/)|
156 156 |gemini-2.0-flash|Google DeepMind|2+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/flash/)|
@@ -158,48 +158,45 @@ This document provides an overview of various AI providers and models, including
158 158 |claude-3-haiku|Anthropic|2+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-haiku)|
159 159 |claude-3-sonnet|Anthropic|1+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-family)|
160 160 |claude-3-opus|Anthropic|2+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-family)|
161 |claude-3.5-haiku|Anthropic|1+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-5-sonnet)|
162 |claude-3.5-sonnet|Anthropic|4+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-5-sonnet)|
161 |claude-3.5-sonnet|Anthropic|3+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-5-sonnet)|
163 162 |reka-core|Reka AI|1+ Providers|[reka.ai](https://www.reka.ai/ourmodels)|
164 163 |blackboxai|Blackbox AI|1+ Providers|[docs.blackbox.chat](https://docs.blackbox.chat/blackbox-ai-1)|
165 164 |blackboxai-pro|Blackbox AI|1+ Providers|[docs.blackbox.chat](https://docs.blackbox.chat/blackbox-ai-1)|
166 |command-r|CohereForAI|2+ Providers|[docs.cohere.com](https://docs.cohere.com/docs/command-r-plus)
165 |command-r|CohereForAI|1+ Providers|[docs.cohere.com](https://docs.cohere.com/docs/command-r-plus)
167 166 |command-r-plus|CohereForAI|2+ Providers|[docs.cohere.com](https://docs.cohere.com/docs/command-r-plus)
168 167 |command-r7b|CohereForAI|1+ Providers|[huggingface.co](https://huggingface.co/CohereForAI/c4ai-command-r7b-12-2024)|
169 168 |qwen-1.5-7b|Qwen|1+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen1.5-7B)|
170 |qwen-2-72b|Qwen|2+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2-72B)|
171 |qwen-2.5-72b|Qwen|2+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct)|
172 |qwen-2.5-coder-32b|Qwen|4+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2.5-Coder-32B)|
169 |qwen-2-72b|Qwen|1+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2-72B)|
170 |qwen-2.5-72b|Qwen|3+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct)|
171 |qwen-2.5-coder-32b|Qwen|5+ Providers|[huggingface.co](https://huggingface.co/Qwen/Qwen2.5-Coder-32B)|
173 172 |qwq-32b|Qwen|4+ Providers|[huggingface.co](https://huggingface.co/Qwen/QwQ-32B-Preview)|
174 173 |qvq-72b|Qwen|1+ Providers|[huggingface.co](https://huggingface.co/Qwen/QVQ-72B-Preview)|
175 174 |pi|Inflection|1+ Providers|[inflection.ai](https://inflection.ai/blog/inflection-2-5)|
176 175 |deepseek-chat|DeepSeek|3+ Providers|[huggingface.co](https://huggingface.co/deepseek-ai/deepseek-llm-67b-chat)|
177 |deepseek-r1|DeepSeek|1+ Providers|[api-docs.deepseek.com](https://api-docs.deepseek.com/news/news250120)|
176 |deepseek-r1|DeepSeek|5+ Providers|[api-docs.deepseek.com](https://api-docs.deepseek.com/news/news250120)|
178 177 |grok-2|x.ai|1+ Providers|[x.ai](https://x.ai/blog/grok-2)|
179 178 |sonar-online|Perplexity AI|1+ Providers|[docs.perplexity.ai](https://docs.perplexity.ai/)|
180 179 |sonar-chat|Perplexity AI|1+ Providers|[docs.perplexity.ai](https://docs.perplexity.ai/)|
181 |nemotron-70b|Nvidia|2+ Providers|[build.nvidia.com](https://build.nvidia.com/nvidia/llama-3_1-nemotron-70b-instruct)|
182 |lfm-40b|Liquid|2+ Providers|[liquid.ai](https://www.liquid.ai/liquid-foundation-models)|
180 |nemotron-70b|Nvidia|3+ Providers|[build.nvidia.com](https://build.nvidia.com/nvidia/llama-3_1-nemotron-70b-instruct)|
181 |lfm-40b|Liquid|1+ Providers|[liquid.ai](https://www.liquid.ai/liquid-foundation-models)|
183 182 |dbrx-instruct|Databricks|1+ Providers|[huggingface.co](https://huggingface.co/databricks/dbrx-instruct)|
184 |p1|PollinationsAI|1+ Providers|[]( )|
185 183 |cably-80b|CablyAI|1+ Providers|[cablyai.com](https://cablyai.com)|
186 184 |glm-4|THUDM|1+ Providers|[github.com/THUDM](https://github.com/THUDM/GLM-4)|
187 |evil|Evil Mode - Experimental|2+ Providers|[]( )|
188 |midijourney||1+ Providers|[]( )|
189 |unity||1+ Providers|[]( )|
190 |rtist||1+ Providers|[]( )|
185 |evil|Evil Mode - Experimental|1+ Providers|[]( )|
186
191 187
192 188 ---
193 189 ### Image Models
194 190 | Model | Base Provider | Providers | Website |
195 191 |-------|---------------|-----------|---------|
196 |sd-turbo||1+ Providers|[huggingface.co](https://huggingface.co/stabilityai/sd-turbo)|
192 |sdxl-turbo|Stability AI|2+ Providers|[huggingface.co](https://huggingface.co/stabilityai/sdxl-turbo)|
197 193 |sd-3.5|Stability AI|1+ Providers|[huggingface.co](https://huggingface.co/stabilityai/stable-diffusion-3.5-large)|
198 |flux|Black Forest Labs|4+ Providers|[github.com/black-forest-labs/flux](https://github.com/black-forest-labs/flux)|
194 |flux|Black Forest Labs|2+ Providers|[github.com/black-forest-labs/flux](https://github.com/black-forest-labs/flux)|
195 |flux-pro|Black Forest Labs|1+ Providers|[huggingface.co](https://huggingface.co/enhanceaiteam/FLUX.1-Pro)|
199 196 |flux-dev|Black Forest Labs|3+ Providers|[huggingface.co](https://huggingface.co/black-forest-labs/FLUX.1-dev)|
200 |flux-schnell|Black Forest Labs|2+ Providers|[huggingface.co](https://huggingface.co/black-forest-labs/FLUX.1-schnell)|
201 |dall-e-3|OpenAI|6+ Providers|[openai.com](https://openai.com/index/dall-e/)|
202 |midjourney|Midjourney|2+ Providers|[docs.midjourney.com](https://docs.midjourney.com/docs/model-versions)|
197 |flux-schnell|Black Forest Labs|3+ Providers|[huggingface.co](https://huggingface.co/black-forest-labs/FLUX.1-schnell)|
198 |dall-e-3|OpenAI|5+ Providers|[openai.com](https://openai.com/index/dall-e/)|
199 |midjourney|Midjourney|1+ Providers|[docs.midjourney.com](https://docs.midjourney.com/docs/model-versions)|
203 200
204 201
205 202 ## Conclusion and Usage Tips
Modified g4f/Provider/Blackbox.py +1 -1
@@ -38,7 +38,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
38 38 default_vision_model = default_model
39 39 default_image_model = 'ImageGeneration'
40 40 image_models = [default_image_model, "ImageGeneration2"]
41 vision_models = [default_vision_model, 'gpt-4o', 'gemini-pro', 'gemini-1.5-flash', 'llama-3.1-8b', 'llama-3.1-70b', 'llama-3.1-405b']
41 vision_models = [default_vision_model, 'gpt-4o', 'gemini-pro', 'gemini-1.5-flash', 'llama-3.1-8b', 'llama-3.1-70b', 'llama-3.1-405b', 'deepseek-r1']
42 42
43 43 userSelectedModel = ['gpt-4o', 'gemini-pro', 'claude-sonnet-3.5', 'blackboxai-pro']
44 44
Modified g4f/Provider/CablyAI.py +2 -2
@@ -4,7 +4,7 @@ from ..typing import AsyncResult, Messages
4 4 from .needs_auth import OpenaiAPI
5 5
6 6 class CablyAI(OpenaiAPI):
7 label = __name__
7 label = "CablyAI"
8 8 url = "https://cablyai.com"
9 9 login_url = None
10 10 needs_auth = False
@@ -35,4 +35,4 @@ class CablyAI(OpenaiAPI):
35 35 messages=messages,
36 36 headers=headers,
37 37 **kwargs
38 )
38 )
Modified g4f/Provider/DeepInfraChat.py +3 -2
@@ -4,6 +4,7 @@ from ..typing import AsyncResult, Messages
4 4 from .needs_auth.OpenaiTemplate import OpenaiTemplate
5 5
6 6 class DeepInfraChat(OpenaiTemplate):
7 label = "DeepInfraChat"
7 8 url = "https://deepinfra.com/chat"
8 9 api_base = "https://api.deepinfra.com/v1/openai"
9 10 working = True
@@ -29,7 +30,7 @@ class DeepInfraChat(OpenaiTemplate):
29 30 "qwq-32b": "Qwen/QwQ-32B-Preview",
30 31 "wizardlm-2-8x22b": "microsoft/WizardLM-2-8x22B",
31 32 "wizardlm-2-7b": "microsoft/WizardLM-2-7B",
32 "qwen-2-72b": "Qwen/Qwen2.5-72B-Instruct",
33 "qwen-2.5-72b": "Qwen/Qwen2.5-72B-Instruct",
33 34 "qwen-2.5-coder-32b": "Qwen/Qwen2.5-Coder-32B-Instruct",
34 35 "nemotron-70b": "nvidia/Llama-3.1-Nemotron-70B-Instruct",
35 36 }
@@ -50,4 +51,4 @@ class DeepInfraChat(OpenaiTemplate):
50 51 **headers
51 52 }
52 53 async for chunk in super().create_async_generator(model, messages, headers=headers, **kwargs):
53 yield chunk
54 yield chunk
Modified g4f/Provider/ImageLabs.py +1 -0
@@ -22,6 +22,7 @@ class ImageLabs(AsyncGeneratorProvider, ProviderModelMixin):
22 22 default_image_model = default_model
23 23 image_models = [default_image_model]
24 24 models = image_models
25 model_aliases = {"sdxl-turbo": default_model}
25 26
26 27 @classmethod
27 28 async def create_async_generator(
Modified g4f/Provider/PollinationsAI.py +23 -12
@@ -38,24 +38,35 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
38 38 default_model = "openai"
39 39 default_image_model = "flux"
40 40 default_vision_model = "gpt-4o"
41 extra_image_models = ["midjourney", "dall-e-3", "flux-pro", "flux-realism", "flux-cablyai", "flux-anime", "flux-3d"]
41 extra_image_models = ["midjourney", "dall-e-3", "flux-pro"]
42 42 vision_models = [default_vision_model, "gpt-4o-mini"]
43 extra_text_models = [*vision_models, "claude", "claude-email", "karma", "command-r", "llamalight", "mistral-large", "sur", "sur-mistral", "any-dark"]
43 extra_text_models = ["claude", "claude-email", "deepseek-reasoner"] + vision_models
44 44 model_aliases = {
45 "qwen-2-72b": "qwen",
45 ### Text Models ###
46 "gpt-4o-mini": "openai",
47 "gpt-4": "openai-large",
48 "gpt-4o": "openai-large",
49 "qwen-2.5-72b": "qwen",
46 50 "qwen-2.5-coder-32b": "qwen-coder",
47 51 "llama-3.3-70b": "llama",
48 52 "mistral-nemo": "mistral",
49 #"": "karma",
50 #"": "sur-mistral",
51 "gpt-4": "searchgpt",
52 "claude-3.5-haiku": "claude-hybridspace",
53 "claude-3.5-sonnet": "claude-email",
54 "gpt-4": "claude",
53 #"mistral-nemo": "unity", # bug with image url response
54 #"gpt-4o-mini": "midijourney", # bug with the answer
55 "gpt-4o-mini": "rtist",
56 "gpt-4o": "searchgpt",
57 #"mistral-nemo": "evil",
58 "gpt-4o-mini": "p1",
55 59 "deepseek-chat": "deepseek",
56 "llama-3.1-8b": "llamalight",
60 "deepseek-chat": "claude-hybridspace",
61 "llama-3.1-8b": "llamalight",
62 "gpt-4o-vision": "gpt-4o",
63 "gpt-4o-mini-vision": "gpt-4o-mini",
64 "gpt-4o-mini": "claude",
65 "deepseek-chat": "claude-email",
66 "deepseek-r1": "deepseek-reasoner",
67
57 68 ### Image Models ###
58 "sd-turbo": "turbo",
69 "sdxl-turbo": "turbo",
59 70 }
60 71 text_models = []
61 72
@@ -244,4 +255,4 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
244 255 break
245 256 except json.JSONDecodeError:
246 257 yield decoded_chunk.strip()
247 continue
258 continue
Modified g4f/models.py +28 -56
@@ -21,6 +21,7 @@ from .Provider import (
21 21 DeepInfraChat,
22 22 HuggingSpace,
23 23 GPROChat,
24 ImageLabs,
24 25 Jmuz,
25 26 Liaobots,
26 27 Mhystical,
@@ -261,12 +262,6 @@ mistral_nemo = Model(
261 262 best_provider = IterListProvider([PollinationsAI, HuggingChat, HuggingFace])
262 263 )
263 264
264 mistral_large = Model(
265 name = "mistral-large",
266 base_provider = "Mistral",
267 best_provider = PollinationsAI
268 )
269
270 265 ### NousResearch ###
271 266 hermes_2_dpo = Model(
272 267 name = "hermes-2-dpo",
@@ -318,18 +313,18 @@ gemini_exp = Model(
318 313 )
319 314
320 315 # gemini-1.5
321 gemini_1_5_pro = Model(
322 name = 'gemini-1.5-pro',
323 base_provider = 'Google DeepMind',
324 best_provider = IterListProvider([Blackbox, Jmuz, GPROChat, AIChatFree, Gemini, GeminiPro, Liaobots])
325 )
326
327 316 gemini_1_5_flash = Model(
328 317 name = 'gemini-1.5-flash',
329 318 base_provider = 'Google DeepMind',
330 319 best_provider = IterListProvider([Blackbox, Jmuz, Gemini, GeminiPro, Liaobots])
331 320 )
332 321
322 gemini_1_5_pro = Model(
323 name = 'gemini-1.5-pro',
324 base_provider = 'Google DeepMind',
325 best_provider = IterListProvider([Blackbox, Jmuz, GPROChat, AIChatFree, Gemini, GeminiPro, Liaobots])
326 )
327
333 328 # gemini-2.0
334 329 gemini_2_0_flash = Model(
335 330 name = 'gemini-2.0-flash',
@@ -366,16 +361,10 @@ claude_3_opus = Model(
366 361
367 362
368 363 # claude 3.5
369 claude_3_5_haiku = Model(
370 name = 'claude-3.5-haiku',
371 base_provider = 'Anthropic',
372 best_provider = PollinationsAI
373 )
374
375 364 claude_3_5_sonnet = Model(
376 365 name = 'claude-3.5-sonnet',
377 366 base_provider = 'Anthropic',
378 best_provider = IterListProvider([Blackbox, PollinationsAI, Jmuz, Liaobots])
367 best_provider = IterListProvider([Blackbox, Jmuz, Liaobots])
379 368 )
380 369
381 370 ### Reka AI ###
@@ -402,7 +391,7 @@ blackboxai_pro = Model(
402 391 command_r = Model(
403 392 name = 'command-r',
404 393 base_provider = 'CohereForAI',
405 best_provider = IterListProvider([HuggingSpace, PollinationsAI])
394 best_provider = HuggingSpace
406 395 )
407 396
408 397 command_r_plus = Model(
@@ -429,14 +418,14 @@ qwen_1_5_7b = Model(
429 418 qwen_2_72b = Model(
430 419 name = 'qwen-2-72b',
431 420 base_provider = 'Qwen',
432 best_provider = IterListProvider([DeepInfraChat, PollinationsAI, HuggingSpace])
421 best_provider = HuggingSpace
433 422 )
434 423
435 424 # qwen 2.5
436 425 qwen_2_5_72b = Model(
437 426 name = 'qwen-2.5-72b',
438 427 base_provider = 'Qwen',
439 best_provider = Jmuz
428 best_provider = IterListProvider([DeepInfraChat, PollinationsAI, Jmuz])
440 429 )
441 430
442 431 qwen_2_5_coder_32b = Model(
@@ -475,7 +464,7 @@ deepseek_chat = Model(
475 464 deepseek_r1 = Model(
476 465 name = 'deepseek-r1',
477 466 base_provider = 'DeepSeek',
478 best_provider = IterListProvider([Blackbox, Jmuz, HuggingChat, HuggingFace])
467 best_provider = IterListProvider([Blackbox, Jmuz, PollinationsAI, HuggingChat, HuggingFace])
479 468 )
480 469
481 470 ### x.ai ###
@@ -554,34 +543,16 @@ evil = Model(
554 543 best_provider = PollinationsAI
555 544 )
556 545
557 ### Other ###
558 midijourney = Model(
559 name = 'midijourney',
560 base_provider = 'Other',
561 best_provider = PollinationsAI
562 )
563
564 unity = Model(
565 name = 'unity',
566 base_provider = 'Other',
567 best_provider = PollinationsAI
568 )
569
570 rtist = Model(
571 name = 'rtist',
572 base_provider = 'Other',
573 best_provider = PollinationsAI
574 )
575 546
576 547 #############
577 548 ### Image ###
578 549 #############
579 550
580 551 ### Stability AI ###
581 sd_turbo = ImageModel(
582 name = 'sd-turbo',
552 sdxl_turbo = ImageModel(
553 name = 'sdxl-turbo',
583 554 base_provider = 'Stability AI',
584 best_provider = PollinationsAI
555 best_provider = IterListProvider([PollinationsAI, ImageLabs])
585 556 )
586 557
587 558 sd_3_5 = ImageModel(
@@ -590,25 +561,32 @@ sd_3_5 = ImageModel(
590 561 best_provider = HuggingSpace
591 562 )
592 563
593 ### Flux AI ###
564 ### Black Forest Labs ###
594 565 flux = ImageModel(
595 566 name = 'flux',
596 base_provider = 'Flux AI',
567 base_provider = 'Black Forest Labs',
597 568 best_provider = IterListProvider([Blackbox, PollinationsAI, HuggingSpace])
598 569 )
599 570
571 flux_pro = ImageModel(
572 name = 'flux-pro',
573 base_provider = 'Black Forest Labs',
574 best_provider = PollinationsAI
575 )
576
600 577 flux_dev = ImageModel(
601 578 name = 'flux-dev',
602 base_provider = 'Flux AI',
579 base_provider = 'Black Forest Labs',
603 580 best_provider = IterListProvider([HuggingSpace, HuggingChat, HuggingFace])
604 581 )
605 582
606 583 flux_schnell = ImageModel(
607 584 name = 'flux-schnell',
608 base_provider = 'Flux AI',
585 base_provider = 'Black Forest Labs',
609 586 best_provider = IterListProvider([HuggingSpace, HuggingChat, HuggingFace])
610 587 )
611 588
589
612 590 ### OpenAI ###
613 591 dall_e_3 = ImageModel(
614 592 name = 'dall-e-3',
@@ -682,7 +660,6 @@ class ModelUtils:
682 660 mixtral_7b.name: mixtral_7b,
683 661 mixtral_8x7b.name: mixtral_8x7b,
684 662 mistral_nemo.name: mistral_nemo,
685 mistral_large.name: mistral_large,
686 663
687 664 ### NousResearch ###
688 665 hermes_2_dpo.name: hermes_2_dpo,
@@ -719,7 +696,6 @@ class ModelUtils:
719 696 claude_3_haiku.name: claude_3_haiku,
720 697
721 698 # claude 3.5
722 claude_3_5_haiku.name: claude_3_5_haiku,
723 699 claude_3_5_sonnet.name: claude_3_5_sonnet,
724 700
725 701 ### Reka AI ###
@@ -775,21 +751,17 @@ class ModelUtils:
775 751 mini_max.name: mini_max, ## MiniMax
776 752 evil.name: evil, ### Uncensored AI ###
777 753
778 ### Other ###
779 midijourney.name: midijourney,
780 unity.name: unity,
781 rtist.name: rtist,
782
783 754 #############
784 755 ### Image ###
785 756 #############
786 757
787 758 ### Stability AI ###
788 sd_turbo.name: sd_turbo,
759 sdxl_turbo.name: sdxl_turbo,
789 760 sd_3_5.name: sd_3_5,
790 761
791 762 ### Flux AI ###
792 763 flux.name: flux,
764 flux_pro.name: flux_pro,
793 765 flux_dev.name: flux_dev,
794 766 flux_schnell.name: flux_schnell,
795 767