← Back to Blog
May 29, 2026 4 min read

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:

GPT-5 Pricing Claude Sonnet Pricing Gemini Flash Pricing DeepSeek V4 Pro Pricing Mistral Large Pricing Llama 4 Scout Pricing

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:

[![GPT-5 Pricing](https://getapipulse.com/api/badge?model=openai-gpt5)](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:

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
[![GPT-5](https://getapipulse.com/api/badge?model=openai-gpt5)](https://getapipulse.com)
[![Claude Sonnet](https://getapipulse.com/api/badge?model=anthropic-sonnet)](https://getapipulse.com)
[![Gemini Flash](https://getapipulse.com/api/badge?model=google-flash)](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": "[![GPT-5 Pricing](https://getapipulse.com/api/badge?model=openai-gpt5)](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:

  1. Looks up the model's current pricing from our database
  2. Generates an SVG badge with the model name and prices
  3. Returns it as an image/svg+xml response
  4. 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

Explore all 34 models and their pricing

View API Documentation

Full 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:

Found this useful? Share it with your team: