File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,7 @@ paths:
246
246
content :
247
247
application/json :
248
248
schema :
249
- type : number
250
- format : float
249
+ $ref : " #/components/schemas/InferenceRunCostEstimate"
251
250
252
251
/api/prompts/{id}/versions/{version_id}/inference-runs :
253
252
post :
@@ -686,6 +685,30 @@ components:
686
685
format : date-time
687
686
readOnly : true
688
687
688
+ InferenceRunCostEstimate :
689
+ required :
690
+ - total_cost_usd
691
+ type : object
692
+ properties :
693
+ prompt_cost_usd :
694
+ type : number
695
+ format : float
696
+ title : Prompt Cost
697
+ description : Cost of the prompt (in USD)
698
+ nullable : true
699
+ completion_cost_usd :
700
+ type : number
701
+ format : float
702
+ title : Completion Cost
703
+ description : Cost of the completion (in USD)
704
+ nullable : true
705
+ total_cost_usd :
706
+ type : number
707
+ format : float
708
+ title : Total Cost
709
+ description : Total cost of the inference (in USD)
710
+ nullable : true
711
+
689
712
requestBodies :
690
713
api_prompts_batch_predictions_create :
691
714
content :
You can’t perform that action at this time.
0 commit comments