Import Image Files

Supametas.ai allows users to upload custom files. Through the API, you can upload source data to your data storage in Supametas.ai. Based on your needs, the file will be stored and parsed accordingly.

Endpoint: POST: {{BaseUrl}}/image-task

Request body:

{
  "file" : {},
  "data" : {
    "getDemandFormat": "",
    "customKeys": [
   	{
    	 "key": "",
         "desc": ""
    	}
    ]
  }
}

Response (Data Part):

{
  "num": 0,
  "taskId": "xxxx010"
}

Request:

Parameter
Type
Required
Description

file

FILE

YES

Supported types:

jpg,png

data

OBJECT

YES

-getDemandFormat

OBJECT

YES

Output document format

1 : json

2 : markdown

-getImageText

INTEGER

NO

Image text extraction:

1 : get

0 : don't get

-customKeys

ARRAY

NO

Custom fields

--key

STRING

NO

Custom field key

--desc

STRING

NO

Custom field description

Response (Data Part):

Parameter
Type
Description

num

INTEGER

Number of files processed

taskId

STRING

Import task ID, which can be used to query task status


Last updated