الفوترة
واجهة Billing Usage API (تجريبية)
deprecated
SUNSET as of 2026-09-16: this endpoint no longer returns usage data and answers every request with a 410. Use GET /api/v1/billing/usage-history instead, which returns the same ledger entries with cursor pagination: replace page and limit with pageSize plus the nextCursor from each response, and startDate and endDate with startTimestamp and endTimestamp.
GET
/api/v1/billing/usage
تُصدِّر بيانات الاستخدام لمستخدم ما. يمكن العثور على أوصاف حقول الاستجابة أدناه:
- timestamp: الطابع الزمني الذي تم فيه إنشاء سجل استخدام الفوترة
- sku: المنتج المرتبط بسجل استخدام الفوترة
- pricePerUnitUsd: سعر الوحدة بالدولار الأمريكي
- unit: عدد الوحدات المستهلكة
- amount: المبلغ الإجمالي المُحاسَب عليه لسجل استخدام الفوترة
- currency: العملة المُحاسَب بها سجل استخدام الفوترة
- notes: ملاحظات حول سجل استخدام الفوترة
- inferenceDetails.requestId: معرّف الطلب المرتبط بعملية الاستدلال
- inferenceDetails.inferenceExecutionTime: الوقت المستغرق لتنفيذ الاستدلال بالميلي ثانية
- inferenceDetails.promptTokens: عدد الـ tokens المطلوبة في الـ prompt. متوفر فقط لاستخدام نماذج LLM.
- inferenceDetails.completionTokens: عدد الـ tokens المستخدمة في الإكمال. متوفر فقط لاستخدام نماذج LLM.
التفويضات
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
الاستجابة
410 - application/json
Sunset on 2026-09-16. The error message names GET /api/v1/billing/usage-history and the parameters to rename.
A description of the error