Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: BenchGecko Pricing API
version: 1.0.0
summary: AI models, prices per provider, benchmarks and Gecko Tests, as JSON.
description: 'Read-only public API of BenchGecko (https://benchgecko.ai). Every JSON response carries source, url, as_of, license, attribution and cite fields. Data BenchGecko collects or measures itself (provider prices, price history, Gecko Tests, mindshare, GPU rental) is CC BY 4.0. Benchmark scores are aggregated from public leaderboards and keep their original source. Attribution required: "Source: BenchGecko" with a link. Free tier: 100 requests per day. Remote MCP server: https://benchgecko.ai/api/mcp.'
contact:
name: BenchGecko
url: https://benchgecko.ai/api-docs
license:
name: CC BY 4.0 (BenchGecko collected data)
url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://benchgecko.ai
tags:
- name: Pricing
description: Price history and per-provider offers
paths:
/api/v1/price-history/{slug}:
get:
tags:
- Pricing
operationId: getPriceHistory
summary: List price history of one model
description: One row per recorded change, USD per 1M tokens. Plain array by default (source in headers); add envelope=1 for the wrapped form.
parameters:
- name: slug
in: path
required: true
description: Model slug
schema:
type: string
example: deepseek-v4-pro
- name: envelope
in: query
required: false
description: Wrap in the standard envelope
schema:
type: string
enum:
- '1'
responses:
'200':
description: Price history
content:
application/json:
schema:
oneOf:
- type: array
items:
type: object
- type: object
properties:
source:
type: string
const: BenchGecko
url:
type: string
format: uri
description: Canonical BenchGecko page for this data
as_of:
type:
- string
- 'null'
description: Date (YYYY-MM-DD) of the freshest data point in the response
license:
type: string
attribution:
type: string
description: 'Use "Source: BenchGecko" with a link to url'
cite:
type: string
description: Ready-made citation text
data:
type: array
items:
type: object
additionalProperties: true
externalDocs:
description: API docs
url: https://benchgecko.ai/api-docs