Hy4 Flash vs MiniMax M3.1 Flash: How to measure response latency in customer service retrieval?

Summary: This article uses a reproducible measurement plan to compare the response latency of Hy4 Flash and MiniMax M3.1 Flash in a customer support retrieval scenario.

Bottom line first: As of 2026-11-30, we haven’t run any live measurements, so we don’t rank the two models on speed. To answer “which one is faster,” you’d need to report three metrics separately on the same frozen evidence set: latency to the first visible body block, P95 latency for a complete valid answer, and the availability rate for delivering a valid answer within the target time. All three must use the same samples and the same denominator.

Three more conditions can directly change the conclusion:

  1. Reasoning level: Tencent Hy4 Flash defaults to high, while MiniMax M3.1 Flash defaults to max. Both are reasoning setups, so default-versus-default is only a first-pass baseline.
  2. Access path: Direct vendor access, proxy services such as APIYI, SDKs, and self-hosted deployments all need to be recorded separately. Results only represent that one service comparison under the specific region, deployment, and network conditions.
  3. Definition of the first block: If reasoning fragments are counted as body content, first-block latency will be systematically underestimated.

All sample counts, timestamps, and thresholds in this article are design or hand-worked examples, not measurement results.

hy4-flash-vs-minimax-m3-1-flash-latency-test-en-image-0


Hy4 Flash vs MiniMax M3.1 Flash: Knowledge Map

hy4-flash-vs-minimax-m3-1-flash-latency-test-en-image-1

Diagram note: The main path moves through “define the basis → align parameters → freeze samples → group measurements → unify instrumentation → compute reports.” At the 4.2 threshold check, configurations that don’t meet the bar go back to 2.3 to switch levels and retest, while those that pass enter the main comparison. The three white-box test cases in 4.3 are specifically there to validate the 3.4 parser, keeping the error denominator and percentile basis consistent.

Index

  • Section 1 defines what we’re answering and which time points count — it’s the measurement convention everything later builds on.
  • Section 2 lists the native vendor entry points and parameters, and explains which parts APIYI can cover, giving you runnable configs for Section 3.
  • Section 3 is the hands-on part; work through 3.1 to 3.4 in order. 3.2 and 3.3 are two parallel experiment sets, so do either or both as needed.
  • Section 4 turns raw logs into a report and a selection conclusion. 4.4 explains which report column vendor-published throughput figures belong in.
  • The FAQ is there whenever you need it.

To Know

Term Brief explanation
First visible content block The first SSE chunk in a streaming response that contains displayable body text characters — no heartbeats, role declarations, whitespace, or thinking fragments
P95 The value at the 95th percentile after sorting sample latencies in ascending order, used to capture slow-tail experience
Nearest-rank method A percentile definition that takes the ceil(0.95×n)-th value in ascending order as P95
Open-loop delivery Submitting requests on a fixed arrival schedule, where the submission pace isn’t affected by how fast or slow the service responds
Frozen evidence set A question set with a fixed knowledge-base version, fixed candidate passages, and fixed ranking, used to rule out retrieval fluctuations

1. Two Questions to Answer When Comparing Hy4 Flash and MiniMax M3.1 Flash

1.1 The Two Layers of the Response Latency Comparison

The first layer is the model layer: given the same set of knowledge snippets, which configuration lets users see the body text sooner, and when do they get a correct answer? The second layer is the experience layer: once on-site retrieval and page rendering are put back into the chain, which configuration delivers a better overall experience under the same quality target? The two layers start from different points, and testing them mixed together lets retrieval jitter mask the differences between models.

Even though both vendors are compatible with the Chat Completions protocol, what you get from a direct vendor connection is only a comparison of service under specific regions, deployments, and network conditions—you can’t directly extrapolate that to “the model itself is faster.”

1.2 Three Timing Points for Response Latency

Time the arrival of the first paragraph of body text, the availability of the complete body text, and the normal end of the protocol separately. The report should also include P50/P95, valid answer rate, error rate, and the proportion of valid answers delivered within the target time. Without any one of these, “fast” might just be bought with wrong answers or empty body text.


2. Official Entry Points and Parameters for Hy4 Flash and MiniMax M3.1 Flash

2.1 Hy4 Flash Native Parameters

The model ID on Tencent Cloud TokenHub is hy4-flash. The Base URL for the international site in the Singapore region is https://tokenhub-intl.tencentcloudmaas.com/v1, and the test target is POST /v1/chat/completions. reasoning_effort supports two levels — high and no_think — with high as the default. For streaming requests, send stream: true, and you can use stream_options.include_usage: true to get usage in the final chunk. Read the main text from choices[].delta.content and the reasoning segments from choices[].delta.reasoning_content. The self-deployment example in the open-weight model card puts the reasoning toggle in chat_template_kwargs; that’s a separate entry point and shouldn’t be mixed up with TokenHub’s data.

2.2 MiniMax M3.1 Flash Native Parameters

The Base URL for MiniMax’s international-site OpenAI-compatible interface is https://api.minimax.io/v1, and the model ID is written with its original casing as MiniMax-M3.1-Flash. It likewise uses POST /v1/chat/completions. reasoning_effort has five levels — low, medium, high, xhigh, and max — with max as the default. This model requires adaptive reasoning; turning reasoning off or specifying none will land you in the 400 error scenarios listed in the docs.

The streaming example also separates delta.reasoning_content and delta.content. New integrations can use max_completion_tokens, and can also request stream_options.include_usage. If you switch to its Anthropic-compatible interface instead, the reasoning level must be written as output_config.effort, and event parsing follows an entirely different set of rules.

2.3 First-round and second-round configuration

Item Hy4 Flash (Tencent Cloud TokenHub) MiniMax M3.1 Flash (MiniMax official)
Model ID hy4-flash MiniMax-M3.1-Flash
Base URL (international) tokenhub-intl.tencentcloudmaas.com/v1 api.minimax.io/v1
Thinking level options high, no_think low, medium, high, xhigh, max
Default level high max
Can thinking be turned off? Yes, via no_think No — none or turning it off returns 400
First round (default deployment) high max
Second round (low-latency exploration) no_think low
Content / reasoning fields delta.content / delta.reasoning_content delta.content / delta.reasoning_content
APIYI 2026-11-30 public table Lists hy4-flash (chat) Lists MiniMax-M3, which is not the same model as M3.1 Flash

Table note: both sides have a level named high, but each is defined only within its own product, so they can’t be treated as the same intensity. The point of the second round is to explore usable low-latency modes; only configurations that clear the same experimental quality threshold (see 4.2) make it into the main comparison.

2.4 What APIYI Can Cover

According to APIYI’s model price master table (updated 2026-11-30 11:14 UTC+8), hy4-flash can be called through APIYI apiyi.com via an OpenAI-compatible interface. On MiniMax’s side, the listed model is MiniMax-M3, not the M3.1 Flash discussed in this article, so the main comparison in the sample matrix uses the two vendors’ first-party endpoints.

In real-world engineering, data from calling hy4-flash through APIYI is best kept as its own group. You can use it to evaluate “user-side latency after proxying” and the cost of switching between multiple models, but it shouldn’t be merged statistically with data from direct first-party connections. Data from SDKs, tool consoles, proxies, and self-hosted deployments should all be recorded separately.

🎯 Technical recommendation: If your customer service system already integrates multiple model providers, you can first use APIYI apiyi.com with a single API key to get hy4-flash streaming parsing and instrumentation working. Once you’ve confirmed the parser is correct, connect to the two vendors’ first-party endpoints for the formal comparison. This reduces variables during debugging.


3. Quick Start: Setting Up Latency Measurement for Hy4 Flash and MiniMax M3.1 Flash

3.1 Freeze the Retrieval Samples (Designed, Not Executed)

It’s recommended to prepare 240 anonymized Chinese support tickets, split into six strata of 40 each. For every question, you need to freeze the knowledge base version, the user’s query phrasing, the same set of candidate chunks and their ranking, the paragraph IDs, the response key points, and the conditions under which a refusal is allowed.

Stratum Designed Count Main Focus
Direct answer 40 Answerable with a single paragraph
Paraphrased query 40 Query wording differs from the source knowledge text
Multi-paragraph rules 40 Conditions that must be merged across multiple paragraphs
Conflicting sources 40 Candidate chunks contradict each other
No answer in sources 40 Should correctly refuse instead of fabricating
Needs human handoff 40 Should trigger verification or handoff along the gold-standard path

Here’s a made-up example: Store A’s free-shipping threshold is 99 yuan, but the question implies the order comes from an off-platform channel, while the policy only covers first-party channels. The correct reply should state the scope of applicability and kick off verification. During blind evaluation, look at three things at once: the conclusion of the answer, the limiting conditions, and evidence attribution.

3.2 Model-Level Replay Group

When comparing models and endpoints, the test harness replays the same text chunks, templates, and ordering, with external retrieval and the model’s tool turns disabled. When converting tokens, use the actual usage returned by both providers. With fixed content, the two tokenizers can report different numbers — that’s perfectly normal.

The body text should stay consistent on both sides, for example “short answer plus evidence numbers,” while leaving enough total generation budget for both services. MiniMax’s documentation example shows that when the budget is too small, reasoning can eat up the allowance and leave only an empty body. Follow-up questions, images, and long conversations should each be placed in their own separate group so the workload stays consistent for the main comparison.

3.3 End-to-End Group and Load

The end-to-end group restores the real recall, reranking, evidence packaging, generation, and frontend rendering, but still uses the same frozen knowledge base and retrieval configuration. Both vendors alternately run the same question in pairs, with the order randomly shuffled, and are retested across different time periods. New connections versus reused connections, cache hits versus misses, concurrent queuing versus single concurrency — each must be counted separately. Connection pools, timeouts, concurrency levels, arrival rates, DNS/TLS, and first-packet buffering must also be explicitly recorded.

For load, you can start by measuring a baseline at single concurrency, then set the same arrival sequence based on known business peak periods and raise the submission rate step by step. Only sustained open-loop delivery can reveal the waiting, timeouts, and rate limiting that occur when the same incoming volume is accepted per second. If you only run fixed concurrency, the slower side will naturally reduce its submission rate — that set of results should be labeled a “concurrency baseline.” Connection warm-up, health checks, and formal measurement should be kept separate, with the same number of warm-ups on both sides A and B. When rate limiting occurs, record the rate-limit code, wait strategy, and first failure time together. If requests pass through a reverse proxy, take timestamps at two points — “source stream received” and “render data received on the frontend” — and the gap between the two segments will pinpoint where buffering happens.

3.4 Instrumentation Definitions and a Minimal Example

Every timing measurement uses a monotonic clock inside the same measurement process. The events you need to record are: ticket arrival t0, retrieval evidence ready, model request sent send, HTTP response headers received, first reasoning block, first visible content block first, last content block last, protocol end end, and frontend render complete.

First-segment timing only counts content that contains actual displayable characters. SSE heartbeats, role declarations, whitespace deltas, reasoning chunks, tool arguments, and usage-only tail chunks all get skipped. Since a single SSE chunk can carry multiple tokens, it’s best to name this metric “first visible content block.”

hy4-flash-vs-minimax-m3-1-flash-latency-test-en-image-2

The diagram above is a hand-constructed timing log, and you can use it directly as a recorded replay test for your event parser. By definition, the server first segment is 510 ms, content complete is 990 ms, and the user-side end-to-end figure is 1230 ms. If the reasoning block at 370 ms gets mistaken for content, the first-segment number undercounts by 340 ms.

The minimal example below calls hy4-flash through APIYI. It only separates reasoning from content and times the “first visible content block”:

import os, time
from openai import OpenAI

client = OpenAI(api_key=os.environ["APIYI_KEY"],
                base_url="https://api.apiyi.com/v1")  # APIYI OpenAI-compatible endpoint

send = time.perf_counter_ns()
first = None
stream = client.chat.completions.create(
    model="hy4-flash",
    messages=[{"role": "user", "content": "根据片段[P1]回答:自营订单满多少免运?"}],
    stream=True,
    stream_options={"include_usage": True},
)
for chunk in stream:
    if not chunk.choices:
        continue  # usage-only tail chunk
    text = chunk.choices[0].delta.content or ""
    if first is None and text.strip():
        first = time.perf_counter_ns()
print("首个可见正文块(ms):", (first - send) / 1e6 if first else "缺失")

Whether vendor-specific extension parameters such as reasoning_effort pass through the proxy depends on what the APIYI documentation center says. Data obtained through the proxy is grouped separately and is not merged into the statistics from direct vendor connections.

View the full measurement script (two vendor groups + APIYI control group)
import os, json, math, time
import httpx

GROUPS = {
    "hy4_tokenhub": {
        "base_url": "https://tokenhub-intl.tencentcloudmaas.com/v1",
        "key": os.environ.get("TOKENHUB_KEY"),
        "model": "hy4-flash",
        "extra": {"reasoning_effort": "high"},       # switch to no_think in the second round
    },
    "minimax_origin": {
        "base_url": "https://api.minimax.io/v1",
        "key": os.environ.get("MINIMAX_KEY"),
        "model": "MiniMax-M3.1-Flash",
        "extra": {"reasoning_effort": "max",         # switch to low in the second round
                  "max_completion_tokens": 4096},    # leave enough budget so reasoning doesn't drain the quota
    },
    "hy4_apiyi": {                                   # proxy control group, tracked separately
        "base_url": "https://api.apiyi.com/v1",
        "key": os.environ.get("APIYI_KEY"),
        "model": "hy4-flash",
        "extra": {},
    },
}

def now_ms():
    return time.perf_counter_ns() / 1e6

def measure(group, messages, timeout=30.0):
    g = GROUPS[group]
    body = {"model": g["model"], "messages": messages, "stream": True,
            "stream_options": {"include_usage": True}, **g["extra"]}
    rec = {"group": group, "send": now_ms(), "headers": None, "first_think": None,
           "first": None, "last": None, "end": None, "finish_reason": None,
           "usage": None, "status": None, "error": None, "text": ""}
    try:
        with httpx.Client(timeout=timeout) as c:     # SDK auto-retry disabled: first-attempt basis
            with c.stream("POST", g["base_url"] + "/chat/completions",
                          headers={"Authorization": f"Bearer {g['key']}"},
                          json=body) as r:
                rec["headers"] = now_ms()
                rec["status"] = r.status_code
                for line in r.iter_lines():
                    if not line.startswith("data:"):
                        continue                     # heartbeat and comment lines
                    data = line[5:].strip()
                    if data == "[DONE]":
                        rec["end"] = now_ms()
                        break
                    chunk = json.loads(data)
                    if chunk.get("usage"):
                        rec["usage"] = chunk["usage"]
                    for ch in chunk.get("choices", []):
                        d = ch.get("delta", {})
                        if d.get("reasoning_content") and rec["first_think"] is None:
                            rec["first_think"] = now_ms()
                        txt = d.get("content") or ""
                        if txt.strip():
                            t = now_ms()
                            rec["first"] = rec["first"] or t
                            rec["last"] = t
                            rec["text"] += txt
                        if ch.get("finish_reason"):
                            rec["finish_reason"] = ch["finish_reason"]
    except Exception as e:
        rec["error"] = repr(e)                       # partial output preserved, completion status marked unreliable
    return rec

def classify(rec):
    if rec["error"]:
        return "abnormal_exit"
    if rec["first"] is None:
        return "no_content"
    if rec["finish_reason"] == "length":
        return "length"
    if rec["finish_reason"] != "stop" or rec["end"] is None:
        return "unknown_terminal"
    return "pending_review"                          # then handed off to evidence and business judgment

def p95_nearest_rank(values):
    v = sorted(values)
    return v[math.ceil(0.95 * len(v)) - 1] if v else None

🚀 Quick start: the hy4_apiyi group in the script can run directly on APIYI apiyi.com’s free trial credits for new users. Get the three white-box test cases from 4.3 working with it first, then switch over to the vendor’s own endpoint.

4. How to Calculate the Response Latency Report for Hy4 Flash and MiniMax M3.1 Flash

4.1 P95 and Denominators

Calculate the first-segment first−send, the complete-body last−send, the protocol-complete end−send, and the user-side overall display-complete−t0 separately. At the same time, record the HTTP status, response ID, finish reason, whether usage was fully returned, output length, and review status. A response is considered valid only when it meets all three conditions: natural termination, supporting evidence, and a passing business judgment. length, no body, format failure, and unknown terminal state are each counted as a separate error category.

During measurement, turn off the SDK’s automatic retries. First measure the result of the initial attempt, then track the product’s retry policy as a separate group. Timeout samples must not be filled in as 0, nor removed from the total submitted count. For P95, use the pre-agreed percentile algorithm: the nearest-rank method, taking the ceil(0.95×n)-th value in ascending order. Report the sample size separately for first-segment latency and full latency, and calculate P95 for the qualified-response subset separately.

Report column Hy4 Flash MiniMax M3.1 Flash Definition note
P50 / P95 for first visible content block Not measured Not measured first−send, include sample size
P95 for complete valid responses Not measured Not measured Qualified subset only, include sample size
Valid answer rate Not measured Not measured Valid count ÷ total submitted count
Valid proportion within deadline Not measured Not measured When timeouts and errors are high, look at this column first
Error categories Not measured Not measured length, no body, format, unknown terminal state
Vendor-reported throughput No same-basis value disclosed See 4.4 Different start and end points; not included in the conclusion column

Table note: “Not measured” means this article has not yet performed the measurement. Vendor data is cited only in a dedicated column and does not participate in the ranking.

4.2 Selection thresholds (illustrative)

You could set the initial thresholds like this: valid-response rate no lower than 95%, first-segment P95 no more than 1 second, and valid-response P95 no more than 4 seconds. These numbers are just examples, so adjust them to your business goals. If the question set includes phrasings where evidence is missing, also report the wrong-answer rate and correct-refusal rate separately.

Before scoring, agree that the evidence ID must fall within the candidate set sent along with the request. If a response cites evidence but extrapolates discounts or channel permissions to other products, the entire response still counts as invalid. If the gold standard allows verifying the channel or escalating to a human, requesting the necessary information through the designated path can also count as valid. We recommend outputting per-question side-by-side scores and disagreement records, resampling by question number as the unit, and estimating intervals for the latency difference and pass-rate difference between the two schemes.

Reports should also be stratified by difficulty and cache status, and include same-question latency differences across time periods and their intervals. Also note that using one set of questions to choose a tier and then another frozen set to compare the selected configuration helps avoid treating random advantages encountered during tier selection as formal conclusions.

hy4-flash-vs-minimax-m3-1-flash-latency-test-en-image-3

4.3 Three White-Box Replay Test Cases

Before the formal measurement, validate the parser with three event replays:

  1. Thinking plus normal content: Check that the first segment comes from the content block, not the thinking block.
  2. Only thinking, but the output limit is reached: The first segment should be recorded as missing, and the case judged to have no valid response.
  3. Some content present, but the connection exits abnormally: Record the partial output and the time of the anomaly, and mark completion status as unreliable.

These three cases make sure the client’s error denominator and percentile definitions line up, and keep you from manually timing things in the chat UI or mistaking the startup animation for model text.

4.4 Which Column for Vendor-Published Throughput

In its 2026-10-19 release announcement, MiniMax disclosed that M3.1 Flash can exceed 200 tokens/s in everyday output and has a median output speed above 170 tokens/s. As its FAQ explains, this timing window runs from the first token to the last token, which is not the same as the start and end points of “the user clicks submit to seeing the content.” So the report should cite these figures in the “vendor-published throughput” column, while the conclusions column should only contain the four metric groups measured under local definitions: first segment, completion, quality, and error.

Frequently Asked Questions (FAQ)

Q1: Which has lower response latency, Hy4 Flash or MiniMax M3.1 Flash?

There’s no apples-to-apples benchmark yet, so we can’t rank them. To reach a conclusion, you’d need to measure, for each model on the same frozen evidence set, the first visible body chunk, the P95 for complete valid responses, and availability within the deadline—and state the thinking level and access entry point used.

Q2: Why can’t we just compare using MiniMax’s published tokens/s?

That number is timed from the first token to the last token. It includes neither queueing nor waiting for the first chunk, and its start and end points differ from user-perceived latency in customer service scenarios. It should only go in the report’s “vendor-published throughput” column as a reference.

Q3: Can we just turn off thinking for both and compare that way?

No—you can’t disable thinking symmetrically. Hy4 Flash supports `no_think`, but MiniMax M3.1 Flash requires adaptive thinking; specifying `none` returns a 400, and the lowest setting available is `low`. So this comparison is between “their respective short-latency modes,” and both must first meet the same quality threshold.

Q4: Can I test both models at the same time through APIYI?

Based on the public table as of 2026-11-30, APIYI apiyi.com offers `hy4-flash`, while the MiniMax side lists a different model, `MiniMax-M3`. So the main comparison should use the two vendors’ native entry points, and APIYI data should be counted separately as a proxy control group. The platform’s model list is authoritative for the latest available models.

Q5: Why is first-chunk latency called “the first visible body chunk”?

A single SSE chunk may contain multiple tokens, and the stream also includes heartbeats, role declarations, and thinking fragments. This naming makes it clear that timing starts only when a body chunk containing displayable characters arrives.

Q6: How should timed-out requests be counted?

Timed-out requests stay in the total submitted count. You can’t enter 0 for them, and you can’t delete them. When there are many errors, look first at “valid responses within target time ÷ total submitted.” During debugging, you can use APIYI apiyi.com’s free quota to validate this denominator logic first.


5. How to Validate the Hy4 Flash vs MiniMax M3.1 Flash Comparison

Before you officially release the report, check the following items one by one:

  • Did both sides use the same batch of frozen candidate segments, with the thinking tier and entry point recorded?
  • Did the parser pass the three white-box test cases from 4.3?
  • Do the first-segment, full P95, and availability figures come from the same evidence set and the same denominator?
  • Is vendor throughput data kept in its own separate column?

Only when all four are satisfied can you write, dimension by dimension, “who is faster and under what conditions.” During the preparation stage, you can first use APIYI’s apiyi.com unified interface to get the hy4-flash instrumentation pipeline running end to end, then connect to both vendors’ native entry points to run the formal matrix.


References

  1. Tencent Cloud Hy API Guide: Hy4 Flash invocation instructions (updated 2026-11-25)
    • Link: tencentcloud.com/document/product/1300/80695
  2. Tencent Cloud Deep Reasoning: documentation for the reasoning_effort tiers (updated 2026-11-16)
    • Link: tencentcloud.com/document/product/1300/80637
  3. TokenHub Chat protocol fields: streaming field definitions
    • Link: cloud.tencent.com/document/product/1823/135872
  4. Tencent Hy4-flash model card: self-deployment example
    • Link: huggingface.co/tencent/Hy4-flash
  5. MiniMax model invocation and reasoning: thinking tiers and the 400 scenario
    • Link: platform.minimax.io/docs/guides/text-generation
  6. MiniMax OpenAI-compatible interface: Base URL and streaming example
    • Link: platform.minimax.io/docs/api-reference/text-openai-api
  7. MiniMax M3.1 Flash release post and TPS definition: 2026-10-19 release post and FAQ
    • Link: minimax.io/blog/minimax-m31f, platform.minimax.io/docs/faq/about-apis
  8. Python monotonic timer and NVIDIA AIPerf metrics reference
    • Link: docs.python.org/3/library/time.html, docs.nvidia.com/aiperf
  9. APIYI model price master table: updated 2026-11-30 11:14 UTC+8
    • Link: docs.apiyi.com/models

Author: APIYI Technical Team
Technical discussion: Feel free to contact us through the APIYI apiyi.com homepage; more integration resources are available at the docs.apiyi.com documentation center.

Leave a Comment