APIMart
Back to all models

GLM-5.3-Flash API

Z.aiModel ID glm-5.3-flashText modelReleased August 26, 2026

Use GLM-5.3-Flash to find the click in a screen recording that breaks checkout, catch a slide whose title runs into the chart, or check the totals in a scanned PDF report.

Max input
1,000,000 tokens
Max output
128,000 tokens
Input → output
Text, Image, Video, File → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

GLM-5.3-Flash API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on GLM-5.3-Flash.

Try GLM-5.3-Flash with your own material

UI bugs from a screen recording

Send GLM-5.3-Flash a short recording of the bug together with the component code, and ask which step breaks and why. Reproduce the bug before applying the fix, then repeat the recorded steps to confirm it’s gone.

Example: Why is the coupon applied twice?

Material

Screen recording
The user taps Apply coupon twice in quick succession; the total drops from $50 to $40, then to $30.
Checkout.tsx
onClick calls applyCoupon(code); the button stays enabled while the request is pending.

PromptWatch the recording and read the code, then explain which step applies the discount twice and propose one fix.

Sample answer · written by hand to show the reasoning

Each tap sends its own applyCoupon request, and the button stays enabled until the first one returns, so the $10 discount is applied twice. Disable the button while the request is pending, and make the server ignore a coupon that is already on the order. Repeat the double tap from the recording to confirm the total stays at $40.

About the GLM-5.3-Flash API

  • Ahead of GLM-5.2 at a fraction of the price

    Z.ai says GLM-5.3-Flash beats GLM-5.2 across benchmarks at about one-tenth the price and approaches Claude Opus 4.8 on coding and agentic tasks. It scores 57 on the Artificial Analysis Intelligence Index v4.1.1.

  • Natively multimodal, built for visual coding

    The first GLM-5 model to read images, video and files natively. Z.ai trained it to render its own pages and slides, look at the result and fix what’s wrong.

  • Always thinks, with three effort levels

    Thinking can’t be turned off. Set reasoning_effort to low, high or max (the default) to trade depth for speed and output tokens.

  • GLM-5.3-Flash API key and access

    You don’t need a separate GLM-5.3-Flash API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID glm-5.3-flash.

GLM-5.3-Flash official benchmark results

Selected results Z.ai published at launch.

  • DeepSWE v1.1

    63.4

    Agentic software engineering. GLM-5.2 scored 46.2 and Claude Opus 4.8 58.0; GPT-5.6 Terra leads at 69.6.

  • Terminal Bench 2.1

    84.3

    Coding tasks in a terminal. GLM-5.2 scored 81.0; Claude Opus 4.8 scores 85.0 and GPT-5.6 Terra 87.4.

  • Toolathlon Verified

    78.4

    Real-world tool use, pass@1 over 3 runs. Ahead of Claude Opus 4.8 (76.2) and GPT-5.6 Terra (74.9); GLM-5.2 scored 59.9.

  • AutomationBench v1.0.6

    48.8

    Business automation workflows. GLM-5.2 scored 26.2 and Claude Opus 4.8 41.0; Gemini 3.7 Flash leads at 52.3.

  • OSWorld 2.0

    59.1

    Operating a computer from screenshots. Ahead of Claude Opus 4.8 (54.8), GPT-5.6 Terra (50.2) and Gemini 3.7 Flash (47.9).

  • OfficeQA Pro

    62.4

    Answering questions from scanned financial PDFs without embedded text. Claude Opus 4.8 scores 48.9.

How to call the GLM-5.3-Flash API

To call GLM-5.3-Flash, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "glm-5.3-flash",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GLM-5.3-Flash access details

Model IDglm-5.3-flash
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

GLM-5.3-Flash API request parameters

GLM-5.3-Flash uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use glm-5.3-flash for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

GLM-5.3-Flash API pricing

The GLM-5.3-Flash API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input0.6Credits~$0.060.57Credits~$0.0570.54Credits~$0.0540.75Credits~$0.07520%
Cached input0.12Credits~$0.0120.114Credits~$0.01140.108Credits~$0.01080.15Credits~$0.01520%
Output2Credits~$0.21.9Credits~$0.191.8Credits~$0.182.5Credits~$0.2520%

Prices are for reference only. View full pricing

Why call GLM-5.3-Flash API through APIMart

  • 20% below official pricing

    GLM-5.3-Flash API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Z.ai's official prices, and cached input costs just $0.012 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GLM-5.3-Flash, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try GLM-5.3-Flash with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Z.ai model should you choose?

Base prices per 1M tokens (USD). Your GLM-5.3-Flash API key works for every model in the table; just change the model parameter.

Differences between Z.ai models
ComparisonGLM-5.3-Flash CurrentGLM-5.3
Best forAgentic coding, Image, video & file input, Open weightsAgentic coding, Long-horizon tasks, Open weights
Input typesText, Image, Video, FileText
Input price$0.06$1.12
Output price$0.2$3.52

GLM-5.3-Flash FAQ

How is GLM-5.3-Flash different from GLM-5.2?

Z.ai says GLM-5.3-Flash outperforms GLM-5.2 at about one-tenth the price, for example 63.4 vs. 46.2 on DeepSWE v1.1 and 48.8 vs. 26.2 on AutomationBench. It is also natively multimodal, reading images, video and files as well as text. On APIMart both use the same endpoint and API key; change the model parameter to switch.

Should I use GLM-5.3-Flash or GLM-5.3?

GLM-5.3-Flash is built for low-cost inference: Z.ai says it uses 3.0× less attention compute and a 4.4× smaller KV cache than GLM-5.3, and calls it the first natively multimodal GLM-5 model. Start with Flash for coding agents, visual tasks and high-volume work, and compare it with GLM-5.3 on your hardest prompts before switching.

Can I turn off thinking on GLM-5.3-Flash?

No. Z.ai’s documentation says GLM-5.3-Flash uses forced thinking, so thinking cannot be disabled. You can set how much it thinks with reasoning_effort: low, high or max, which is the default and the setting Z.ai uses for its benchmarks. Use low for simple requests to save output tokens.

Is GLM-5.3-Flash open source?

Yes. Z.ai publishes the weights on Hugging Face under the MIT license, and the model runs on SGLang, vLLM and TokenSpeed. The open model has 320B parameters with 18B active per token; the GLM 5.3 Flash API lets you call it without hosting it yourself.

Can GLM-5.3-Flash read images, video and files?

Yes. Z.ai lists text, images, video and files as input and text as output. Z.ai trained it to use visual feedback while coding, for example rendering a page or slide and checking it, and it can operate apps through screenshots. It does not generate images, audio or video.

Does GLM-5.3-Flash support context caching?

Yes. Z.ai caches repeated prompt prefixes automatically, with no setup, and reports cached tokens in usage.prompt_tokens_details.cached_tokens. Cache hits are billed at the cached-input rate in the pricing table, so keep long system prompts and shared documents at the start of the request.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select GLM-5.3-Flash in the text category to start exploring.

Which model ID does the GLM-5.3-Flash API use?

Set model to glm-5.3-flash. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of GLM-5.3-Flash?

On APIMart, GLM-5.3-Flash accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

GLM-5.3-Flash can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the GLM-5.3-Flash API cost?

The GLM-5.3-Flash API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.06 per million input tokens and $0.2 per million output tokens. Diamond: $0.054 per million input tokens and $0.18 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.