Automate AI model data in your CI/CD pipeline. Free, open source, and always up-to-date.
- name: Get AI Model Data
uses: i-need-token/ai-models@v0.2.0
with:
format: json
output: models.json
Get structured model data with pricing, context windows, and capabilities for 4,587+ models across 95 providers.
Filter by provider, capability (tool calling, reasoning, vision), pricing tier, or context window size.
Monitor pricing changes across providers. Get alerts when model prices change.
Output as JSON, YAML, CSV, or Markdown table. Use in scripts, docs, or dashboards.
| Input | Description | Default |
|---|---|---|
format |
Output format: json, yaml, csv, markdown | json |
output |
Output file path | models.json |
provider |
Filter by provider name | (all) |
capability |
Filter by capability: tool_call, reasoning, vision, structured_output | (all) |
free-only |
Only include free models | false |
max-price |
Maximum input price per M tokens | (no limit) |
min-context |
Minimum context window size | 0 |
- name: Get free tool-calling models
uses: i-need-token/ai-models@v0.2.0
with:
format: json
output: free-tc-models.json
capability: tool_call
free-only: true
- name: Get budget models
uses: i-need-token/ai-models@v0.2.0
with:
format: csv
output: budget-models.csv
max-price: 0.50
- name: Generate comparison table
uses: i-need-token/ai-models@v0.2.0
with:
format: markdown
output: model-comparison.md
provider: openai
capability: reasoning
name: Price Monitor
on:
schedule:
- cron: '0 6 * * 1' # Every Monday 6:00 UTC
jobs:
check-prices:
runs-on: ubuntu-latest
steps:
- uses: i-need-token/ai-models@v0.2.0
with:
format: csv
output: current-prices.csv
- name: Compare with last week
run: |
diff last-week-prices.csv current-prices.csv || echo "Prices changed!"
- name: Save for next week
run: cp current-prices.csv last-week-prices.csv
{
"generated_at": "2025-05-21T12:00:00Z",
"stats": { "models": 4587, "providers": 95 },
"models": [
{
"id": "gpt-4o",
"provider": "openai",
"pricing": { "input": 2.5, "output": 10 },
"limit": { "context": 128000 },
"tool_call": true,
"reasoning": false
}
]
}
id,provider,input_price,output_price,context_window,tool_call,reasoning
gpt-4o,openai,2.5,10,128000,true,false