GLM-4.7 vs GPT OSS 20B

    Comparison

    As of August 20, 2026, GPT OSS 20B is 91% cheaper per million tokens than GLM-4.7. GLM-4.7 is $0.60 / $2.20 per million input/output tokens versus GPT OSS 20B at $0.05 / $0.20. Sources: https://docs.z.ai/guides/overview/pricing and https://developers.openai.com/api/docs/pricing

    Sources: Z AI pricing (https://docs.z.ai/guides/overview/pricing); OpenAI API pricing (https://developers.openai.com/api/docs/pricing)

    GLM-4.7

    Z AI

    $2.80blended / 1M

    Input

    $0.60

    Output

    $2.20

    202.8K ctx|Open Source
    91%
    cheaper
    Better value

    GPT OSS 20B

    OpenAI

    $0.25blended / 1M

    Input

    $0.05

    Output

    $0.20

    131.1K ctx|Open Source
    Save $2.55 per million tokens by choosing GPT OSS 20B over GLM-4.7.

    GLM-4.7 vs GPT OSS 20B comparison

    Token pricing, specs, and benchmarks side by side

    Metric
    GLM-4.7
    GPT OSS 20B
    Provider
    Provider
    Z AI
    OpenAI
    License
    Open Source
    Open Source
    Release Date
    2025-12-22
    2025-08-05
    Pricing (per 1M tokens)
    Input Price+1100%
    $0.60
    $0.05
    Output Price+1000%
    $2.20
    $0.20
    Blended (1M + 1M)
    $2.80
    $0.25
    Model Details
    Context Window
    202.8K
    131.1K
    Max Output Tokens
    131.1K
    32.8K
    Knowledge Cutoff
    N/A
    N/A
    Throughput
    N/A
    1000 tok/s
    Benchmarks
    42.8%
    10.9%
    85.7%
    71.5%
    83.3%
    68.9%
    82.2%
    80.4%
    45.1%
    31.5%
    95.7%
    86.0%
    94.2%
    84.3%
    85.3%
    66.7%
    24.8%
    84.9%
    84.9%
    74.3%
    46.4%
    53.1%
    1.7%
    42.5%
    7.6%
    32.8%
    93.7%
    82.9%
    68.6%
    88.2%
    89.0%
    84.3%
    71.6%
    47.7%
    87.4%
    68.8%
    63.7%
    Benchmark Wins
    GLM-4.7 9|3 GPT OSS 20B

    Verdict

    GLM-4.7 vs GPT OSS 20B: the bottom line

    GPT OSS 20B offers significantly lower pricing, while GLM-4.7 leads on benchmark performance. Your choice depends on whether cost efficiency or raw capability matters more for your use case.

    GLM-4.7 vs GPT OSS 20B FAQ

    Which is cheaper, GLM-4.7 or GPT OSS 20B?

    As of August 20, 2026, GPT OSS 20B is 91% cheaper on blended LLM API pricing. GPT OSS 20B costs $0.05 per million input tokens and $0.20 per million output tokens ($0.25 blended 1M-in + 1M-out). GLM-4.7 costs $0.60 / $2.20 per million tokens ($2.80 blended). Sources: https://docs.z.ai/guides/overview/pricing and https://developers.openai.com/api/docs/pricing. The cheapest LLM for your app still depends on how many output tokens you generate.

    How much does GLM-4.7 vs GPT OSS 20B cost per million tokens?

    GLM-4.7 Z AI API pricing is $0.60 input and $2.20 output per million tokens via Z AI. GPT OSS 20B OpenAI API pricing is $0.05 input and $0.20 output per million tokens via OpenAI. Use those four numbers, not ChatGPT Plus or Claude Pro subscription prices, when you are comparing APIs.

    Which is better for coding, GLM-4.7 or GPT OSS 20B?

    GLM-4.7 has a published SWE-bench Verified score of 73.8%. GPT OSS 20B does not have that eval on this page yet.

    What is the context window for GLM-4.7 vs GPT OSS 20B?

    GLM-4.7 supports a 203K token context window, while GPT OSS 20B supports 131K tokens. GLM-4.7 offers a larger context window. Filling a larger window bills more input tokens, so the cheaper-per-million model can still cost more on long documents.

    Which model performs better on benchmarks, GLM-4.7 or GPT OSS 20B?

    GLM-4.7 leads on 9 of 12 shared benchmarks versus GPT OSS 20B's 3 wins. Check the comparison table for GPQA Diamond, SWE-bench, MMLU, HLE, and the other evals we track. Token price and benchmark score together are the usual LLM comparison, not either number alone.

    Is GLM-4.7 or GPT OSS 20B better for production use?

    Both GLM-4.7 and GPT OSS 20B are production API models. For cost-sensitive production traffic, GPT OSS 20B has better economics on the blended 1M-in + 1M-out scale. For maximum capability, weight the benchmark table for your domain. Many production stacks route cheap models for drafts and a frontier model for the hard turn, which is usually cheaper than sending everything to the expensive API.

    Can I switch between GLM-4.7 and GPT OSS 20B in my app?

    Yes. Call GLM-4.7 through Z AI and GPT OSS 20B through OpenAI with separate API keys, or through a gateway that already wraps both. Keep prompts in tokens, not characters, when you estimate the invoice. AnotherWrapper templates can swap providers without rewriting auth and billing.

    How accurate is this GLM-4.7 vs GPT OSS 20B pricing data?

    List rates are the latest published Z AI API pricing and OpenAI API pricing, quoted per million tokens. Official rate sheets: https://docs.z.ai/guides/overview/pricing and https://developers.openai.com/api/docs/pricing. Prompt caching, batch APIs, and committed-use discounts can change the invoice. Benchmark scores are from official publications and independent evals, updated as new numbers land.

    What is the output token limit for GLM-4.7 and GPT OSS 20B?

    GLM-4.7 supports up to 131K output tokens per request, while GPT OSS 20B supports up to 33K output tokens. Output tokens are usually the expensive half of API pricing, so a higher max output cap is a capability, not a discount.

    Which model has better throughput, GLM-4.7 or GPT OSS 20B?

    GPT OSS 20B has a measured throughput of approximately 1000 tokens/second. Throughput data for GLM-4.7 is not yet available. Throughput (tokens per second) and time-to-first-token are why two models with the same per-million-token price can still feel different in chat and agents.

    How do I switch the models in this GLM-4.7 vs GPT OSS 20B comparison?

    Use the model pickers at the top of this LLM comparison. Search any model in the index and the URL updates. Open GLM-4.7 or GPT OSS 20B from the sidebar for the single-model API pricing page, or go back to the LLM pricing table to sort by cheapest blended cost.

    GLM-4.7 vs GPT OSS 20B pricing

    This comparison covers API pricing, context window, throughput, and benchmark scores. GLM-4.7 costs $0.60/M input and $2.20/M output. GPT OSS 20B costs $0.05/M input and $0.20/M output.

    Rank both on the LLM leaderboard, SWE-bench, and Humanity's Last Exam.

    The index

    All Large Language Models

    280 models across 33 providers. Search or jump to a lab — every model page stays linked here.

    Baidu

    1 models

    Inception

    1 models

    inclusionAI

    1 models

    LG AI Research

    1 models

    Nous Research

    1 models

    Sakana AI

    1 models

    StepFun

    1 models

    Tencent

    1 models

    Thinking Machines

    1 models

    Unisound

    1 models

    Upstage

    1 models

    Next step

    You found the model. Now ship the product.

    Auth, billing, and the API layer are already decided. Fork 8 finished AI apps, or have us build the first version with you.