glm-5.3-flash — 価格・コンテキスト・性能

glm-5.3-flash は Z.AI のモデルで、コンテキスト 1M、Reasoning, Tools, Files, Open Weights, Vision に対応します。入力 $0.15、出力 $0.50(100 万トークンあたり)。

概要

提供元Z.AI
コンテキスト1M
対応機能Reasoning, Tools, Files, Open Weights, Vision
API形式openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
課金計算式p * 0.15 + cr * 0.03 + cc * 0 + c * 0.5
Native multimodal GLM model for efficient coding and long-horizon agent tasks

価格

プラン倍率入力出力キャッシュ入力説明
基準価格1×$0.15$0.50$0.03
Eco0.3×$0.05$0.15$0.009Standard — standard reasoning, moderate stability.
default0.6×$0.09$0.30$0.02Standard — standard reasoning, moderate stability.
Plus1×$0.15$0.50$0.03High — strong reasoning, stable.
Pro2×$0.30$1.00$0.06Enterprise — full reasoning, high stability.
Max4×$0.60$2.00$0.12Premium — max reasoning & stability.

このモデルで有効なグループのみ掲載しています。

パフォーマンス

API エンドポイントhttps://api.airai.cc/v1
OpenAI 互換OpenAI-compatible

よくある質問

glm-5.3-flash の料金はいくらですか?
入力 $0.15、出力 $0.50(100万トークンあたり)。
glm-5.3-flash のコンテキスト長は?
glm-5.3-flash のコンテキストは 1M です。1 リクエストあたりの入力と出力の合計トークン上限です。
コードから glm-5.3-flash を呼び出す方法は?
base_url を https://api.airai.cc/v1 に、model を glm-5.3-flash に設定してください。API は OpenAI と完全互換です。
glm-5.3-flash が 429 を返すのはなぜ?
429 はレート制限の応答です。並行数を下げ、バックオフ付きで再試行するか、クォータの大きいプランに切り替えてください。

モデル比較

Model提供元入力出力コンテキスト
glm-5.3-flashZ.AI$0.15$0.501M
glm-5.3Z.AI$1.40$4.401M
glm-4.7Z.AI$0.60$2.20204.8K
glm-4.5Z.AI$0.60$2.20131.1K
glm-5Z.AI$1.00$3.20204.8K
glm-4.5-airZ.AI$0.20$1.10131.1K
glm-5.1Z.AI$1.40$4.40200K
glm-5.2Z.AI$1.40$4.401M
glm-4.6Z.AI$0.60$2.20204.8K

エラー対処

429 はレート制限の応答です。並行数を下げ、バックオフ付きで再試行するか、クォータの大きいプランに切り替えてください。

主な原因

  • 同時リクエストが多すぎる
  • 現在のプランのクォータを消費
  • 待機なしで即座に再試行

対処方法

  • 並行数を制限し指数的バックオフで再試行
  • クォータの大きいプランへ変更
  • 繰り返しリクエストをキャッシュ

接続方法

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

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

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

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

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "glm-5.3-flash",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

<YOUR_API_KEY> をトークン設定の API Key に置き換えてください。

対応エンドポイント

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "glm-5.3-flash" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

認証

すべてのリクエストには Authorization: Bearer <TOKEN> ヘッダーが必要です。Anthropic 形式のエンドポイントは x-api-key ヘッダーも受け付けます。「トークン」ページで API Key を発行でき、モデル・グループ・IP・レート単位で権限を細かく設定できます。

対応パラメータ

パラメータ型既定値範囲説明
temperaturefloat10–2サンプリング温度。低いほど安定
top_pfloat10–1核サンプリングの累積確率
max_tokensinteger——応答の最大トークン数
frequency_penaltyfloat0−2–2高頻度トークンの繰り返しにペナルティ
presence_penaltyfloat0−2–2新しい話題の導入を促す
stopstring[]null≤ 4生成を停止する文字列(最大 4 個)
seedintegernull—再現性を高めるサンプリングのシード
ninteger1—生成する候補の数
streambooleanfalse—SSE でトークンをストリーミング
response_formatobject——JSON 出力またはスキーマ準拠結果を強制
toolsarray——モデルが呼び出せるツール / 関数宣言
tool_choicestring | objectauto—ツール選択戦略または特定のツール名
logprobsbooleanfalse—各トークンの対数確率を返す
top_logprobsintegernull0–20各トークンで返す上位確率の数
logit_biasmap——トークンごとの logit バイアスマッピング
userstring——リスク監査用のエンドユーザー識別子

レート制限

ティアRPMTPMRPD
Eco990398K20K
Test980393K20K

データ更新: 2026-10-10 12:10

テクニカルサポートオンラインサポート
トップへ戻る