File size: 461 Bytes
fc851c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const fs = require('fs');
async function fetchModels() {
    try {
        const response = await fetch('https://openrouter.ai/api/v1/models');
        const data = await response.json();
        const freeModels = data.data
            .filter(m => m.id.endsWith(':free'))
            .map(m => m.id);
        console.log("FREE MODELS AVAILABLE:");
        console.log(freeModels.join('\n'));
    } catch (e) {
        console.error(e);
    }
}
fetchModels();