Missing Session Cost for New AWS Bedrock Models #2111

Closed
opened 2026-02-16 17:34:12 -05:00 by yindo · 6 comments
Owner

Originally created by @FarrukhCyber on GitHub (Oct 14, 2025).

Originally assigned to: @rekram1-node on GitHub.

Hi,
I'm using qwen3-coder-480b from aws bedrock. This model is not in models.dev so I have defined it in global opencode.config. While using opencode with this model, it shows context usage on top right corner but doesn't display the price which should have been there according to docs.

Can you please guide me how to show price as well?

Image
Originally created by @FarrukhCyber on GitHub (Oct 14, 2025). Originally assigned to: @rekram1-node on GitHub. Hi, I'm using` qwen3-coder-480b` from aws bedrock. This model is not in `models.dev` so I have defined it in global `opencode.config`. While using opencode with this model, it shows context usage on top right corner but doesn't display the price which should have been there according to docs. Can you please guide me how to show price as well? <img width="2757" height="462" alt="Image" src="https://github.com/user-attachments/assets/bf80759e-2315-4ada-8d2d-8a8cfe165943" />
yindo closed this issue 2026-02-16 17:34:12 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2804: This issue specifically asks about viewing usage/cost when using Amazon Bedrock, which is the same underlying problem you're experiencing with the missing price display for AWS Bedrock models

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 14, 2025): This issue might be a duplicate of existing issues. Please check: - #2804: This issue specifically asks about viewing usage/cost when using Amazon Bedrock, which is the same underlying problem you're experiencing with the missing price display for AWS Bedrock models Feel free to ignore if none of these address your specific case.
Author
Owner

@FarrukhCyber commented on GitHub (Oct 14, 2025):

This thread doesn't explain the issue.

@FarrukhCyber commented on GitHub (Oct 14, 2025): This thread doesn't explain the issue.
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

@FarrukhCyber you will need to add the cost param to your model definition (here they are all zeroed out but you could replace with the real values).

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "amazon-bedrock": {
      "models": {
        "qwen.qwen3-coder-480b-a35b-v1:0": {
          "name": "Qwen3 Coder 480b A35B instruct",
          "limit": {
            "context": 262144,
            "output": 66536
          },
          "cost": {
            "cache_read": 0,
            "cache_write": 0,
            "input": 0,
            "output": 0
          }
        }
      }
    }
  }
}

We should update models.dev tho ik you had that other issue but ill try to add those models for you

@rekram1-node commented on GitHub (Oct 14, 2025): @FarrukhCyber you will need to add the cost param to your model definition (here they are all zeroed out but you could replace with the real values). ``` { "$schema": "https://opencode.ai/config.json", "provider": { "amazon-bedrock": { "models": { "qwen.qwen3-coder-480b-a35b-v1:0": { "name": "Qwen3 Coder 480b A35B instruct", "limit": { "context": 262144, "output": 66536 }, "cost": { "cache_read": 0, "cache_write": 0, "input": 0, "output": 0 } } } } } } ``` We should update models.dev tho ik you had that other issue but ill try to add those models for you
Author
Owner

@FarrukhCyber commented on GitHub (Oct 14, 2025):

oh Thank you!!
Now I know how to completely set config file for new models so that's fine. It's tedious to keep the models.dev updated considering the frequent release of new models :")

@FarrukhCyber commented on GitHub (Oct 14, 2025): oh Thank you!! Now I know how to completely set config file for new models so that's fine. It's tedious to keep the models.dev updated considering the frequent release of new models :")
Author
Owner

@FarrukhCyber commented on GitHub (Oct 14, 2025):

@rekram1-node just a quick question, the input and output prices should be in /1000 tokens or /Million ?

@FarrukhCyber commented on GitHub (Oct 14, 2025): @rekram1-node just a quick question, the input and output prices should be in /1000 tokens or /Million ?
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

@FarrukhCyber per million

@rekram1-node commented on GitHub (Oct 14, 2025): @FarrukhCyber per million
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2111