Skip to content

[FEATURE]: OpenRouter Service Tiers Support for Reducing Model Cost #28566

@landon-thull

Description

@landon-thull

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Overview

Implement configuration options for the OpenRouter service_tier parameter (see Related Documentation). This parameter provides access to reduced cost (0.5x) "flex" endpoints at the cost of increased latency. Currently, only OpenAI and Google models support this parameter.

Benefits

Reduced token cost for low-priority tasks on supported models.

Implementation Proposals

1. Hotkey Configuration in TUI (more complex)

Implement a service tier component into the status bar of the OpenCode TUI, similar to the thinking level component. Add support for rapid toggling via a hotkey.

Higher complexity, more user-friendly

2. Configuration File Option (less complex)

Add a default service tier configuration option that will be applied to models that support it.

Related Documentation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions