حاسبة تكلفة التوكن والذكاء الاصطناعي
قدّر فاتورتك الشهرية بدقة مع نسب الإدخال والإخراج والتخزين المؤقت.
كيف تحسب تكلفة API الشهرية للنماذج اللغوية بدقة؟
اضرب توكنات الإدخال الشهرية في سعر المليون، وأضف تكلفة الإخراج، ثم طبّق خصومات التخزين المؤقت (75%–95%) وBatch API (50%).
Estimates use catalog prices and a 30-day month. Prompt-cache share, batch eligibility, reasoning-token volume, and gateway adjustments are assumptions; FX conversions use fixed rates, not live exchange data. Actual provider bills vary.
Quick Workload Presets
Pick a scenario or fine-tune token parameters and cloud host below.
Token & Usage ParametersLLM API
Switching from GPT-4o ($195.00/mo) to GPT-6 Luna ($9.00/mo) saves 95%.
High-volume summarization, routing, classification, extraction pipelines
High-volume classification, extraction, routing (prompts ≤ 100K tokens; >100K input/output billed $0.50/$2.50)
Open-weights MIT-licensed workhorse: agents, extraction, long-doc analysis (off-peak pricing; weekday peak hours 01:00-04:00 & 06:00-10:00 UTC double rates; cache hit $0.003)
High-volume text processing, fast chatbots, structured JSON extraction
Top open-weights coding, math, and multilingual benchmark performance
Open-weights privacy, self-hosting or ultra-cheap hosted inferencing
Ultra-cheap high-frequency classification, translation, extraction at scale
Open-weights frontier-style reasoning at low cost (MIT license; off-peak pricing; peak hours double rates; cache hit $0.022)
Long-horizon agentic tasks and multimodal general workloads (promo price through 2026-12-31; rises to $1.50/$7.50 on 2027-01-01)
High-volume reasoning and coding at frontier-adjacent pricing (prompts ≥ 200K tokens bill $2.50/$5.00)
High-throughput chat, tool calling, structured output at low cost
Real-time information synthesis, large codebases; prompts ≥ 200K tokens bill $4.00/$12.00
Multilingual tasks, European compliance, enterprise code generation
Near-frontier intelligence at flagship cost; complex work with tool use
Best balance of speed and intelligence; coding, agents, enterprise RAG
Ranked #1 on Models Engineering Index; frontier coding, complex logic, multimodal engineering, and 2M token context
Complex multimodal reasoning, coding, and production enterprise apps
Enterprise RAG, citation grounding, 128k context multilingual tool use
Multimodal understanding, vibe-coding, agentic tool use (prompts > 200K tokens bill $4.00/$18.00)
Long-running agentic coding and knowledge work at near-frontier quality
Frontier reasoning for complex software engineering and multi-step agents (launch price $2.00/$10.00 through 2026-11-30; rises to $4.00/$20.00 2026-12-01)
Previous flagship generation; still strong general-purpose reasoning
Most demanding reasoning and coding workloads, frontier agentic systems
Demanding reasoning and long-horizon agentic work, extended thinking
Production Workload Cost Architect
Simulate end-to-end multi-turn chat sessions and complete RAG pipelines with embeddings, rerankers, and prompt caching.
In multi-turn chat, previous turns are cached after turn 1 at up to 90% discount on Claude Sonnet 5.5, DeepSeek Flash, and Gemini.
الأسئلة الشائعة
ما هي أرخص واجهة برمجة ذكاء اصطناعي لكل مليون توكن حالياً؟
تتصدر فئات DeepSeek وGoogle Gemini Flash-Lite وOpenAI mini من حيث السعر لكل توكن. قارن دائماً التكلفة المدمجة حسب نسبة الإدخال والإخراج الفعلية.
متى يكون اشتراك 20 دولاراً شهرياً أرخص من الدفع حسب الاستخدام؟
إذا أرسلت أقل من 25 طلباً قصيراً يومياً، تكلف API المباشرة $3–$8 شهرياً فقط، بينما تناسب الاشتراكات الثابتة جلسات البرمجة اليومية المكثفة.
كم توفر ميزة تخزين البرومبت وBatch API من الفاتورة؟
يخصم تخزين البرومبت 75%–95% من تكلفة السياق المتكرر، وتخفض Batch API غير المتزامنة أسعار الإدخال والإخراج بنسبة 50%.
لماذا تستهلك وكلاء البرمجة التوكنات بسرعة كبيرة؟
كل خطوة تعيد إرسال تعليمات النظام وسجل المحادثة. تفعيل التخزين المؤقت وإعادة ضبط الجلسات يقلل التكلفة بشكل كبير.