OpenCodex
glm

GLM-4-Flash

glm

Fast and lightweight version of GLM-4.

输入价格

0.40 /百万

输出价格

0.40 /百万

上下文窗口

8k

分类

国产模型

能力

快速便宜中文

API 配置

基础 URL

https://opencodex.hk/api/v1

模型 ID

glm-4-flash

快速开始

复制以下代码,快速集成到你的应用中

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://opencodex.hk/api/v1",
  apiKey: process.env.OPENCODEX_API_KEY,
});

const response = await client.chat.completions.create({
  model: "glm-4-flash",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(response.choices[0].message.content);

准备好试用 GLM-4-Flash 了吗?

从500免费积分开始,只为您使用的部分付费。