Skip to content
Source
Sign inSign up
TanStack/schemas

Price OpenCode image models from the Image pricing table #690

Mergedtombeckenhammerged 2 commits intomain from100007-opencode-new-image-pricing-table-is-unread-so-gpt-image-2-5merged by tombeckenham View on GitHub

tombeckenhamcommented

What

Parse OpenCode's ### Image pricing table into rate cards. Those three models are in the Endpoints table and not in the token price table, so every poll threw has an endpoint but no price row and dropped the provider's prices.

Cards

  • GPT Image 2.5 Sunburst: $1 per image, plus $8 / $30 per 1M input / output tokens and $2 per 1M cached input tokens.
  • Nano Banana 2.1: $1.50 / $7.50 / $30 per 1M input, text output, and image output tokens. The "about $0.034 per 1K" line is an approximation, not a resolution rate.
  • Grok Imagine Image 2.0: $0.04 per image and $0.01 per input image. The $0.05–$0.08 quality and resolution band has no rule, so it is not a rate.

An image row this parser does not recognise throws, the same as an unreadable token cell.

    1. tombeckenham pushed84f7c35

    2. tombeckenham merged this69c259b

    3. tombeckenham merged this69c259b

    4. tombeckenham closed this

Sign in to join this conversation.