Skip to content

feat: add GPT-5 model family pricing support #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Saadkhalid913
Copy link

Add pricing for gpt-5, gpt-5-mini, gpt-5-nano, and gpt-5-chat-latest models with cached/uncached input and output token costs

Reference pricing from OpenAI

Add pricing for gpt-5, gpt-5-mini, gpt-5-nano, and gpt-5-chat-latest models with cached/uncached input and output token costs
…tamp

Add timestamped variants for all GPT-5 model family members:
- gpt-5-mini-2025-08-07 (input/cached/completion)
- gpt-5-nano-2025-08-07 (input/cached/completion)
- gpt-5-chat-latest-2025-08-07 (input/cached/completion)

These additions follow the existing pattern established by the base
gpt-5-2025-08-07 models and maintain the same pricing structure as
their non-dated counterparts. This ensures consistent pricing support
for specific model versions across the entire GPT-5 family.
@valievkarim
Copy link

did not work for me until i also added to the MODEL_COST_PER_1K_TOKENS dict
"gpt-5-2025-08-07-completion": 0.01,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants