anomalyco / anomalyco/models.dev

[Request] Historical data API

Open
#4,006 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.9k
Forks
1.7k
Avg merge
3h 21m
Merged PRs (30d)
873

Description

Hi,

The recent price changes for OpenAI models have shown that a single date entrypoint (latest) for pricing doesn't enough information for past data. Ideally, model costs should keep track of the timestamp of the change, so that tools that rely on this data and past agent sessions can match and determine the correct cost.

For example, PI agent linked to GitHub Copilot subscription isn't yet using the updated prices (even if Copilot does) when logging usage, leading to sessions that report much higher cost than actually billed.

Once the models.dev PR is merged to address costs changes, I'd like to still have access to the old pricing information as reference for my reporting tool, so that it can show older sessions with older price and newer ones with latest.

Is this something that could be built into models.dev?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the pricing data and API entry points in models.dev to understand how the current latest-only model costs are represented and served. Define how timestamped price changes would be exposed and verify that historical sessions can retrieve the price applicable at their date while current sessions receive the latest price.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.