Add Live AI API Pricing Badges to Your README
Show current AI API costs in your GitHub README, documentation, or blog with a single line of markdown. Free, auto-updating SVG badges for 34 models.
Live badges — these update automatically when prices change:
Why Pricing Badges?
If you're building with AI APIs, your README probably mentions which models you use. But pricing changes fast — GPT-5 launched at different prices than GPT-4o, DeepSeek V4 undercut everyone, and providers adjust pricing regularly.
A live pricing badge keeps your documentation accurate without manual updates. When a provider changes their prices, your badge reflects it automatically.
One Line of Markdown
Add a pricing badge to any GitHub README, GitLab docs, or markdown file:
[](https://getapipulse.com)
That's it. The badge shows the model name and current input/output pricing per 1M tokens. Clicking it takes visitors to APIpulse for full details.
Available Models
All 34 models across 10 providers have badges. Here are the most popular:
openai-gpt5— GPT-5openai-gpt5-mini— GPT-5 miniopenai-gpt4o-mini— GPT-4o minianthropic-sonnet46— Claude Sonnet 4.6anthropic-haiku— Claude Haiku 4.5google-flash— Gemini 2.0 Flashdeepseek-v4-pro— DeepSeek V4 Prodeepseek-v4-flash— DeepSeek V4 Flashmistral-large— Mistral Large 3llama-4-scout— Llama 4 Scout
See the full API docs for all 34 model IDs.
Embed in HTML
For documentation sites, blogs, or any HTML page:
<a href="https://getapipulse.com">
<img src="https://getapipulse.com/api/badge?model=openai-gpt5" alt="GPT-5 Pricing">
</a>
Multiple Badges
Show pricing for all the models your project supports:
## Supported Models
[](https://getapipulse.com)
[](https://getapipulse.com)
[](https://getapipulse.com)
Programmatic Access
Need the badge data as JSON for your own tools? Use the format parameter:
# Get embed code as JSON
curl "https://getapipulse.com/api/badge?model=openai-gpt5&format=json"
# Response:
{
"model": "GPT-5",
"provider": "OpenAI",
"pricing": { "input_per_1m": 1.25, "output_per_1m": 10.00 },
"badge_url": "https://getapipulse.com/api/badge?model=openai-gpt5",
"embed": {
"markdown": "[](https://getapipulse.com)",
"html": "<a href=\"https://getapipulse.com\"><img src=\"...\"></a>"
}
}
You can also get just the markdown (format=md) or just the URL (format=url).
How It Works
The badge endpoint is a Vercel Serverless Function that:
- Looks up the model's current pricing from our database
- Generates an SVG badge with the model name and prices
- Returns it as an
image/svg+xmlresponse - Caches for 24 hours (badges update daily)
The badge colors match each provider's brand — green for OpenAI, orange for Anthropic, blue for Google, etc.
Use Cases
- Open-source AI projects — Show which models your tool supports with current pricing
- API wrapper libraries — Display cost info for each supported provider
- Documentation sites — Keep pricing accurate without manual updates
- Blog posts — Add visual pricing context to comparison articles
- Internal wikis — Help your team track which models you're using and their costs
Explore all 34 models and their pricing
View API DocumentationFull API
The badge endpoint is part of the APIpulse LLM Pricing API — a free, no-auth-required API for AI pricing data. Other endpoints include:
/api/pricing— Get all 34 models with pricing data/api/calculate— Calculate costs for your specific usage/api/cheapest— Find the cheapest model for your use case/api/badge— SVG pricing badges (this post)