Skip to content

runapi-ai/glm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLM API Skill for RunAPI

Configure OpenAI-compatible clients to use GLM models on RunAPI.

Model Reference | Skill Repo | All Models

skills.sh ClawHub License


Call the GLM API through RunAPI with the official OpenAI SDK or any OpenAI-compatible client. Point clients at https://runapi.ai/v1, send glm-5.1, glm-5-turbo, glm-5, glm-4.7, glm-4.6, glm-4.5, or glm-4.5-air, and pay through one RunAPI balance. This skill teaches Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents how to wire GLM requests through RunAPI.

The canonical agent file is skills/glm/SKILL.md.

Install the skill

npx skills add runapi-ai/glm -g

Or paste this prompt to your AI agent:

Install the glm skill for me:

1. Clone https://github.com/runapi-ai/glm
2. Copy the skills/glm/ directory into your
   user-level skills directory (e.g. ~/.claude/skills/
   for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.

Use GLM on RunAPI

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_RUNAPI_TOKEN",
    base_url="https://runapi.ai/v1",
)

response = client.chat.completions.create(
    model="glm-5.1",
    messages=[{"role": "user", "content": "Hello, GLM!"}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "YOUR_RUNAPI_TOKEN",
  baseURL: "https://runapi.ai/v1",
});

const response = await client.chat.completions.create({
  model: "glm-4.6",
  messages: [{ role: "user", content: "Hello, GLM!" }],
});
console.log(response.choices[0].message.content);

Get a RunAPI API Key at https://runapi.ai/api_keys.

Supported GLM models

Model ID Notes
glm-5.1 Latest GLM chat workloads
glm-5-turbo Faster GLM chat
glm-5 General GLM 5 requests
glm-4.7 GLM 4.7 compatibility
glm-4.6 Stable GLM 4.6 requests
glm-4.5 GLM 4.5 compatibility
glm-4.5-air Lightweight GLM 4.5 requests

Routing

Agent rules

  • Keep API keys in OPENAI_API_KEY or your secret manager; never inline them in commits or shell history.
  • Stream long responses (stream: true) so the agent can release the terminal/IO loop early.
  • For pricing, rate-limit, and commercial-usage answers, link to https://runapi.ai/models/glm rather than this README.

License

Licensed under the Apache License, Version 2.0.

About

RunAPI GLM API skill for Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors