<aside> ⚠️ In any case, you should check the official document, this note may be outdated in the future.

</aside>

This note is only for working with APIs from AI Services. If you use the AI services as their tools and chat apps, check this note instead.

Remarks (for all services)

Temperature

OpenAI Mistral Claude Gemini
Range [0, 2] [0, 1] [0, 1] [0, 2] (gemini-1.5-pro)
[0, 1] (gemini-1.0-pro-vision)
[0, 2] (gemini-1.0-pro-002)
[0, 1] (gemini-1.0-pro-001)
Default 1 0.7 1 1 (gemini-1.5-pro)
0.4 (gemini-1.0-pro-vision)
1 (gemini-1.0-pro-002)
0.9 (gemini-1.0-pro-001)

Max tokens

No services give a very clear discription about the max tokens. You have to read the documentation carefully.

Vercel’s AI SDK

OpenAI