Does the "Yuan Package" API Forward Requests to Other Vendors' Models?
A guide to separating canary release from model switching, to scientifically testing whether two API endpoints are backed by the same model, and to understanding why "low-price resale" does not hold up under a compute-cost model. It also gives technical teams practical ways to reduce risk.
1. What the Community Debate Actually Says
Some tech communities have recently speculated that, during its canary testing phase, a certain model service actually forwarded requests to another vendor’s model. Others have jokingly described “buying inference quota at a high price and selling it at a low one” as an absurd arbitrage scheme.
Setting the jokes aside, these discussions raise three engineering questions worth taking seriously:
- What does a canary release actually change? Is it a gradual rollout of a new version of the same model, or a switch between different models?
- How can you tell whether two endpoints are backed by the same model? This requires a reproducible method, not a hunch that “the writing style feels similar.”
- Can low-priced inference services be viable economically? If prices fall far below compute cost, does that suggest something else is going on?
These questions are addressed in turn below.
2. What Canary Release Changes: “Version Ramp” vs. “Model Switch”
2.1 The Purpose of Canary Releases
Canary release (also known as progressive delivery) is a gradual rollout strategy. A small share of traffic is first directed to the new version, and metrics such as error rate, latency and business indicators are monitored. Traffic to the new version is then increased step by step. Crucially, the control and treatment sides of a canary should be the old and new versions of the same model.
If the control side is replaced by a model from a different capability tier, the comparison loses its meaning. Any swings in the metrics could then stem from code changes, inference engine upgrades or the model itself, and the cause would be impossible to isolate.
2.2 How the Routing Layer Decides Where Requests Go
An online inference service typically consists of an ingress layer, a routing layer and multiple model replicas. A typical version selection logic looks like this:
import hashlibdef select_version(user_id: str, rollout: float) -> str:"""Use consistent hashing to assign a stable share of users to the newversion, ensuring each user repeatedly hits the same version."""if rollout <= 0:return "v1"if rollout >= 1:return "v2"bucket = int(hashlib.sha256(user_id.encode()).hexdigest(), 16) % 10_000return "v2" if bucket < rollout * 10_000 else "v1"# Early canary stage: 10% of users go to the new version# route = select_version(user_id, rollout=0.1)
The routing layer decides which version and which group of instances a request lands on. This is a different layer from whether the model comes from another provider.
Mature platforms also build in fallback and failover mechanisms. For example, they may switch to a backup model of the same capability tier when the primary model is unavailable. Such mechanisms exist to ensure availability and generally do not change billing rules. However, when providers disclose insufficient information about them, they can easily give rise to misunderstandings.
2.3 Why Models Can Seem to “Look Like” Another Vendor’s
- Converging capabilities: Leading models have grown increasingly close in performance on general tasks, and text generated by different models may all be fluent and coherent.
- Prompts and system templates: Similar prompt templates, fine-tuning data and output conventions make different models sound alike in tone and structure.
- Decoding parameter differences: Changes to streaming output behavior, default temperature and other settings can noticeably alter the writing style. This is often mistaken for a model swap when it is really just a parameter change.
- Overgeneralizing from individual samples: Drawing conclusions from a few similar-looking responses provides no evidence in a statistical sense.
3. How to Scientifically Determine Whether Two Endpoints Are “From the Same Source”
To answer the question “Is it the same model?”, intuition should be turned into testable hypotheses. The core idea is this: if two endpoints are backed by the same model, their output distributions, confidence levels and resource-consumption characteristics should be highly consistent under identical inputs. Only systematic differences that cannot be explained by sampling randomness warrant further investigation.
3.1 Controlling Experimental Conditions
- Fix the prompt and decoding parameters (for example, set temperature to 0), and disable tool calls and web retrieval.
- Keep input length, output length and request rate consistent to avoid triggering rate limits or differences in batching behavior.
- Where possible, compare the two endpoints during the same time window to rule out routing changes caused by traffic peaks.
- Prepare a sufficient sample size for each endpoint (e.g., 300 or more requests per endpoint) and record metadata such as request IDs and timestamps.
3.2 Feature 1: Per-Token Confidence (Log Probability) Distribution
If an endpoint supports returning per-token log probabilities (logprobs), you can send the same prompt to both endpoints multiple times and compare the distribution of the top-probability candidate token for the first output token.
The chi-square goodness-of-fit test can be used for this check: treat the distribution from endpoint A as the expected distribution and test whether the observed distribution from endpoint B differs significantly from it.
import numpy as npfrom scipy.stats import chisquare# obs_b / exp_a: counts of the top-probability candidate token at the first# output position on endpoint B / endpoint A# Category order must match. Consider merging low-frequency categories to# satisfy the test's assumptions.result = chisquare(f_obs=obs_b, f_exp=exp_a)print("Chi-square statistic:", result.statistic, "p-value:", result.pvalue)# If p-value < 0.05, B's distribution deviates significantly from A's.# Investigate differences in model, decoding settings or preprocessing.
When using this method, keep the following in mind:
- The expected frequency of each candidate is generally expected to be at least 5, so low-frequency categories should be merged.
- Apply a significance correction for multiple comparisons, such as the Bonferroni correction.
- A significant p-value only indicates that “the distributions differ.” The effect size should also be considered to judge whether the difference is worth attention.
You can also fit the following regression model:
Δlogprob_i = β0 + ε_i
Here, Δlogprob_i is the difference between endpoint B and endpoint A in the log probability of the top token at position i. After averaging across multiple samples for the same prompt, if the confidence interval of β0 does not contain 0, endpoint B is systematically more “confident” or more “hesitant” than endpoint A. Differences in model size, training data and decoding strategies can all produce such a shift.
3.3 Feature 2: Linear Relationship Between Latency and Output Length
Inference time can be approximated as:
T ≈ a + b × L_out
The intercept a mainly corresponds to queuing wait time and prefill overhead (processing the input), while the slope b represents the average time per generated output token. Fitting the (L_out, T) data for each endpoint and comparing the slopes is far more robust than comparing single-request latencies.
import numpy as npdef fit_token_latency(samples):"""samples: [(number of output tokens, end-to-end latency in seconds), ...]"""x = np.array([s[0] for s in samples], dtype=float)y = np.array([s[1] for s in samples], dtype=float)slope, intercept = np.polyfit(x, y, 1)pred = intercept + slope * xr2 = 1 - np.sum((y - pred) ** 2) / np.sum((y - y.mean()) ** 2)return {"seconds per output token": slope, "intercept (seconds)": intercept, "R2": r2}# Example data (for demonstration only)# print(fit_token_latency([(128, 0.86), (256, 1.12), (512, 1.61), (1024, 2.68)]))
If the fitted lines for the two endpoints nearly overlap, their decoding speed characteristics are consistent. A significant difference in slope could stem from hardware, batching strategy, parallelism or model size.
That said, a similar slope is only supporting evidence. Many providers share similar inference frameworks and hardware resources, so “similar slopes” cannot be treated as direct evidence of “the same model.” In addition, dynamic batching at higher concurrency levels makes latency vary with load, so the analysis above must be carried out under controlled conditions.
3.4 Feature 3: Perplexity and Length Profile
Perplexity measures how “unsurprising” a piece of text is to a model. Select a batch of public texts unrelated to the training data and compute perplexity on each endpoint by summing per-token log probabilities:
PPL = exp(- (1/N) × Σ log p(x_i | x_<i))
For the same model, the perplexity profile (how perplexity changes across different length intervals) should be consistent. If the two endpoints show a persistent and significant perplexity gap on the same set of texts, that is far more convincing than comparing a few generated responses.
3.5 How to Phrase the Conclusion
| Observation | Possible explanation | Suggested action |
|---|---|---|
| All features consistent | Same source likely, but counts only as evidence of consistency | Keep monitoring |
| logprob distributions differ significantly | Differences in model, decoding parameters or input preprocessing | Check parameters and templates |
| Latency slopes differ significantly | Differences in hardware, batching or model size | Verify against the provider’s disclosures |
| Only a few responses look similar | Most likely sampling variation | Increase the sample size |
A more appropriate approach is to verify the model’s source, version and change history directly with the service provider, rather than spreading unverified speculation in communities. When such rumors appear, it usually means that publicly observable information is insufficient. Rather than arguing, it is better to push providers to publish version notes, change logs and public evaluation criteria.
4. Why “Low-Price Resale” Does Not Hold Up: A Look at Compute Costs
The “buy high, sell low” scenario does not hold up because it overlooks a basic fact: inference cost is determined jointly by compute, memory (VRAM), networking and operations. There is no unconstrained arbitrage opportunity.
4.1 How to Calculate the Cost per Token
Cost per token = hourly cost per GPU ÷ (3600 × output tokens per second per GPU)
Throughput is constrained by factors such as batching strategy, context length, parallel splitting and memory bandwidth. The illustrative numbers below only demonstrate the calculation and are not actual prices:
- A GPU’s all-in hourly cost is about RMB 10.
- A single GPU produces about 1,000 output tokens per second.
- The cost per token is then about
10 ÷ (3600 × 1000) ≈ RMB 0.0000028. - This works out to a compute cost of about RMB 2.8 per million output tokens.
Adding network, storage, operations and a reasonable margin, a sustainable price per million output tokens would normally not be lower than the raw compute cost.
| Cost component | Description |
|---|---|
| Compute | GPU/accelerator rental or depreciation; the largest share |
| Bandwidth and traffic | Data transfer for input/output, cross-region calls |
| Operations | Monitoring, scheduling, incident handling |
| Reasonable margin | Funds to support ongoing R&D investment |
If a service’s price is clearly below what this cost structure can support, the more reasonable explanation is usually that throughput has been improved through techniques such as quantization, sparsification, kernel optimization and cache reuse, which lowers unit costs. It is not “buying high and reselling at a loss.”
4.2 Compliance and Sustainability
Reselling API quotas across services can also raise issues with terms of service, cross-border data transfer and invoicing compliance. Such a business model is unsustainable and exposes users to data and compliance risks.
5. Practical Advice for Technical Teams
- Read the version notes: Prefer services that provide model version notes, change logs and clear rollback procedures, with traceable canary release information.
- Build your own evaluation set: Do not rely solely on vendor-claimed numbers. Continuously track output quality with an evaluation set tailored to your business.
- Pay attention to cost structure: When evaluating pricing, look at how the per-million-token rate is defined (e.g., whether input and output are billed separately and whether cache-hit discounts apply), rather than focusing on a single low price.
- Keep observability data: Log requests, latency distributions and error rates so anomalies can be pinpointed quickly rather than through guesswork.
- Treat community rumors rationally: Stay skeptical of unverified information and rely on reproducible test results.
Teams planning to build their own inference service can consider foundational capabilities offered by cloud providers such as Baidu AI Cloud, including general-purpose container platforms, object storage, and monitoring and alerting. These help set up standardized canary release and observability systems. For specific product capabilities and billing rules, refer to the official documentation.
6. Conclusion
The speculation that “canary release means forwarding” stems from a misunderstanding of the release mechanism. To determine where a model service actually comes from, you need a reproducible experimental design and statistical evidence: control experimental conditions, compare logprob distributions, the latency–length relationship and perplexity profiles, and combine these findings with version information disclosed by the provider.
At the same time, inference cost is ultimately determined by compute. Any “low-price resale” story must first pass the test of a cost model before it deserves serious consideration.
