Markitdown (File conversion to md format)
Convert other files to md files-.file supported types:
".pptx", ".docx", ".xlsx", ".xls", ".csv", ".json", ".pdf",
".jpg", ".jpeg", ".png", ".zip", ".html", ".xml",
".wav", ".mp3", ".m4a"-.url supported types:
WikipediaPrice: 0.01 PTC / 1M Token
Request
Example:Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
source_data_type
enum<string>
requiredSource input types (text, file, url). If source_data_type is "file", the "file" field must be provided; otherwise, provide the "source_data" field.
Allowed values:textfileurl
Source input data: if source_data_type is "file", the "file" field must be provided; otherwise, provide the "source_data" field.
Uploaded file: if source_data_type is "file", the "file" field must be provided; otherwise, provide the "source_data" field.
response_type
enum<string>
requiredReturn type: (file, text)
Request samples
curl --location --request POST 'https://api.302.ai/302/markitdown/convert' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--form 'source_data_type="text"' \
--form 'source_data=""' \
--form 'file=@""' \
--form 'response_type="text"'
Modified at 2025-06-12 04:05:40