Post

3/ Prompt optimization Reduce the amount of tokens by making your prompt shorter and more concise. You can even ask an LLM to do that for you. To verify, you can set up a simple prompt versioning system and run A/B tests to see if the results are still satisfactory.

0 reposts0 likes

4/ Openrouter It has a lot of models you can try out with a single account and payment. Some of the cheapest ones are: OpenAI o1-mini, Gemini Flash, Llama 3.2 Instruct Experiment and find which model suits your needs best.

4-2/ If you're using an abstraction layer like Vercel's AI SDK, the model and API you use becomes an implementation detail and can be changed very easily. Just make sure the model can run tools you need, like JSON generation.