OpenAI
OpenAI-compatible chat and text completions, including streams with final usage data.
Costs use the model rates you configure.
COST REGRESSION TESTING / PRIVATE ALPHA
Run the same test cases on two revisions. MarginCI measures supported paid API usage and checks the increase in cost per successful operation against your threshold.
For Node.js and TypeScript operations that run in one process, locally or in CI.
Email hello@marginci.com
| Same workload | MAIN | PR |
|---|---|---|
| Cost per successful operation | $0.098000 | $0.169500 |
| Successful operations | 20/20 | 20/20 |
| OpenAI | $1.820000 | $3.110000 |
| Exa | $0.140000 | $0.280000 |
| Total calculated cost | $1.960000 | $3.390000 |
Synthetic example. Calculated costs are illustrative and may differ from provider charges.
MarginCI — research
Declared workload: 20 cases
Baseline: MAIN
Candidate: PR
BASELINE CANDIDATE
successful 20/20 20/20
openai $1.820000 $3.110000
exa $0.140000 $0.280000
known value $1.960000 $3.390000
cost / success $0.098000 $0.169500
measured regression 72.96%
allowed regression 20.00%
Values follow frozen configured rates / allowed provider estimates; not settled invoice charges.
FAIL
Verdict applies to the declared MarginCI workload. It is not an estimate of unseen production traffic.
Exit: 1
01 / HOW IT WORKS
Test a change to your application with the same inputs, success checks and rates on both sides.
Choose test inputs and the checks that decide whether an operation succeeded.
Use the same workload in isolated copies of the baseline and candidate.
Include spending from failures and retries, then check the increase against your threshold.
Runs in your environment. MarginCI runs on your machine or CI runner. Your application calls its configured API providers. Security and data handling ↗
03 / COMPATIBILITY
Check the provider documentation for supported requests, required usage data and configuration.
OpenAI-compatible chat and text completions, including streams with final usage data.
Costs use the model rates you configure.
v2 batch scraping.
Costs use final reported credits and your configured credit rate.
Supported search requests.
Costs use your configured rate or Exa’s estimate when enabled.
Text generation through the Messages API, including streaming.
Costs use configured token and cache rates.
Text generation through the Gemini Developer API, including streaming.
Costs use configured token and cache rates.
Serverless vector queries.
Costs use reported read units and response size at your configured rates.
Run MarginCI with Node.js 24.21.0 on macOS (Apple silicon) or Ubuntu 24.04 (x64). See Compatibility for exact supported configurations.
The spend guard uses configured costs and request bounds. Provider charges can exceed its limit.
PRIVATE ALPHA
Request access by email. Include a brief description of the operation and the paid APIs you would like to test.