Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Zhipu AI · GLM

glm-5.3 API

Use glm-5.3 on APISea for text generation and chat with up to 1,000,000 input tokens.

محادثةالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
glm-5.3

تسعير API لنموذج glm-5.3

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$1.23$1.40−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.2288$0.26−12%
الإخراج لكل 1M رمز$3.87$4.40−12%

ما هو glm-5.3؟

glm-5.3 is a GLM-family chat model from Zhipu AI, available through APISea for text generation and multi-turn conversations. It accepts message arrays with system, user, and assistant roles and returns generated text. With maximum input of 1,000,000 tokens and maximum output of 128,000 tokens, it gives developers room to submit extensive source material and request long responses. APISea’s OpenAI-compatible Chat Completions interface provides streaming or complete responses, plus controls for randomness, output length, and stop sequences.

Call glm-5.3 using one APISea key and the base URL https://api.apisea.ai/v1. Pay-as-you-go pricing is $1.23 per 1M tokens for input, $0.2288 per 1M tokens for cached input reads, and $3.87 per 1M tokens for output. The default configuration is about 12% below the provider list price, and APISea bills only for successful requests.

أبرز مزايا glm-5.3

Large Input Allowance

Submit up to 1,000,000 input tokens for conversations or requests containing extensive text.

Long Text Output

Generate up to 128,000 output tokens. Set max_tokens to control the requested response length.

Prompt Cache Reads

glm-5.3 supports prompt-cache reads, billed at $0.2288 per 1M tokens for cached input.

Configurable Chat Responses

Use the OpenAI-compatible Chat Completions format with streaming or complete responses. Adjust temperature, top_p, and stop sequences through the documented interface.

كيفية استدعاء API الخاص بـ glm-5.3 في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/chat/completions مع "model": "glm-5.3" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوبgpt-5Model name
messagesarrayمطلوب—List of conversation messages
rolestringمطلوبuserRole type
contentstringمطلوب—Message content
temperaturenumberاختياري—Controls output randomness, range 0-2
max_tokensintegerاختياري—Maximum number of tokens to generate
streambooleanاختياري—Whether to use streaming output
top_pnumberاختياري—Nucleus sampling parameter, range 0-1
frequency_penaltynumberاختياري—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberاختياري—Presence penalty, range -2.0 to 2.0
stopstring or arrayاختياري—Stop sequences
nintegerاختياري—Number of completions to generate

ما الذي يمكنك إنشاؤه باستخدام glm-5.3

Document-Based Conversations

Build chat workflows that include extensive source text in the message array and ask questions about that material.

Long-Form Drafting

Request reports, explanations, or other extended text, with max_tokens setting the response budget.

Multi-Turn Assistants

Include previous user and assistant messages to supply conversation context, and use a system message to define the assistant’s behavior.

Text Generation Workflows

Integrate generated text into an application using complete responses, or stream responses to a user-facing chat interface.

نصائح للحصول على نتائج أفضل

  • 01

    Set an Output Budget

    Choose max_tokens for the task rather than always requesting the maximum. Output is billed at $3.87 per 1M tokens.

  • 02

    Tune One Sampling Control

    Use temperature to adjust randomness or top_p to adjust sampling diversity. The documentation recommends using either one rather than tuning both.

  • 03

    Track Cached Input

    When prompt-cache reads apply, cached input costs $0.2288 per 1M tokens. Check cache behavior before assuming repeated messages will receive cached-input pricing.

  • 04

    Choose Response Delivery

    Set stream to true for SSE output or false to receive the complete response at once. Set it explicitly instead of relying on an endpoint default.

القيود ومعلومات مهمة

  • Input is limited to 1,000,000 tokens per request.

  • Output is limited to 128,000 tokens, and a lower max_tokens setting can end generation earlier.

  • Prompt-cache reads are supported, but the supplied documentation does not specify cache eligibility or retention rules.

الأسئلة الشائعة حول API الخاص بـ glm-5.3

How much does glm-5.3 cost on APISea?

Input costs $1.23 per 1M tokens, cached input reads cost $0.2288 per 1M tokens, and output costs $3.87 per 1M tokens. The default configuration is about 12% below the provider list price, with billing only for successful requests.

How do I call glm-5.3 through APISea?

Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions. Authenticate with your APISea Bearer token and set the model field to glm-5.3, alongside a messages array.

What are glm-5.3’s input and output limits?

The maximum input is 1,000,000 tokens, and the maximum output is 128,000 tokens. Use max_tokens to request a smaller output budget.

Which generation parameters can I use?

The documented chat interface includes temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. It accepts system, user, and assistant messages.

Does glm-5.3 support streaming and prompt caching?

APISea’s chat interface supports streaming with stream set to true and complete responses with stream set to false. glm-5.3 supports prompt-cache reads; cache eligibility and retention details are not specified in the supplied documentation.

Can I use glm-5.3 commercially?

Commercial use is subject to the provider’s terms and applicable APISea terms. Review those terms for your intended application before deploying.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام glm-5.3

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.