Hi Team,
I’d like to understand how pricing works for “gpt-3.5-turbo-0125”. I want to extract expense details using the ‘input_text’ parameter from the ‘extracted_text’, which could be from images, PDFs, JPEGs, etc. I’ve included one PDF text example in ‘extracted_text’ below.
Can you explain what the cost would be for the following:
- I have 500 words in one PDF. Similarly, each month I have 100,000 images or PDFs.
- I want to know ‘gpt-3.5-turbo-0125’ which ‘Tier’ this usage falls under.
- For this, which subscription do I need to take - corporate or another option?
- Explain about the Limit of API request response.
API request Response :
input_text = "I want to statically extract the Invoice Number, Date of Expenses (in the format DD-MM-YYYY), Total Amount,
Currency(check in response if any symbal is coming return as String currency code three latter), Merchant Name,
Category, Tax Amount, and Tax Percentage and Alcohal (if exist in text) keys from this text. Could you provide them
in JSON format? The JSON object format is as follows: {'Invoice Number':'String', 'Date of Expenses':'String',
'Total Amount':'Double', 'Currency':'String', 'Merchant Name':'String', 'Category':'String', 'Tax Amount':'Double',
'Tax Percentage':'Double', 'Alcohal':'Boolean'}."
extracted_text = "Prabhakaran CNAMini - Silver IndigoRide Details03:42 PMTAFE, Nungambakkam HighRoad PonnangipuramTirumurthy NagarNungambakkam ChennaiTamil Nadu India03:50 PMVDS House, 41, CathedralRd, Ellaiamman Colony,Teynampet, ChennaiYour Trip₹129.12Total Bill (rounded off)Includes ₹9.12 Taxes₹129Have queries? Visit support for this ride.We’ve fulfilled our promise to take you todestination for pre-agreed Total Fare. Modifyingthe drop/route can change this fare.Bill DetailsPaid by OlaMoney Postpaid₹12929 Apr, 2022₹129CRN6215232412Thanks for travelling with us, Benny RobertsonPaymentOriginal Tax InvoiceDriver Trip InvoicePrabhakaran C NAOla Mini - Silver IndigoTN11S3675Operator State/UT: TamilNaduService Tax Category: Renting of motorcabSAC Code: 996412Invoice ID DIOTGKWFO313168Invoice Date 29/04/2022Customer Name Benny RobertsonMobile Number +919940033732Pickup Address TAFE, Nungambakkam High RoadPonnangipuram Tirumurthy Nagar NungambakkamChennai Tamil Nadu IndiaDescriptionAmount (INR)Customer Ride Number - CRN6215232412Ride Fee₹96CGST2.5%₹2.4SGST2.5%₹2.4Subtotal₹100.8TotalCustomer RideFare₹100.8Please note: 1. This invoice is issued on behalf of Transport Service Provider. ANI Technologies Private Limited acts in the capacity of an ElectronicCommerce Operator as per Section 9(5) of the Central Goods & Service Tax Act, 2017 & corresponding Section 5(5) of the State GST laws. 2. This is anelectronically generated invoice and does not require a digital signature.Original Tax InvoiceANI Technologies Pvt. Ltd.ANI Technologies Pvt.Ltd, 18-A, SIDCOIndustrial Area, MMDA Bus Terminal,Arumbakkam,ChennaiState GSTIN: 33AAJCA1389G1ZQSAC Code: 999799Service Tax Category: Business AuxiliaryServiceInvoice ID CIOTGKWFO313168Invoice Date 29/04/2022Customer Name Benny RobertsonMobile Number +919940033732Supply Address ANI Technologies Pvt.Ltd, 18-A, SIDCOIndustrial Area, MMDA Bus Terminal,Arumbakkam,ChennaiDescriptionAmount (INR)Ola Convenience Fee - CRN6215232412Convenience Fee (Ride)₹24CGST9.0%₹2.16SGST9.0%₹2.16TotalConvenience FeeFare₹28.32Payment DetailsPaid byOlaMoney PostpaidTransaction date29 Apr, 2022 03:50 PMAmount₹28.32Reference Id6800184a-a7a8-42f2-bccb-46d0433dffe2Please note:This is an electronically generated invoice and does not require a digital signature.Vide Circular No. 146/02/2021- GST dated 23rd February 2021, Printing of Dynamic QR code is not mandatory in case of Prepaid invoice since crossreference of payment is available."
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo-0125",
messages=[
{"role": "user", "content": input_text},
{"role": "system", "content": extracted_text}
]
)
response = {"Invoice Number":"DIOTGKWFO313168","Date of Expenses":"29-04-2022","Amount":100.8,"Currency":"INR","Merchant Name":"ANI Technologies Pvt. Ltd.","Category":"Transportation Service","Tax Amount":4.8,"Tax Percentage":5.0}