TensaHub › Hugging Face Inference

GLM-4.7-Flash · Cloudflare

API des Modells zai-org/GLM-4.7-Flash:cloudflare bei Hugging Face Inference, $0.0605 / $0.4 pro Million Tokens, Kontext 131.072 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.

Im Katalog testen und bewerten

zai-org/GLM-4.7-Flash served by Cloudflare through the Hugging Face router.

Typ
Modell
Anbieter
Hugging Face Inference
Hosting
Cloudflare
Modell-ID
zai-org/GLM-4.7-Flash:cloudflare
Preis
Kostenpflichtig
Preis Eingabe / Ausgabe
$0.0605 / $0.4 pro Million Tokens
Zugang ohne Schlüssel
Nein
Schlüsselvariable
HF_TOKEN
Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1
Kontext
131.072 Tokens
Eingaben
Text
Funktionen
Tool-Aufrufe, JSON-Ausgabe
Antwortzeit
Erstes Token 401 ms · 72 Tokens/s · Verfügbarkeit 100 %
Entwicklerbewertung
Noch nicht bewertet
Dokumentation
https://huggingface.co/zai-org/GLM-4.7-Flash

Codebeispiele

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"zai-org/GLM-4.7-Flash:cloudflare","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
    model="zai-org/GLM-4.7-Flash:cloudflare",
    messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
  model: 'zai-org/GLM-4.7-Flash:cloudflare',
  messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)

Integrationscode erzeugen →

Beliebte Suchen

Häufige Fragen

Ist die API von GLM-4.7-Flash · Cloudflare kostenlos?

Nein: GLM-4.7-Flash · Cloudflare ist eine kostenpflichtige API ($0.0605 / $0.4 pro Million Tokens).

Wie rufe ich GLM-4.7-Flash · Cloudflare aus meinem Code auf?

GLM-4.7-Flash · Cloudflare bietet eine OpenAI-kompatible API unter https://router.huggingface.co/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: zai-org/GLM-4.7-Flash:cloudflare. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.

Wie groß ist das Kontextfenster von GLM-4.7-Flash · Cloudflare?

GLM-4.7-Flash · Cloudflare verarbeitet bis zu 131.072 Tokens Kontext (Nachricht und Verlauf).

Welche Alternativen gibt es zu GLM-4.7-Flash · Cloudflare?

Ähnliche APIs im Katalog: GLM-5.3-Flash · Cohere, GLM-5.3-Flash · CoreWeave, GLM-5.3-Flash · Crusoe, GLM-5.3-Flash · DeepInfra, GLM-5.3-Flash · DigitalOcean.

Alternativen