Skip to content

[FEAT] Add 65 free famous ai models (provided free by OpenRouter) #1028

@emadmahdi

Description

@emadmahdi

Is your feature request related to a problem? / 你想要的功能和什么问题相关?

No

Describe the solution you'd like. / 你想要的解决方案是什么?

OpenRouter provides 65 free models and 254 paid models .. it can all be easily accessed using their free API

To list and see all the models you can use this url:
https://openrouter.ai/api/v1/models

To create a free OperRouter account and free API key you can use this url:
https://openrouter.ai

Here is a simple JavaScript example to send a message to OpenRouter free model "deepseek/deepseek-chat:free" and print received response using their completion API "https://openrouter.ai/api/v1/chat/completions"

const headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer ANY_VALID_API_KEY"
};
const data = {
    "model": "deepseek/deepseek-chat:free",
    "messages": [
        {"role": "user", "content": "What is your name ?"}
    ]
};
fetch('https://openrouter.ai/api/v1/chat/completions', {
    method: 'POST',
    headers: headers,
    body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => alert(data));

And this example to get the list of all models:

const headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer ANY_VALID_API_KEY"
};
fetch('https://openrouter.ai/api/v1/models', {
    method: 'GET',
    headers: headers,
    body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => alert(data));

These 2 examples are using a so-called "OpenAI-compatible completion API" .. which means if you add it to your program you can connect to almost any AI remote provider .. because they all use the same API.

You can see more examples using OpenRouter request builder:
https://openrouter.ai/request-builder

OpenRouter is a good choice to start with because they provide most of the good AI chat models for free .. DeepSeek, Google, Microsoft, Meta, OpenAI, Mistral, Nvidia, Claude, Qwen, Cohere, GitHub and lots more.

OpenRouter free quota is limited to 20 requests per day .. To make it 50 simply add any credits .. To make it 1000 add 10 credits (i think $10) .. These credits will not be used for the free models .. Unused credits will expire after 365 days .. I do not know what is the meaning of 20 requests .. i can chat and send and receive messages a lot more than 20 message.

Describe alternatives you've considered. / 你考虑过的其他方案是什么?

I am using other software like "Msty" and "Jan" .. They provide access to "OpenAI Compatible APIs" free providers such as OpenRouter

Additional context / 其他信息

Other providers who use the same API method like OpenRouter:

https://openrouter.ai/api/v1/chat/completions
https://integrate.api.nvidia.com/v1/chat/completions
https://api.openai.com/v1/chat/completions
https://api.mistral.ai/v1/chat/completions
https://withmartian.com/api/openai/v1/chat/completions
https://api.groq.com/openai/v1/chat/completions
https://generativelanguage.googleapis.com/v1be/openai/chat/completionsa
https://api.deepseek.com/chat/completions
https://api.cohere.ai/v1/chat
https://api.anthropic.com/v1/messages
https://models.inference.ai.azure.com/chat/completions
.
.
List of models is also available for all the above providers:
.
Those providers does not need API authentication (simply use any web browser):
https://openrouter.ai/api/v1/models
https://integrate.api.nvidia.com/v1/models
https://models.inference.ai.azure.com/models
.
Those providers needs API authentication:
https://api.openai.com/v1/models
https://api.mistral.ai/v1/models
https://withmartian.com/api/openai/v1/models
https://api.groq.com/openai/v1/models
https://generativelanguage.googleapis.com/v1beta/models
https://api.deepseek.com/models
https://api.cohere.ai/v1/models
https://api.anthropic.com/v1/models
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions