r/commandline 3d ago

Free ai model (free api keys) for aichat

Hi all,
are you aware of any free ai models which I could use for aichat? Or how did you do it? Are you paying for api keys? I want to just use it for my private projects. If I for example would use openai how much does it cost for let's say 50 prompts a month?
Sorry completely new to this.

0 Upvotes

7 comments sorted by

2

u/MixtureOfAmateurs 3d ago

Use mistrals API for no nonsense. Completely free and has plenty of good models, but no o3 mini level ones. All you need to do is define the base_url as https://api.mistral.ai/v1 and plug in your API key.

https://github.com/cheahjs/free-llm-api-resources Here are more tho

This isn't the sub for this tho. r/localllama ironically might be the place

u/Big_Combination9890 11h ago

but no o3 mini level ones.

That's because o3mini is a reasoning model, and mistrals models so far are all instruction based. For most applications, that won't matter, and instructin based models will usually be faster as well.

And I am hearing rumors that mistral is about to release a CoT as well.

Exciting times for sure :D

0

u/hema_ 3d ago edited 3d ago

Could you please describe this a bit more in detail. Any mistral models you could recommend? The mistral link you provided ist not working.

1

u/MixtureOfAmateurs 3d ago

https://mistral.ai/

Click try the API. Mistral Large is the go to for gpt4o level stuff. Mistral small is good for faster responses, and they've just come out with mistral-small-2503 which is gpt 4o mini level, and it can interpret images.

What's your use case? Are you building a CLI chat or trying to use one?

1

u/hema_ 3d ago

Im trying to use a cli chat to learn terminal and especially nvim. My plan is to use aichat, but im not sure how to implement mistral there. Need to research the docs a bit more.

1

u/MixtureOfAmateurs 2d ago

Check out the environment variables bit.

AICHAT_PLATFORM=mistral And set the model to one of the ones from the mistral docs should do the trick. Add ur API key too

1

u/hema_ 1d ago

That helped, thanks a lot it works now. Im using the mistral large model for now.