Pay as you go
From $20
Best for
- Production projects
- Fast iteration & scaling
- Startups & indie devs
What's included
- Access to all models
- No usage limits
- Access to Playground
- Pay with crypto
- Pay only for what you use
- Priority human support
Get an AI/ML API key and call GLM 5.3 and other GLM models with the Universal AI SDK. Up to 30% off right now, no promo code. Pay as you go from one balance.
Write a Python function that removes duplicates from a list and keeps the order.
GLM 5.3GLM 5.3 FlashGLM 5.4GLM 5.2 Fast PreviewGLM 5.1
Here is a short version. It keeps the first copy of each item:
def dedupe(items: list) -> list:
return list(dict.fromkeys(items))A dict keeps insertion order, so the items stay where they were
GLM is typing
Trusted by top teams
GLM models on AI/ML API with today's discounts, priced per 1M tokens. One key calls any row.
Sign up with Google, GitHub or email. If you already have an account, log in.

Open Billing and add funds. You pay as you go and each request draws on this balance.
Open API keys and choose Create API Key. Name it, set a spending limit and store it on your server.
Open the Playground, pick a GLM model and type a message. To call it from code, use your key with a supported SDK.
Write a haiku about the ocean.
GLM 5.3GLM 5.3 FlashGLM 5.4GLM 5.2 Fast PreviewGLM 5.1
Waves fold into foam,
the moon pulls a silver thread,
shells keep the old songs
GLM is typing
- OPENAI_API_KEY- ANTHROPIC_API_KEY- GEMINI_API_KEY+ AIML_API_KEYUse GPT, Claude and other AI models with the SDK. Switch models without building a separate integration.
Start small and scale on the same API as your traffic grows
From $20
Custom
Create an AI/ML API account, add credit, then open API keys and choose Create API Key. The same key calls every GLM model. Follow the setup guide.
No. You get an AI/ML API key and call GLM models through api.aimlapi.com. A key from Zhipu AI's own platform works only with their API, and one can't replace the other.
You pay per token from your AI/ML API balance. GLM 5.3 is 20% off: $1.12 for 1M input tokens instead of $1.40, and $3.52 for 1M output instead of $4.40. GLM 5.3 Flash is $0.12 and $0.40. See all GLM prices.
Yes. Set base_url to https://api.aimlapi.com/v1 and pass your AI/ML API key; GLM model IDs start with zhipu/, z-ai/ or alibaba/. See supported SDKs.
Add https://mcp.aimlapi.com/mcp as a remote MCP server and sign in through the browser. Your agent can then run AI/ML API models and check your balance. Read the MCP guide.
GLM 5.3 for reasoning and long tasks, GLM 5.3 Flash for fast, low-cost chat with image and video input, GLM 5.4 for coding.
Store the key in a server-side environment variable. Keep it out of browser code and public repositories, and set a spending limit in your account.