Skip to content

Instantly share code, notes, and snippets.

View s-pl's full-sized avatar
😇
working

Samuel Ponce s-pl

😇
working
View GitHub Profile
@tluyben
tluyben / gist:1963331b906568cda67c4814b8ed8311
Created July 19, 2025 09:49
Get free models from OpenRouter as JSON
#!/usr/bin/env -S deno run --allow-net
/**
* Fetches all models from OpenRouter API and filters for free ones
* Run with: deno run --allow-net openrouter-free-models.js
*/
async function getFreeOpenRouterModels() {
try {
console.log('Fetching models from OpenRouter...');