Seedance 2.0 | Special Offer ✦ 10% OFF NOW | Ends May 13 (UTC+0)
chatglm
z-ai/glm-4-32b

z-ai/glm-4-32b

128,000 context · $0.10/M input tokens · $0.10/M output tokens

GLM 4 32B is a cost-effective foundation language model. It can efficiently perform complex tasks and has significantly enhanced capabilities in tool use, online search, and code-related intelligent tasks. It...

Fiyatlandırma

Kullandıkça öde

Ön ödeme yok, yalnızca kullandığınız kadar ödeyin

Giriş$0.10 / M Tokens
Çıkış$0.10 / M Tokens

Modeli dene

z-ai/glm-4-32b
Çevrimiçi
chatglm
Merhaba! Yardımcı bir yapay zeka asistanıyım. Size nasıl yardımcı olabilirim?

API Kullanımı

API'mizle entegre etmek için aşağıdaki kod örneklerini kullanın:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="z-ai/glm-4-32b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Tanıtımı

Z-Ai glm-4-32b

z-ai glm-4-32b


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 128000 context window for long document handling
  • Competitive pricing at $0.1/$0.1 per million tokens

Key Features

  • Context Window: 128000 tokens
  • Max Output: 4096 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderZ-Ai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window128000 tokens
Max Output4096 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.1
Output$0.1

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: z-ai/glm-4-32b


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="z-ai/glm-4-32b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "z-ai/glm-4-32b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: z-ai/glm-4-32b
  • Provider: Z-Ai

Bilgi

Sağlayıcıchatglm
Türllm

Desteklenen İşlevsellik

Giriş
Metin
Çıkış
Metin
Bağlam128,000
Maks. Çıkış4,096
Vision-
Function Calling✓ Destekleniyor

API Erişim Kılavuzu

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDz-ai/glm-4-32b

GLM 4 32b API

z-ai/glm-4-32b

GLM 4 32B is a cost-effective foundation language model. It can efficiently perform complex tasks and has significantly enhanced capabilities in tool use, online search, and code-related intelligent tasks. It...

Giriş

$0.1 /M

Çıkış

$0.1 /M

Bağlam

128K

Maks. Çıkış

4K

Araç Kullanımı

Destekleniyor

GLM 4 32b'i WaveSpeedAI'da deneyin

Birleşik API'miz aracılığıyla GLM 4 32b'e erişin — OpenAI uyumlu, soğuk başlatma yok, şeffaf fiyatlandırma.

GLM 4 32b hakkında sık sorulan sorular

GLM 4 32b API ücreti ne kadar?+

WaveSpeedAI fiyatlandırması: milyon giriş tokenı başına $0.10 ve milyon çıkış tokenı başına $0.10. Prompt caching ve toplu işleme ayrı faturalanır ve uzun, tekrar eden yüklerde etkin maliyeti düşürür.

GLM 4 32b'in bağlam penceresi nedir?+

GLM 4 32b istek başına 128K bağlam tokenını ve 4K çıkış tokenını destekler.

GLM 4 32b OpenAI uyumlu mu?+

Evet. WaveSpeedAI, GLM 4 32b modelini https://llm.wavespeed.ai/v1 adresindeki OpenAI uyumlu endpoint üzerinden sunar. Resmi OpenAI SDK'sını WaveSpeedAI API anahtarınızla bu base URL'ye yöneltin — başka kod değişikliği gerekmez.

GLM 4 32b'e nasıl başlarım?+

WaveSpeedAI'a giriş yapın, Access Keys'te bir API anahtarı oluşturun, ardından yukarıda gösterilen model id ile https://llm.wavespeed.ai/v1/chat/completions adresine bir istek gönderin. Yeni hesaplar GLM 4 32b'i değerlendirmek için ücretsiz krediler alır.

İlgili LLM API'leri