Skip to content

chore: update stepfun pricing#2905

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
oskarkocol:chore/stepfun-pricing-2026-06-29
Jun 29, 2026
Merged

chore: update stepfun pricing#2905
rekram1-node merged 1 commit into
anomalyco:devfrom
oskarkocol:chore/stepfun-pricing-2026-06-29

Conversation

@oskarkocol

@oskarkocol oskarkocol commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Inspired by: Aiden's #2902

I'll start by inventorying the stepfun provider directory and finding the Narev provider mapping in parallel.
The Narev provider_id is `stepfun`, matching the directory. Let me read all the model TOML files and fetch Narev prices in parallel.
Now let me analyze the data. I have Narev pricing for two models. Let me check the metadata file for `step-3.7-flash` since that provider TOML uses `base_model`.
Now I have a complete picture. Let me analyze the Narev pricing against the catalog:

**Narev pricing (per token → per million tokens):**

| Model | input | output | cache_read |
|---|---|---|---|
| `step-3.5-flash` | 1e-7 → 0.1 | 3e-7 → 0.3 | 2e-8 → 0.02 |
| `step-3.7-flash` | 2e-7 → 0.2 | 1.15e-6 → 1.15 | 4e-8 → 0.04 |

**Comparison with catalog:**
- `step-3.5-flash`: catalog has input=0.1, output=0.3, cache_read=0.02 → **all match, no change**
- `step-3.7-flash`: catalog has input=0.19, output=1.13, cache_read=0.04 → **input and output differ, needs update**
- `step-2-16k`: no Narev pricing → skip
- `step-1-32k`: no Narev pricing → skip
- `step-3.5-flash-2603`: Narev pricing is null (enterprise only) → skip

Only `step-3.7-flash.toml` needs updating. Since it uses `base_model` and inherits `last_updated` from the metadata file, I'll add `last_updated` to the provider TOML to reflect the cost change (today: 2026-06-29).
Let me verify the edit:
The edit is correct. Let me verify my conversions one final time against the raw Narev values:

- `step-3.7-flash` prompt: `2e-7` × 1,000,000 = **0.2** ✓ (was 0.19)
- `step-3.7-flash` completion: `0.00000115` × 1,000,000 = **1.15** ✓ (was 1.13)
- `step-3.7-flash` input_cache_read: `4e-8` × 1,000,000 = **0.04** ✓ (unchanged)

## Summary

**Provider checked:** `stepfun` (Narev `provider_id`: `stepfun` — exact match)

**Files changed (1):**
- `providers/stepfun/models/step-3.7-flash.toml` — updated `input` 0.19 → 0.2 and `output` 1.13 → 1.15 (per Narev prompt `2e-7`/token and completion `1.15e-6`/token). `cache_read` (0.04) was already correct. Added `last_updated = "2026-06-29"` to the provider TOML since it uses `base_model` and inherits `last_updated` from the metadata file (which is out of scope to edit).

**Files skipped (4):**
- `step-3.5-flash.toml` — Narev pricing (input 0.1, output 0.3, cache_read 0.02) exactly matches the catalog; no change needed.
- `step-3.5-flash-2603.toml` — Narev returns `pricing: null` ("enterprise plans only"); skipped per scope rules.
- `step-2-16k.toml` — no matching Narev model/pricing row; could not map safely.
- `step-1-32k.toml` — no matching Narev model/pricing row; could not map safely.

**Could not map safely:** `step-2-16k` and `step-1-32k` have no public Narev pricing entries, so they were left unchanged.
input = 0.19
output = 1.13
input = 0.2
output = 1.15

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oskarkocol oskarkocol marked this pull request as ready for review June 29, 2026 06:35
@rekram1-node rekram1-node merged commit bf21665 into anomalyco:dev Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants