Answer questions based on document content for tasks like contract analysis, document understanding, and information retrieval
Basic usage
Send an image of a document along with a question to get relevant answers
Copy
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('cloudqi/CQI_Visual_Question_Awnser_PT_v0');// provide the model with inputconst input = { "question": "Whats the total cost?", "url": "https://templates.invoicehome.com/invoice-template-us-neat-750px.png"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });