Show HN: I built an SDK to select the best model for your task

Share This Post

I built AutoRouter, an open-source SDK that helps you find the most suitable AI model for a given task. Instead of manually browsing hundreds or thousands of models on Hugging Face, it uses embeddings and a vector database to recommend models based on semantic similarity to your task description.

It works with any type of model, including text generation, classification, and image generation. You can filter by license type, limit the number of results, or use your own custom registry of models.

The SDK requires OpenAI for generating embeddings and Pinecone for storing the model index. Once the models are indexed, selecting a model for a task takes just one line of code.

It’s free to use and open source

Example usage:

import { AutoRouter } from ‘autorouter-sdk’;

const router = new AutoRouter({
openaiKey: process.env.OPENAI_API_KEY,
pineconeKey: process.env.PINECONE_API_KEY
});

const models = await router.selectModel(‘build a chatbot’);
console.log(models);

You can also include filters like filter: { license: ‘apache-2.0’ }

In future I also plan to add closed source models to the registry

I’d be happy to hear any feedback or suggestions.


Comments URL: https://news.ycombinator.com/item?id=45709702

Points: 1

# Comments: 0

Source: github.com

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Discriminatory Scholarship for Black Students at UC San Diego Rebranded

Article URL: https://www.usnews.com/news/best-states/california/articles/2025-10-21/scholarship-for-black-students-at-uc-san-diego-rebranded-after-lawsuit-argued-it-was-discriminatory Comments URL: https://news.ycombinator.com/item?id=45711107 Points: 1 # Comments: 0 Source: www.usnews.com

Do You Want To Boost Your Business?

drop us a line and keep in touch

We are here to help

One of our technicians will be with you shortly.