Developer API
Back to HomeAudio-to-MIDI APIfor your code
Use AI-MIDI as an Audio-to-MIDI APIfor your product, script, or creative workflow.
Convert MP3, WAV, FLAC, OGG, and M4A audio files into editable MIDI with the HTTP API or Python code. Create an API key, buy credits, and run MIDI transcription from your own code.
How to use
01
Create an API key
Manage your key from the API account page and keep it in server-side code or local scripts.
02
Convert from your code
Upload an audio file from code and run MIDI transcription without opening the web converter.
03
Manage usage
Check your credit balance, recent API activity, and billing status from your API account.
Build with the HTTP API
Send a request with your API key from any language or backend, and get MIDI back in the response.
- Call the endpoint from any language or backend.
- Send audio as multipart form data and get MIDI back in the response.
- Authenticate with your API key; only successful API jobs spend credits.
shell
1curl -X POST "https://api.ai-midi.com/v1/convert" \2 -H "Authorization: Bearer YOUR_API_KEY" \3 -F "audio=@song.mp3" \4 -F "model=piano" \5 --output song.midBuild with Python code
Install the package, pass your API key, and call convert from your own script or backend.
- Upload audio files and receive standard MIDI output.
- Keep API keys on server-side code, not in public clients.
- Only successful API jobs spend credits.
python code
1import aimidi2 3client = aimidi.Client(api_key="aim_...")4job = client.convert("song.mp3", model="piano")5job.save("song.mid")API pricing
API onlyChoose a one-time credit pack for API conversions. Credits follow the same rules across Python SDK and HTTP API requests.
API and Transcription balances are separate. API credits cannot be used for Transcription.
Starter
20% off until Aug 31, 23:59 UTC
$9.99$7.99one-time
Credits
540
Up to
45 min
Small scripts and first integrations.
- 1 credit per 5 seconds of audio
- 12 credit minimum
- Valid for 12 months from purchase
Standard
20% off until Aug 31, 23:59 UTC
$29.99$23.99one-time
Credits
1,680
Up to
140 min
Regular conversion workflows.
- 1 credit per 5 seconds of audio
- 12 credit minimum
- Valid for 12 months from purchase
Professional
20% off until Aug 31, 23:59 UTC
$99.99$79.99one-time
Credits
5,760
Up to
480 min
Batch jobs and production testing.
- 1 credit per 5 seconds of audio
- 12 credit minimum
- Valid for 12 months from purchase
Paid API credits expire 12 months after purchase. Refund eligibility is assessed per Paddle transaction: once any credit from that transaction is consumed by a successful API job, the transaction is non-refundable; partial refunds are not available. Refund policy
FAQ
Key details for buying credits, running conversions, and using the API responsibly.
- Credits pay for audio-to-MIDI conversion from code. 1 credit covers 5 seconds of audio, and each conversion has a 12 credits minimum.
- If the system fails after credits are held, those credits are returned automatically. Files rejected before processing do not spend credits.
- Refund eligibility is assessed for the whole Paddle transaction, not individual pack quantities or remaining credits. See the Refund Policy for the full conditions.
- Paid credits expire 12 months after purchase. When the account contains credits from multiple purchases, credits with the earliest expiration date are used first.
- Upload audio files that you have the rights or permission to process. Do not upload copyrighted recordings unless you have those rights.
- Use the API account page to create or regenerate an API key, check your credit balance, and review recent API activity.
Credit and usage terms
The key credit, refund, and upload responsibility rules are shown here. Company and policy details are available through the links below.
Credit scope
Paid credits expire 12 months after purchase, and credits with the earliest expiration date are used first. Credits are not cash, e-money, securities, or stored-value payment instruments. They may only be used for SORI API services and cannot be transferred, resold, exchanged for cash, or used with third-party merchants.
Refunds and adjustments
Refund eligibility is assessed per Paddle transaction. See the Refund Policy for the transaction-level consumption and adjustment rules.
Failed jobs
System-failed jobs return held credits automatically. Files rejected before processing do not spend credits.
Upload responsibility
Do not upload copyrighted recordings unless you have the rights or permission to process them.
