curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-Key: Key '.$xKey,
'X-Secret: Secret '.$xSecret,
"Content-Type: multipart/form-data; boundary=\"" . $boundary."\"",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '--'.$boundary.'
Content-Disposition: form-data; name="model_id"
4
--'.$boundary.'
Content-Disposition: form-data; name="params"
Content-Type: application/json
'.$data['params'].'
--'.$boundary.'--');