Case Study: Per-Job Models Cannot Use a Token Ratio by Default
A task model without a fixed price may fall back to token pre-authorization; mixing USD and CNY also corrupts reports.
Bottom line: verify before integrating
Per-job models need unit, fixed price, settlement, failure, cancellation and retry rules; block incomplete release.
A relay is not magic URL replacement. A reliable integration verifies protocol, model ID, authentication, errors, usage and billing together. Anything without evidence remains a hypothesis, not a stable capability.
Confirm the contract
Per-job models need unit, fixed price, settlement, failure, cancellation and retry rules; block incomplete release.
Start with a low-risk probe: fixed prompt, fixed model, short output and no sensitive data. Keep HTTP status, returned model, request ID, stop reason, usage, latency and final charge. This separates model, gateway, network and billing failures.
Actionable order
- Path: inspect the SDK’s final URL and avoid duplicated or missing version paths.
- Identity: check auth headers, key source and permissions; never put real keys in code or logs.
- Capability: test tools, images, reasoning and long context separately.
- Cost: separate input, output, cache, per-job work, failures and retries; aggregate by request ID.
- Recovery: use different policies for timeouts, limits, server errors and invalid requests.
Common traps
An accepted model name does not prove routing; a listening process does not prove container reachability; a low price does not prove low task cost; a successful request does not prove tools or long history work. Preserve the original error class and change one variable at a time.
Final checklist
- Give every model an ID, protocol and capability fields.
- Give every call a request ID, usage and explainable charge.
- Isolate failures to channel plus model.
- Make keys revocable and prices traceable.
Build evidence before increasing traffic.
Sources & attribution
This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.
- New API — QuantumNous · accessed 2026-11-14Note:Relevant facts and troubleshooting guidance are based on this public source.
One key for Claude, GPT and 50+ models
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.