Supametas.AI
Official website
English
English
  • Welcome to Supametas.AI
  • Cloud Service
    • Supametas.AI Cloud Service
      • Detailed Pricing Comparison
    • Guide
      • Create Dataset
      • Import Metadata
        • Fetching webpage data
        • Importing local text processing
        • Importing local image processing
        • Importing local audio processing
        • Importing local video processing
      • Cleaning data query
      • Export Cleaned Data
      • Dataset Configuration
  • Developer
    • Integration Process
    • Create API Key
    • Standard Request and Response
    • API
      • Import Text File
      • Import Web Page Task
      • Import Image Files
      • Import Audio Files
      • Import Video Files
      • View Import Task Details
      • Delete File Processing Task
    • Webhook
    • Error Code
    • Demo
  • Other
    • Community
    • Technical Support
Powered by GitBook
On this page
  1. Developer
  2. API

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


PreviousImport Web Page TaskNextImport Audio Files

Last updated 4 months ago