Convertaverse API
Integrate powerful file conversion capabilities into your applications with our RESTful API.
Quick Start
Get started in minutes
1Get your API Key
Create an API key from your dashboard. Keep it secure - it provides access to your account.
2Make your first request
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/image" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@photo.png" \
-F "output_format=webp"3Download the result
The API returns a JSON response with a download_url. Use it to download your converted file.
Authentication
All API requests require authentication using your API key. Include it in the request header:
X-API-Key: YOUR_API_KEYSecure
Keys are hashed and stored securely
Rate Limited
100 requests per minute
Expiration
Optional key expiration
Response Format
Successful conversion response:
{
"success": true,
"filename": "converted_file.webp",
"download_url": "/api/download/abc123...",
"original_size": 1024000,
"converted_size": 256000,
"credits_used": 1
}Error response:
{
"success": false,
"error": "Insufficient credits",
"credits_needed": 5,
"credits_available": 2
}Endpoints
Image Conversion
/api/convert/image1 creditConvert images between formats (PNG, JPG, WebP, GIF, BMP, HEIC)
Parameters
fileFilerequired- The image file to convertoutput_formatstringrequired- Target format (png, jpg, webp, gif, bmp)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/image" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@image.png" \
-F "output_format=webp"/api/convert/image/resize1 creditResize images to specific dimensions
Parameters
fileFilerequired- The image file to resizewidthnumber- Target width in pixelsheightnumber- Target height in pixelsmaintain_aspect_ratioboolean- Maintain aspect ratio (default: true)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/image/resize" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@image.png" \
-F "width=800" \
-F "height=600"/api/convert/image/crop1 creditCrop images to specific region
Parameters
fileFilerequired- The image file to cropxnumberrequired- Left coordinate of crop boxynumberrequired- Top coordinate of crop boxwidthnumberrequired- Width of crop box in pixelsheightnumberrequired- Height of crop box in pixelsExample
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/image/crop" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@image.png" \
-F "x=100" \
-F "y=100" \
-F "width=500" \
-F "height=300"/api/convert/image/remove-background2 creditsRemove background from images (AI-powered)
Parameters
fileFilerequired- The image file (PNG, JPG, WebP)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/image/remove-background" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@photo.jpg"Audio Conversion
/api/convert/audio3 creditsConvert audio files between formats (MP3, WAV, OGG, FLAC, AAC, M4A)
Parameters
fileFilerequired- The audio file to convertoutput_formatstringrequired- Target format (mp3, wav, ogg, flac, aac)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/audio" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@audio.wav" \
-F "output_format=mp3"Video Conversion
/api/convert/video5 creditsConvert video files between formats (MP4, AVI, MOV, WebM, MKV)
Parameters
fileFilerequired- The video file to convertoutput_formatstringrequired- Target format (mp4, avi, mov, webm, mkv)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/video" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@video.mov" \
-F "output_format=mp4"/api/convert/video-to-audio3 creditsExtract audio from video files
Parameters
fileFilerequired- The video fileoutput_formatstringrequired- Audio format (mp3, wav)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/video-to-audio" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@video.mp4" \
-F "output_format=mp3"/api/convert/video-to-gif5 creditsConvert video clips to animated GIF
Parameters
fileFilerequired- The video file (MP4, AVI, MOV, WebM)fpsnumber- Frames per second (default: 10, range: 5-30)widthnumber- Output width in pixels (default: 480, max: 1280)start_timenumber- Start time in secondsdurationnumber- Duration in seconds (max: 30)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/video-to-gif" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@video.mp4" \
-F "fps=15" \
-F "width=320" \
-F "duration=5"Document Conversion
/api/convert/document2 creditsConvert documents (PDF to Word, Word to PDF, etc.)
Parameters
fileFilerequired- The document file to convertoutput_formatstringrequired- Target format (pdf, docx, txt)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/document" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@document.docx" \
-F "output_format=pdf"PDF Tools
/api/convert/pdf1 per page creditConvert PDF to images
Parameters
fileFilerequired- The PDF fileoutput_formatstringrequired- Image format (png, jpg)pagesstring- Page selection (e.g., '1-3', 'all')Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/pdf" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@document.pdf" \
-F "output_format=png" \
-F "pages=1-3"/api/convert/pdf-merge1 per file creditMerge multiple PDF files into one
Parameters
filesFile[]required- PDF files to merge (multiple)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/pdf-merge" \
-H "X-API-Key: YOUR_API_KEY" \
-F "files=@doc1.pdf" \
-F "files=@doc2.pdf" \
-F "files=@doc3.pdf"/api/convert/pdf-split1 creditExtract specific pages from a PDF
Parameters
fileFilerequired- The PDF filepagesstringrequired- Pages to extract (e.g., '1,3,5-7')Example
curl -X POST "https://convertaverse-production.up.railway.app/api/convert/pdf-split" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@document.pdf" \
-F "pages=1,3,5-7"API Key Management
/api/api-keys0 creditList all your API keys
Parameters
Example
curl -X GET "https://convertaverse-production.up.railway.app/api/api-keys" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"/api/api-keys0 creditCreate a new API key
Parameters
namestringrequired- Friendly name for the keyexpires_in_daysnumber- Days until expiration (optional)Example
curl -X POST "https://convertaverse-production.up.railway.app/api/api-keys" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Production API Key"}'/api/api-keys/{key_id}/stats0 creditGet usage statistics for an API key
Parameters
key_idnumberrequired- The API key IDdaysnumber- Days to look back (default: 30, max: 90)Example
curl -X GET "https://convertaverse-production.up.railway.app/api/api-keys/123/stats?days=30" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"/api/api-keys/{key_id}/usage0 creditGet usage history for an API key
Parameters
key_idnumberrequired- The API key IDlimitnumber- Number of records (default: 50)offsetnumber- Skip records (for pagination)Example
curl -X GET "https://convertaverse-production.up.railway.app/api/api-keys/123/usage?limit=20" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"/api/api-keys/{key_id}0 creditDelete an API key
Parameters
key_idnumberrequired- The API key IDExample
curl -X DELETE "https://convertaverse-production.up.railway.app/api/api-keys/123" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"