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 examples use standard API-style list prices where available. They are not subscription prices and not a full business quote.مثال الحمل: مليون توكن إدخال و200 ألف توكن إخراج. تستخدم هذه الأمثلة أسعار API القياسية المنشورة حيثما توفرت. هذه ليست أسعار اشتراك وليست عرضاً تجارياً كاملاً.

Model exampleمثال النموذج
Input / 1Mالإدخال / مليون
Output / 1Mالإخراج / مليون
Sample totalإجمالي المثال
OpenAI GPT-5.4OpenAI pricing
$2.50
$15.00
$5.50
Claude Sonnet 4.6Claude pricing
$3.00
$15.00
$6.00
Gemini 2.5 Flash-LiteGemini pricing
$0.10
$0.40
$0.18
DeepSeek V3.1 on OpenRouterOpenRouter model page
$0.21
$0.79
$0.37
Kimi K2.6 on OpenRouterOpenRouter model page
$0.68
$3.41
$1.36

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أفضل إجابة

Kimi or DeepSeek can be cheaper, not always cheaper.قد يكون Kimi أو DeepSeek أرخص، وليس دائماً.

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

OpenRouter

Use OpenRouter as a live comparison screen.استخدم OpenRouter كشاشة مقارنة مباشرة.

OpenRouter shows model pages with provider routing, context, input/output prices, performance notes, and uptime. It is useful because the same model can be hosted by 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.السعر ليس ترتيباً للنماذج. هو قيد واحد فقط. اختر أرخص نموذج ينجز المهمة بثبات وبالجودة التي تحتاجها.