v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

document-question-answering

Answer questions based on document content for tasks like contract analysis, document understanding, and information retrieval

post/models/v2/cloudqi/CQI_Visual_Question_Awnser_PT_v0

Request body

questionstring required
urlstring required
base64string

Example request

{
  "question": "Whats the total cost?",
  "url": "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
  "base64": "data:image/png;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}

Response

Successful document-question-answering response.

errorstring nullable required

Null on success; otherwise an error message.

Example response

{
  "output": [
    {
      "score": 0.997048556804657,
      "answer": "$154.06",
      "start": 75,
      "end": 75
    }
  ]
}