- Introduction
- Consuming the API
- Characteristics
- Error Messages
- Support Material
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- License Plate Recognition
- Liveness Detection
- MultiAddress Parsing
- MultiPage Content Extraction
- Vio Extraction
Generative Content Extraction [application/json] Copy
POST
https://mostqiapi.com/process-image/generative-content-extraction
inteligencia artificialia generativaai generativemostqi generative
Last modified:2024-06-28 13:12:08
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params application/json
fileBase64
string <base64>
required
filePassword
string <base64>
optional
tags
string
optional
Example
{
"fileBase64": "",
"filePassword": "",
"tags": ""
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/process-image/generative-content-extraction' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"fileBase64": "",
"filePassword":"",
"tags":""
}'
Responses
🟢200OK
application/json
Body
result
array [object {3}]
required
type
string
required
stdType
string
required
extractions
array [object {4}]
required
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
message
string | null
optional
code
string
required
errors
array [object {2}]
required
Example
{
"result": [
{
"type": "certificate",
"stdType": "certificate",
"extractions": [
{
"source": "iocr",
"score": 0.92,
"tags": [
"id=bra-nlp-property-registration-1",
"language=en-US",
"of=property",
"std-type=certificate",
"type=certificate"
],
"sections": [
{
"name": "header",
"stdName": "header",
"score": 0.91,
"fields": [
{
"name": "registration",
"stdName": "registration",
"value": "77777",
"score": 0.9
},
{
"name": "issue_date",
"stdName": "issue_date",
"value": "2013-08-26",
"score": 0.79
},
{
"name": "book",
"stdName": "book",
"value": "2",
"score": 0.99
},
{
"name": "registry",
"stdName": "registry",
"value": "PROPERTY REGISTRATION SERVICE DISTRICT OF NOVA LIMA MINAS GERAIS",
"score": 0.99
},
{
"name": "registry_address",
"stdName": "registry_address",
"value": "Bonita Avenue, 150, Central, Belo Horizonte/MG, 30180 - 000",
"score": 0.99
},
{
"name": "previous_registry",
"stdName": "previous_registry",
"value": "Previous Registry: 444444",
"score": 0.91
},
{
"name": "property_description",
"stdName": "property_description",
"value": "Apartment no. 222, Tower 2 - Sky, of the development named \"Edifício Vilas\", located at Rua Brilhante no. 222 with a total real private area of 86.51m2, total real common area of 75.50m2, total real area of 162.01m2, with the right to use parking space(s) no(s). 120D, and box no. 117, and ideal fraction of 0.005647 of the land constituted by lots no. 01 - A and 02 - A, of block \"P\", of the subdivision named \"Vila da Vilaa\", in Belo Horizonte - MG, with a total area of 6,847.00m2.",
"score": 0.98
}
],
"tables": [
{
"name": "original_owners",
"stdName": "original_owners",
"score": 0.74,
"headers": [
{
"name": "index",
"stdName": "index",
"score": 1
},
{
"name": "name",
"stdName": "name",
"score": 0.98
},
{
"name": "document_type",
"stdName": "document_type",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"score": 0.22
}
],
"values": [
[
{
"name": "index",
"stdName": "index",
"value": "1",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "REAL ESTATE DEVELOPMENT COLLECTION LTDA",
"score": 0.98
},
{
"name": "document_type",
"stdName": "document_type",
"value": "TAX ID",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"value": "94167751000140",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "MF",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "",
"score": 0.22
}
]
]
}
]
},
{
"name": "annotation",
"stdName": "annotation",
"score": 0.93,
"fields": [
{
"name": "identifier",
"stdName": "identifier",
"value": "AV-2-52.737",
"score": 0.99
},
{
"name": "main_date",
"stdName": "main_date",
"value": "2013-08-26",
"score": 0.79
},
{
"name": "type",
"stdName": "type",
"value": "existing encumbrance",
"score": 0.97
},
{
"name": "segment",
"stdName": "segment",
"value": "Av - 2 - 52.737 - Protocol No. 109,187, on 01/08/2013 - EXISTING ENCUMBRANCE - According to R - 2 - 44,418 and Av - 6 - 44,418, the property object of this registration was given in first, single and\nspecial mortgage to BRADESCO BANK S/A, TAX ID 60,746,948/0001 - 12, to guarantee a financing in the amount of R$ 28,496,989.00. [mbr]. On 08/26/2013. I attest",
"score": 0.98
}
],
"tables": [
{
"name": "involved",
"stdName": "involved",
"score": 0.87,
"headers": [
{
"name": "index",
"stdName": "index",
"score": 1
},
{
"name": "name",
"stdName": "name",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"score": 0.91
},
{
"name": "document_type",
"stdName": "document_type",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"score": 0.22
}
],
"values": [
[
{
"name": "index",
"stdName": "index",
"value": "1",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "BRADESCO BANK S A",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "creditor",
"score": 0.91
},
{
"name": "document_type",
"stdName": "document_type",
"value": "TAX ID",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"value": "60746948000112",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "MF",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "",
"score": 0.22
}
]
]
},
{
"name": "values",
"stdName": "values",
"score": 0.99,
"headers": [
{
"name": "currency",
"stdName": "currency",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"score": 0.99
}
],
"values": [
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "28496989.00",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "financing",
"score": 0.99
}
]
]
}
]
},
{
"name": "record",
"stdName": "record",
"score": 0.93,
"fields": [
{
"name": "identifier",
"stdName": "identifier",
"value": "R-5-52.737",
"score": 0.99
},
{
"name": "main_date",
"stdName": "main_date",
"value": "2014-09-18",
"score": 0.79
},
{
"name": "type",
"stdName": "type",
"value": "purchase and sale",
"score": 0.99
},
{
"name": "segment",
"stdName": "segment",
"value": "R - 5 - 52.737 - Protocol No. 119,146, on 09/09/2014 - PURCHASE AND SALE - SELLER: REAL ESTATE DEVELOPMENT COLLECTION LTDA, already qualified; BUYER: HENRIQUE SOUZA! DE PAULO PINHO, Brazilian, single, dentist, passport YA642030 PF/MG, TAX ID\n759,547,455 - 87, resident and domiciled at Rua A gaipoli, 77/85, Centro, in Belo Horizonte - MG; OBJECT: the property object of this registration; CADASTRAL REGISTRATION\n01/05/146/0120 - 116; VALUE: R$ 512,571.11, paid, being R$ 146,595.96 with own resources, and R$ 365,975.15 through financing according to R - 6; TITLE: Private Contract of Purchase and Sale and Fiduciary Alienation, No. 1.4444.0674762 - 0, executed\nin Belo Horizonte - MG on 08/26/2014. ITBI collected in the amount of R$ 4,806.95; fiscal evaluation R$ 512,571.11. Emol: R$ 752.68, TRI: R$ 500.64; Total: R$ 1,258.32. [mfa]. On 09/18/2014. I attest",
"score": 0.98
}
],
"tables": [
{
"name": "involved",
"stdName": "involved",
"score": 0.83,
"headers": [
{
"name": "index",
"stdName": "index",
"score": 1
},
{
"name": "name",
"stdName": "name",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"score": 0.61
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"score": 0.22
}
],
"values": [
[
{
"name": "index",
"stdName": "index",
"value": "1",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "REAL ESTATE DEVELOPMENT COLLECTION LTDA",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "seller",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"value": null,
"score": null
},
{
"name": "document_number",
"stdName": "document_number",
"value": null,
"score": null
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": null,
"score": null
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": null,
"score": null
}
],
[
{
"name": "index",
"stdName": "index",
"value": "2",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "HENRIQUE SOUZA DE PAULO PINHO",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "buyer",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"value": "passport",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"value": "YA642030",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "",
"score": 0.22
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "",
"score": 0.22
}
],
[
{
"name": "index",
"stdName": "index",
"value": "2",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": null,
"score": null
},
{
"name": "type",
"stdName": "type",
"value": null,
"score": null
},
{
"name": "document_type",
"stdName": "document_type",
"value": "TAX ID",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"value": "75954745587",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "MF",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "",
"score": 0.22
}
]
]
},
{
"name": "values",
"stdName": "values",
"score": 0.97,
"headers": [
{
"name": "currency",
"stdName": "currency",
"score": 0.98
},
{
"name": "value",
"stdName": "value",
"score": 0.98
},
{
"name": "type",
"stdName": "type",
"score": 0.94
}
],
"values": [
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "512571.11",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "property value",
"score": 0.91
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "146595.96",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "own resources",
"score": 0.98
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "365975.15",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "financing",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "4806.95",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "ITBI",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.97
},
{
"name": "value",
"stdName": "value",
"value": "512571.11",
"score": 0.97
},
{
"name": "type",
"stdName": "type",
"value": "fiscal evaluation",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.94
},
{
"name": "value",
"stdName": "value",
"value": "752.68",
"score": 0.94
},
{
"name": "type",
"stdName": "type",
"value": "Emol",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.98
},
{
"name": "value",
"stdName": "value",
"value": "500.64",
"score": 0.98
},
{
"name": "type",
"stdName": "type",
"value": "TRI",
"score": 0.63
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "1258.32",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "Total",
"score": 0.99
}
]
]
}
]
},
{
"name": "record",
"stdName": "record",
"score": 0.94,
"fields": [
{
"name": "identifier",
"stdName": "identifier",
"value": "R-10-52.737",
"score": 0.95
},
{
"name": "main_date",
"stdName": "main_date",
"value": "2015-10-09",
"score": 0.79
},
{
"name": "type",
"stdName": "type",
"value": "purchase and sale",
"score": 0.99
},
{
"name": "segment",
"stdName": "segment",
"value": "R - 10 - 52.737 - Protocol no. 127.756; on 09/24/2015, resubmitted on 10/05/2015 - PURCHASE AND SALE - SELLER: HENRIQUE SOUZA DE PAULO PINTO already qualified; BUYER: RONI ROIR Brazilian, divorced, administrator, REGISTRATION NUMBER 149.376.149 SSP/SP, TAX ID 759.777.450 - 87, resident and domiciled at Rua Luar do Barro Tucupi, 77/402 Anchieta, in Belo Horizonte - MG; OBJECT: the property object of this registration; VALUE: R$ 560,000.00, paid, being R$ 260,000.00 with own resources, and R$ 325,700.00 through financing as per R - 11; TITLE: Private Contract of Purchase and Sale and Fiduciary Alienation, no. 201516703, executed in Nova Lima - MG on 08/21/2015. ITBI paid in the amount of R$ 11,247.86; fiscal assessment at R$ 560,000.00. Emol: | R$ 1,564.04) TEJ: R$ 1,033.44; Total: R$ 2,597.48. [1fm]. On 10/09/2015. I attest",
"score": 0.98
}
],
"tables": [
{
"name": "involved",
"stdName": "involved",
"score": 0.93,
"headers": [
{
"name": "index",
"stdName": "index",
"score": 1
},
{
"name": "name",
"stdName": "name",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"score": 0.98
},
{
"name": "document_number",
"stdName": "document_number",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"score": 0.98
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"score": 0.61
}
],
"values": [
[
{
"name": "index",
"stdName": "index",
"value": "1",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "HENRIQUE SOUZA DE PAULO PINTO",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "seller",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"value": null,
"score": null
},
{
"name": "document_number",
"stdName": "document_number",
"value": null,
"score": null
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": null,
"score": null
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": null,
"score": null
}
],
[
{
"name": "index",
"stdName": "index",
"value": "2",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": "RONI ROIR",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "buyer",
"score": 0.99
},
{
"name": "document_type",
"stdName": "document_type",
"value": "REGISTRATION NUMBER",
"score": 0.99
},
{
"name": "document_number",
"stdName": "document_number",
"value": "149376149",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "SSP",
"score": 0.99
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "SP",
"score": 0.99
}
],
[
{
"name": "index",
"stdName": "index",
"value": "2",
"score": 1
},
{
"name": "name",
"stdName": "name",
"value": null,
"score": null
},
{
"name": "type",
"stdName": "type",
"value": null,
"score": null
},
{
"name": "document_type",
"stdName": "document_type",
"value": "TAX ID",
"score": 0.97
},
{
"name": "document_number",
"stdName": "document_number",
"value": "75977745087",
"score": 0.99
},
{
"name": "document_issuer",
"stdName": "document_issuer",
"value": "MF",
"score": 0.97
},
{
"name": "document_issue_state",
"stdName": "document_issue_state",
"value": "",
"score": 0.22
}
]
]
},
{
"name": "values",
"stdName": "values",
"score": 0.97,
"headers": [
{
"name": "currency",
"stdName": "currency",
"score": 0.98
},
{
"name": "value",
"stdName": "value",
"score": 0.98
},
{
"name": "type",
"stdName": "type",
"score": 0.95
}
],
"values": [
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "560000.00",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "Property value",
"score": 0.91
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "260000.00",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "Own resources",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "325700.00",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "Financing",
"score": 0.99
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "11247.86",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "ITBI",
"score": 0.97
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "560000.00",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "Fiscal assessment",
"score": 0.92
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.91
},
{
"name": "value",
"stdName": "value",
"value": "1564.04",
"score": 0.91
},
{
"name": "type",
"stdName": "type",
"value": "Emol",
"score": 0.94
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.99
},
{
"name": "value",
"stdName": "value",
"value": "1033.44",
"score": 0.99
},
{
"name": "type",
"stdName": "type",
"value": "TEJ",
"score": 0.89
}
],
[
{
"name": "currency",
"stdName": "currency",
"value": "R$",
"score": 0.98
},
{
"name": "value",
"stdName": "value",
"value": "2597.48",
"score": 0.98
},
{
"name": "type",
"stdName": "type",
"value": "Total",
"score": 0.99
}
]
]
}
]
}
]
}
]
}
],
"requestId": "EkKfGaZ3Qke1Zdr49UhKv",
"elapsedMilliseconds": 14780,
"status": {
"message": "Ok",
"code": "200",
"errors": null
}
}
🟠400R101 A specified parameter is wrong
🟠400R127 The uploaded file is encrypted by a password
🟠400R130 Unsupported file format
🔴500E100 The request could not be processed
Modified at 2024-06-28 13:12:08