POST
/gradio_api/call/calculate_roi_controllerCalculate estimated return on investment
Calculates estimated return on investment using the values supplied in data. Provide five values in order: team size, prompts per day, average prompt size, estimated savings percentage, and model name. Use GET /gradio_api/call/{api_name}/{event_id} with the returned event_id to read the result stream.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The ordered values for the ROI calculation.
dataarrayrequired
Values in endpoint input order.
200Returns an
event_id you can use to retrieve the job's result stream.event_idstringrequired
Identifier used to retrieve the result stream.
Error handling
data is required and must contain exactly five values in this order: four numbers for team size, prompts per day, average prompt size, and estimated savings percentage, followed by a string for the model name.