Thanks for the report, and for the run IDs.
As you know, “Composer 2.5” has two variants: a standard one and a faster, higher-priced one (“fast”). When you pass just the model id (“composer-2.5”) with no parameters, the API resolves it to the model’s default variant, which is the fast one. So your debug shows “composer-2.5” (the id you sent) while the dashboard shows “composer-2.5-fast” (the variant it resolved to and billed). The desktop app sends the specific variant you pick, which is why it bills as standard there.
You can control this from the SDK by passing the variant explicitly as follows:
TypeScript (@cursor/sdk):
model: { id: "composer-2.5", params: [{ id: "fast", value: "false" }] }
Python (cursor-sdk):
from cursor_sdk import ModelSelection, ModelParameterValue
model = ModelSelection(id="composer-2.5", params=(ModelParameterValue(id="fast", value="false"),))
REST (/v1/agents):
"model": { "id": "composer-2.5", "params": [{ "id": "fast", "value": "false" }] }
Please try this, and if it is not billing correctly, follow up here, and we’ll take another look!