Models & Costsالنماذج والتكلفة

Model Cost Lessonدرس تكلفة النماذج

Learn how model prices are usually calculated, why input and output prices differ, and why a model that looks cheap can still become expensive at scale.تعلّم كيف تُحسب أسعار النماذج عادة، ولماذا يختلف سعر الإدخال عن الإخراج، ولماذا قد يصبح النموذج الذي يبدو رخيصاً مكلفاً عند التوسع.

The basic formula.المعادلة الأساسية.

For API-style pricing, the cost is usually input tokens multiplied by the input price, plus output tokens multiplied by the output price. Output is often more expensive because generation uses more compute.في تسعير واجهات API، تكون التكلفة عادة: توكنز الإدخال مضروبة في سعر الإدخال، زائد توكنز الإخراج مضروبة في سعر الإخراج. الإخراج غالباً أغلى لأنه يحتاج قدرة حسابية أكبر للتوليد.

inputالإدخالinput tokens × input price
+
outputالإخراجoutput tokens × output price
=
totalالإجماليrequest costتكلفة الطلب

Same workload, different costs.نفس الحمل، تكاليف مختلفة.

Sample workload: 1M input tokens and 200K output tokens. These rows intentionally use the latest named releases shown on each vendor's official pricing or model pages as of June 20, 2026. Where a page separates cached and non-cached input, this table uses the non-cached input rate.مثال الحمل: مليون توكن إدخال و200 ألف توكن إخراج. تستخدم هذه الصفوف أحدث الإصدارات المسماة كما تظهر في صفحات الأسعار أو النماذج الرسمية لكل شركة حتى 20 يونيو 2026. وعندما تفرّق الصفحة بين الإدخال المخبأ وغير المخبأ، يستخدم هذا الجدول سعر الإدخال غير المخبأ.

Model exampleمثال النموذج
Input / 1Mالإدخال / مليون
Output / 1Mالإخراج / مليون
Sample totalإجمالي المثال
OpenAI GPT-5.5OpenAI pricing
$5.00
$30.00
$11.00
Claude Opus 4.8Claude pricing
$5.00
$25.00
$10.00
Gemini 3.5 FlashGemini pricing
$1.50
$9.00
$3.30
DeepSeek ChatDeepSeek pricing
$0.27
$1.10
$0.49
Kimi K2.7 CodeKimi pricing
$0.95
$4.00
$1.75
$1.40
$4.40
$2.28

What this teaches.ماذا يعلّمنا هذا.

Do not turn pricing into a slogan. Use prices to ask better questions before choosing a model.لا تحوّل التسعير إلى شعار. استخدم الأسعار لطرح أسئلة أفضل قبل اختيار النموذج.

Misconceptionفهم خاطئ

“Cheaper model” does not mean “cheaper project”."نموذج أرخص" لا يعني "مشروع أرخص".

If the model needs many retries, long prompts, or long outputs, the total can rise.إذا احتاج النموذج إلى محاولات كثيرة أو طلبات طويلة أو مخرجات طويلة، قد ترتفع التكلفة الإجمالية.

Useful habitعادة مفيدة

Estimate volume before comparing prices.قدّر الحجم قبل مقارنة الأسعار.

A one-off task and a million-row process need different cost thinking.المهمة مرة واحدة والعملية التي تشمل مليون صف تحتاجان تفكيراً مختلفاً في التكلفة.

Best answerأفضل إجابة

DeepSeek, Kimi, or GLM can look cheaper, not always cheaper.قد تبدو DeepSeek أو Kimi أو GLM أرخص، وليس ذلك دائماً.

The real answer depends on exact model, provider, input size, output size, speed, reliability, and quality needed.الإجابة الحقيقية تعتمد على النموذج والمزوّد وحجم الإدخال وحجم الإخراج والسرعة والاعتمادية والجودة المطلوبة.

OpenRouter

Use OpenRouter as a second check, not the source of truth.استخدم OpenRouter كفحص ثانٍ، وليس كمصدر الحقيقة الأساسي.

Official vendor pricing pages should be your main source for current model names and list prices. OpenRouter is still useful as a live comparison screen because the same model can be routed through different providers.يجب أن تكون صفحات الأسعار الرسمية لكل شركة هي المصدر الأساسي لأسماء النماذج الحالية وأسعارها المعلنة. ويظل OpenRouter مفيداً كشاشة مقارنة مباشرة لأن النموذج نفسه قد يمر عبر مزوّدين مختلفين.

One rule to rememberقاعدة واحدة للتذكر

Price is not a model ranking. It is one constraint. Choose the cheapest model that reliably does the job at the quality you need.السعر ليس ترتيباً للنماذج. هو قيد واحد فقط. اختر أرخص نموذج ينجز المهمة بثبات وبالجودة التي تحتاجها.