The Ultimate File Conversion API allows you to convert files programmatically by sending a POST
request with your file and parameters. Our API supports a wide range of conversion types including:
Note: For non-image conversions, files must be uploaded; URL input is allowed only for image conversion.
To authenticate your requests, set your API key in the environment variable GOOGLE_API_KEY
. This API key is required for all requests.
Example (using environment variable):
export GOOGLE_API_KEY=your_api_key_here
All file conversion requests should be sent to the following endpoint:
POST https://ultimateaiconverter.com/convert
Your request must be sent as multipart/form-data
with the following parameters:
tf_to_onnx
– TensorFlow SavedModel (ZIP) to ONNXpt_to_onnx
– PyTorch (.pt) to ONNX (requires dummy_input)pt_to_tflite
– PyTorch (.pt) to TFLite (requires dummy_input)pt_to_engine
– PyTorch (.pt) to TensorRT Engine (.engine) (requires dummy_input)pt_to_json
– PyTorch (.pt) to JSONh5_to_savedmodel
– Keras (.h5) to TensorFlow SavedModelh5_to_tflite
– Keras (.h5) to TFLiteh5_to_json
– Keras (.h5) to JSONh5_to_onxx
– Keras (.h5) to ONNXcsv_to_json
– CSV/Excel to JSONjson_to_csv
– JSON to CSVyaml_to_json
– YAML to JSONjson_to_yaml
– JSON to YAMLpickle_to_json
– Pickle to JSONcsv_to_parquet
– CSV/Excel to Parquethdf5_to_csv
– HDF5 to CSVmd_to_html
– Markdown to HTMLipynb_to_html
– Jupyter Notebook to HTMLimage_conversion
– Image Conversionvideo_conversion
– Video Conversionaudio_conversion
– Audio Conversionpt_to_onnx
, pt_to_tflite
, pt_to_engine
, and pt_to_json
. Provide a comma-separated shape (e.g., 1,3,224,224
).
image_conversion
. Specify the desired image format (e.g., JPEG, PNG, BMP, GIF, WEBP, TIFF, etc.).
video_conversion
. Specify the desired video format (e.g., MP4, AVI, MOV, MKV).
audio_conversion
. Specify the desired audio format (e.g., MP3, WAV, FLAC, OGG, AAC).
Example 1: Convert a TensorFlow SavedModel (ZIP) to ONNX:
curl -X POST https://ultimateaiconverter.com/convert \ -F "model_file=@/path/to/your/model.zip" \ -F "conversion_type=tf_to_onnx"
Example 2: Convert a PyTorch model to ONNX:
curl -X POST https://ultimateaiconverter.com/convert \ -F "model_file=@/path/to/your/model.pt" \ -F "conversion_type=pt_to_onnx" \ -F "dummy_input=1,3,224,224"
Example 3: Convert an image by URL (only for image conversion):
curl -X POST https://ultimateaiconverter.com/convert \ -F "file_url=https://example.com/yourimage.png" \ -F "conversion_type=image_conversion" \ -F "target_format=JPEG"
Example 4: Convert an audio file (MP3 to WAV):
curl -X POST https://ultimateaiconverter.com/convert \ -F "model_file=@/path/to/your/audio.mp3" \ -F "conversion_type=audio_conversion" \ -F "target_audio_format=wav"
Question | Answer |
---|---|
Do I need to provide an API key? | Yes. Set your API key in the GOOGLE_API_KEY environment variable. |
Can I convert files directly from a URL? | URL input is only allowed for image conversion. For all other conversions, please upload your file. |
What file formats are supported? |
Models: ZIP, .pt, .h5 Data: CSV, Excel (.xls, .xlsx), JSON, YAML, Pickle, HDF5 Documents: Markdown (.md), Jupyter Notebook (.ipynb), PDF, TXT Images: JPEG, PNG, BMP, GIF, WEBP, TIFF, etc. Media: Video (MP4, AVI, MOV, MKV), Audio (MP3, WAV, FLAC, OGG, AAC) |
Which audio and video formats are supported? |
Audio: MP3, WAV, FLAC, OGG, AAC Video: MP4, AVI, MOV, MKV |
What are the file size limits? |
Image Conversion: Maximum 25 MB. Video Conversion: Maximum 250 MB. |
multipart/form-data
POST request.