Skip to content

feat(costs): add gpt-image-2 pricing support#5698

Open
JJae-Won wants to merge 3 commits into
Helicone:mainfrom
JJae-Won:add-gpt-image-2-pricing
Open

feat(costs): add gpt-image-2 pricing support#5698
JJae-Won wants to merge 3 commits into
Helicone:mainfrom
JJae-Won:add-gpt-image-2-pricing

Conversation

@JJae-Won

Copy link
Copy Markdown

Summary

Add pricing support for OpenAI's gpt-image-2 model. Currently Helicone shows "Cost Unsupported" for gpt-image-2 requests because the model is missing from the cost package.

Changes

  • packages/cost/models/authors/openai/gpt-image-2/models.ts — Model definition for gpt-image-2
  • packages/cost/models/authors/openai/gpt-image-2/endpoints.ts — Token pricing: input $10/1M tokens, output $40/1M tokens (source)
  • packages/cost/models/authors/openai/index.ts — Register gpt-image-2 in the OpenAI model aggregation

Pricing Reference

From OpenAI pricing page:

Token Type Price
Input (text + image) $10.00 / 1M tokens
Output (image) $40.00 / 1M tokens

Follows the same pattern as existing gpt-image-1 and gpt-image-1.5 entries.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@JJae-Won is attempting to deploy a commit to the Helicone Team on Vercel.

A member of the Team first needs to authorize it.

@vercel vercel Bot temporarily deployed to Preview – helicone-bifrost June 16, 2026 05:00 Inactive
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
helicone-bifrost Skipped Skipped Jun 16, 2026 5:00am

Request Review

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.

1 participant