Get MIDI Generation Details
curl --request GET \
--url https://apibox.erweima.ai/api/v1/midi/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://apibox.erweima.ai/api/v1/midi/record-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apibox.erweima.ai/api/v1/midi/record-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apibox.erweima.ai/api/v1/midi/record-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apibox.erweima.ai/api/v1/midi/record-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apibox.erweima.ai/api/v1/midi/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apibox.erweima.ai/api/v1/midi/record-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e",
"recordTaskId": -1,
"audioId": "e231****-****-****-****-****8cadc7dc",
"callbackUrl": "https://example.callback",
"completeTime": 1760335255000,
"midiData": {
"state": "complete",
"instruments": [
{
"name": "Drums",
"notes": [
{
"pitch": 73,
"start": 0.036458333333333336,
"end": 0.18229166666666666,
"velocity": 1
},
{
"pitch": 61,
"start": 0.046875,
"end": 0.19270833333333334,
"velocity": 1
}
]
},
{
"name": "Electric Bass (finger)",
"notes": [
{
"pitch": 44,
"start": 7.6875,
"end": 7.911458333333333,
"velocity": 1
}
]
}
]
},
"successFlag": 1,
"createTime": 1760335251000,
"errorCode": null,
"errorMessage": null
}
}Vocal Removal
Get MIDI Generation Details
Retrieve detailed information about a MIDI generation task including complete note data for all detected instruments.
GET
/
api
/
v1
/
midi
/
record-info
Get MIDI Generation Details
curl --request GET \
--url https://apibox.erweima.ai/api/v1/midi/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://apibox.erweima.ai/api/v1/midi/record-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apibox.erweima.ai/api/v1/midi/record-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apibox.erweima.ai/api/v1/midi/record-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apibox.erweima.ai/api/v1/midi/record-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apibox.erweima.ai/api/v1/midi/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apibox.erweima.ai/api/v1/midi/record-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e",
"recordTaskId": -1,
"audioId": "e231****-****-****-****-****8cadc7dc",
"callbackUrl": "https://example.callback",
"completeTime": 1760335255000,
"midiData": {
"state": "complete",
"instruments": [
{
"name": "Drums",
"notes": [
{
"pitch": 73,
"start": 0.036458333333333336,
"end": 0.18229166666666666,
"velocity": 1
},
{
"pitch": 61,
"start": 0.046875,
"end": 0.19270833333333334,
"velocity": 1
}
]
},
{
"name": "Electric Bass (finger)",
"notes": [
{
"pitch": 44,
"start": 7.6875,
"end": 7.911458333333333,
"velocity": 1
}
]
}
]
},
"successFlag": 1,
"createTime": 1760335251000,
"errorCode": null,
"errorMessage": null
}
}Usage Guide
- Use this endpoint to check the status of a MIDI generation task
- Access complete MIDI note data once processing is complete
- Retrieve detailed instrument and note information
- Track processing progress and any errors that may have occurred
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The task ID returned from the MIDI generation request |
Developer Notes
- The
midiDatafield contains the complete MIDI data as a structured object with instruments and notes - MIDI data includes all detected instruments with pitch, timing, and velocity for each note
- MIDI generation records are retained for 14 days
- Important: When using vocal separation with
type: split_stem, themidiDatamay be empty.
Authorizations
🔑 API Authentication
All endpoints require authentication using Bearer Token.
Get API Key
- Visit the API Key Management Page to obtain your API Key
Usage
Add to request headers:
Authorization: Bearer YOUR_API_KEY
⚠️ Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately from the management page
Query Parameters
The task ID returned from the MIDI generation request
