Skip to content

Codex Ultrafast requests fall back to Standard pricing #1987

Closed

Description

@rzv-me

What happened?

ccusage 20.0.45 does not recognize recorded service_tier: "ultrafast". With a Standard config fallback, these requests are priced at Standard rates, underestimating API-equivalent costs.

Steps to reproduce

  1. Use a Codex home with service_tier = "default" in config.toml.
  2. Save this synthetic rollout under its sessions/ directory:
{"timestamp":"2026-10-27T10:00:00Z","type":"event_msg","payload":{"type":"thread_settings_applied","thread_settings":{"service_tier":"ultrafast"}}}
{"timestamp":"2026-10-27T10:00:01Z","type":"event_msg","payload":{"type":"token_count","info":{"model":"gpt-6.1-sol","last_token_usage":{"input_tokens":1200,"cached_input_tokens":200,"output_tokens":50,"total_tokens":1250}}}}
  1. Run npx [email protected] codex daily --speed auto --offline --json against that home.

The request is valued at $0.00252.

Expected behavior

Use the recorded Ultrafast tier: $0.01512 for these tokens, using the published OpenAI rates.

I have a tested fix ready that adds recorded-tier detection, --speed ultrafast, and published Astra/Sol rates while preserving token totals. Could you approve a PR for this change?

Version

20.0.45; also reproduced on main at b8ad727.

Activity

  1. pullfrog commented on Oct 28, 2026

    @pullfrog
    Contributor
  2. added
    bugSomething isn't working
    priority:mediumA normal bug or meaningful improvement.
    triage:maintainableFits the repository's maintainable scope and needs review.
    on Oct 28, 2026
  3. added
    priority:lowMinor polish, documentation, or a low-impact edge case.
    triage:excludedExcluded from the current maintenance scope.
    and removed
    priority:mediumA normal bug or meaningful improvement.
    triage:maintainableFits the repository's maintainable scope and needs review.
    on Oct 28, 2026
  4. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    Pullfrog triage: priority:low
    Kind: feature request
    Maintenance fit: excluded
    Confidence: high

    Requests new Codex ultrafast tier support, new --speed ultrafast flag, and new Astra/Sol rates. Current code only supports Standard, Fast, and Flex and leaves unknown tiers unclassified. No maintainer endorsement exists. This is a new compatibility surface with synthetic-only evidence.

    Decision: closed by the contribution gate.

  5. rzv-me commented on Oct 28, 2026

    @rzv-me
    ContributorAuthor

    Adding context for human review: this came from comparing actual retained Codex session history with a separate local tracker. The synthetic fixture is a minimized reproduction so I don't have to publish private rollouts. I verified real thread_settings_applied events containing service_tier: "ultrafast".

    ccusage already reconstructs pricing from recorded tier changes, but leaves this value unclassified. With a Standard config fallback, those requests receive Standard estimates. OpenAI publishes Ultrafast API rates at 6× Standard for GPT-6.1 Sol and GPT-6 Astra; the repository's existing models.dev snapshot also includes Sol Ultrafast rates.

    This affects historical reports too: changing a thread back to Standard should preserve the earlier requests' recorded Ultrafast pricing. The regression tests cover that switch within one thread, without changing token totals. These are API-equivalent estimates based on recorded settings; actual server-side processing and billing remain unconfirmed.

    I understand that --speed ultrafast and ultrafastMultiplier add new configuration surface. I'm happy to separate those and limit a PR to recognizing and pricing the recorded tier.

    Tested branch. Could a maintainer review whether this narrower change is within scope?

  6. rzv-me commented on Oct 28, 2026

    @rzv-me
    ContributorAuthor

    @ryoppippi could you review the clarification above? This arose from real Codex usage history. I’m happy to limit the PR to recognizing and pricing recorded Ultrafast requests, leaving the new CLI/config options for separate consideration.

  7. added a commit that references this issue on Oct 31, 2026
    8cb2532
  8. ryoppippi commented on Nov 10, 2026

    @ryoppippi
    Member

    Note

    🤖 Claude Opus 5.5 responding on behalf of @ryoppippi

    This landed in #1989, which credits you as co-author, and shipped in v20.0.46. Recorded Ultrafast requests are now priced at Ultrafast rates. Sorry your follow-up went unanswered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:lowMinor polish, documentation, or a low-impact edge case.triage:excludedExcluded from the current maintenance scope.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions