Upstage: Solar Pro 4 Contributor مقابل Z.ai: GLM 4.7 Flash
مقارنة جنبًا إلى جنب بين Upstage: Solar Pro 4 Contributor (0.32 US$ / مليون رمز (≈ 1.18 ر.س.)) وZ.ai: GLM 4.7 Flash (0.21 US$ / مليون رمز (≈ 0.79 ر.س.)) باستخدام الأسعار الحالية بالدولار والقدرات من كتالوج api14. يعمل كلاهما عبر API نفسها المتوافقة مع OpenAI.
المواصفات
| Upstage: Solar Pro 4 Contributor | Z.ai: GLM 4.7 Flash | |
|---|---|---|
| المزوّد | Upstage | Z.ai |
| الإدخال | 0.32 US$ / مليون رمز (≈ 1.18 ر.س.) | 0.21 US$ / مليون رمز (≈ 0.79 ر.س.) |
| الإخراج | 1.26 US$ / مليون رمز (≈ 4.73 ر.س.) | 1.40 US$ / مليون رمز (≈ 5.25 ر.س.) |
| قراءة ذاكرة التخزين المؤقت | 0.06 US$ / مليون رمز (≈ 0.24 ر.س.) | - |
| نافذة السياق | 524,288 | 131,072 |
| الحد الأقصى للإخراج | 131,072 | 117,964 |
| الإدخال | text | text |
| الإخراج | text | text |
| استدعاء الأدوات | ||
| المخرجات المنظّمة | ||
| التحكم في الاستدلال | ||
| تاريخ الإضافة | 24/11/2026 | 19/01/2026 |
أبرز الفروق
- Z.ai: GLM 4.7 Flash أرخص بنسبة 33% في رموز الإدخال.
- Upstage: Solar Pro 4 Contributor أرخص بنسبة 10% في رموز الإخراج.
- يقرأ Upstage: Solar Pro 4 Contributor سياقًا أكبر بمقدار 4.0× (524,288 رمز).
- يكلّف طلب يتضمن 1000 رمز إدخال و500 رمز إخراج 0.000945 US$ مع Upstage: Solar Pro 4 Contributor و0.000912 US$ مع Z.ai: GLM 4.7 Flash.
بدّل بتغيير سلسلة واحدة
يستخدم النموذجان نقطة النهاية نفسها وبنية الطلب نفسها. غيّر قيمة model من "upstage/solar-pro-4-contributor" إلى "z-ai/glm-4.7-flash"، وتستمر الموجّهات والبث والأدوات في العمل.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api14.com/api/v1",
api_key=os.environ["API14_API_KEY"],
)
result = client.chat.completions.create(
model="z-ai/glm-4.7-flash",
messages=[
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
],
)
print(result.choices[0].message.content)
curl https://api14.com/api/v1/chat/completions \
-H "Authorization: Bearer $API14_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}`)
req, _ := http.NewRequest("POST", "https://api14.com/api/v1/chat/completions", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API14_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
<?php
$ch = curl_init("https://api14.com/api/v1/chat/completions");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("API14_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"model" => "z-ai/glm-4.7-flash",
"messages" => [
[
"role" => "user",
"content" => "Explain vector databases in two sentences."
]
]
]),
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/chat/completions"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using OpenAI;
using OpenAI.Chat;
using System.ClientModel;
var client = new ChatClient(
model: "z-ai/glm-4.7-flash",
credential: new ApiKeyCredential(Environment.GetEnvironmentVariable("API14_API_KEY")!),
options: new OpenAIClientOptions { Endpoint = new Uri("https://api14.com/api/v1") });
ChatCompletion completion = client.CompleteChat("Explain vector databases in two sentences.");
Console.WriteLine(completion.Content[0].Text);
require "net/http"
require "json"
uri = URI("https://api14.com/api/v1/chat/completions")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer #{ENV["API14_API_KEY"]}",
"Content-Type" => "application/json",
})
req.body = {
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts JSON.parse(res.body)
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("API14_API_KEY")?;
let res = reqwest::Client::new()
.post("https://api14.com/api/v1/chat/completions")
.bearer_auth(key)
.json(&json!({
"model": "z-ai/glm-4.7-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
مقارنات أخرى
- Amazon Ergo مقابل MiniMax: MiniMax M4
- Amazon Ergo مقابل Qwen: Qwen4 35B A3B
- Amazon Ergo مقابل StepFun: Step 5
- Amazon Ergo مقابل Z.ai: GLM 5.4
- MiniMax: MiniMax M4 مقابل Qwen: Qwen4 35B A3B
- MiniMax: MiniMax M4 مقابل StepFun: Step 5
- MiniMax: MiniMax M4 مقابل Z.ai: GLM 5.4
- Qwen: Qwen4 35B A3B مقابل StepFun: Step 5