You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to pass base64 content from input file to OCI LLLM models

edited Jun 11, 2025 5:34PM in OCI - General 1 comment

Summary:

Is there a way to pass base64-encoded file contents from an invoice PDF and extract information in JSON format?

Content (please ensure you mask any confidential information):

Hello OCI AI Experts,

We are working on REST APIs to pass encoded file contents in the request body to Cohere and Llama LLM models within OCI Chat.

In our web application, users upload invoice input files. Based on this input file, we convert the file into base64-encoded contents. We need to pass this encoded file content and generate output in JSON format. Essentially, we aim to extract the following information from an invoice:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!