Endpoints

39 endpoints, generated from the contracts, version 1.0.0.

Sign in and keys

POST/v1/auth/otp/requestno key needed

Otp Request

No authentication.

Request body

Request body
FieldTypeNotes
emailrequiredstring
localestringdefault "en"
curl -X POST "https://api.mredgeengine.com/v1/auth/otp/request" \
  -H "content-type: application/json" \
  -d '{"email":"[email protected]"}'

Responses

  • 202 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
POST/v1/auth/otp/verifyno key needed

Otp Verify

No authentication.

Request body

Request body
FieldTypeNotes
emailrequiredstring
coderequiredstringmax 10 chars
namestring
terms_versionstring
device_idstring
platformstring
countrystringmax 2 chars
referral_codestring
visitor_idstring
curl -X POST "https://api.mredgeengine.com/v1/auth/otp/verify" \
  -H "content-type: application/json" \
  -d '{"email":"string","code":"string"}'

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
POST/v1/auth/refreshno key needed

Refresh

No authentication.

Request body

Request body
FieldTypeNotes
refresh_tokenrequiredstring
curl -X POST "https://api.mredgeengine.com/v1/auth/refresh" \
  -H "content-type: application/json" \
  -d '{"refresh_token":"string"}'

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
GET/v1/wallet

Wallet

Send your key in the x-api-key header.

curl -X GET "https://api.mredgeengine.com/v1/wallet" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
GET/v1/api-keys

List Keys

Send your key in the x-api-key header.

curl -X GET "https://api.mredgeengine.com/v1/api-keys" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
POST/v1/api-keys

Create Key

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
namerequiredstringmax 80 chars
spend_cap_creditsintegermin 0
scopesarray<string>
rate_limit_per_minintegermin 1
curl -X POST "https://api.mredgeengine.com/v1/api-keys" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"name":"Production app","spend_cap_credits":5000}'

Responses

  • 201 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • 402 Upsell problem (HTTP 402) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
PATCH/v1/api-keys/{kid}

Patch Key

Send your key in the x-api-key header.

ParameterInNotes
kidrequiredpathstring

Request body

Request body
FieldTypeNotes
namestringmax 80 chars
spend_cap_creditsintegermin 0
scopesarray<string>
rate_limit_per_minintegermin 1
curl -X PATCH "https://api.mredgeengine.com/v1/api-keys/YOUR_KID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{}'

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
DELETE/v1/api-keys/{kid}

Revoke Key

Send your key in the x-api-key header.

ParameterInNotes
kidrequiredpathstring
curl -X DELETE "https://api.mredgeengine.com/v1/api-keys/YOUR_KID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 204 Successful Response
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)
GET/v1/api-keys/{kid}/usage

Key Usage

Send your key in the x-api-key header.

ParameterInNotes
kidrequiredpathstring
rangequerystring
curl -X GET "https://api.mredgeengine.com/v1/api-keys/YOUR_KID/usage" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 Successful Response (application/json)
  • 400 Problem (application/problem+json) (application/problem+json)
  • 401 Problem (application/problem+json) (application/problem+json)
  • default Problem (application/problem+json) (application/problem+json)

Text to speech

POST/v1/tts/jobs

Create a TTS job and get the quote in the response

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
textrequiredstringmax 200000 chars
voice_idstring
languagestringISO 639-3; required if voice_id is absent; the value auto detects the language from the text (see POST /v1/language/detect)
qualitystandard | expressivedefault "standard"
formatmp3 | wav | flac | ogg | m4adefault "mp3"
sample_rate22050 | 24000 | 44100 | 48000
bitrate128 | 192 | 320
speednumberdefault 1, min 0.5, max 2
subtitlesarray<string>
clientobject
client.platformweb | android | ios | api
client.app_versionstring
client.devicestring
curl -X POST "https://api.mredgeengine.com/v1/tts/jobs" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"text":"string"}'

Responses

  • 202 created (application/json)
  • 402 Error (application/problem+json)
  • 409 Error (application/problem+json)
POST/v1/tts/quote

Price a TTS request without creating a job

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
textrequiredstringmax 200000 chars
voice_idstring
languagestringISO 639-3; required if voice_id is absent; the value auto detects the language from the text (see POST /v1/language/detect)
qualitystandard | expressivedefault "standard"
formatmp3 | wav | flac | ogg | m4adefault "mp3"
sample_rate22050 | 24000 | 44100 | 48000
bitrate128 | 192 | 320
speednumberdefault 1, min 0.5, max 2
subtitlesarray<string>
clientobject
client.platformweb | android | ios | api
client.app_versionstring
client.devicestring
curl -X POST "https://api.mredgeengine.com/v1/tts/quote" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"text":"string"}'

Responses

  • 200 quote (application/json)
POST/v1/engine/tts

Developer API synchronous TTS up to 2500 characters (audio bytes, or chunked with stream=true)

Send your key in the x-api-key header.

ParameterInNotes
streamqueryboolean

Request body

Request body
FieldTypeNotes
textrequiredstringmax 200000 chars
voice_idstring
languagestringISO 639-3; required if voice_id is absent; the value auto detects the language from the text (see POST /v1/language/detect)
qualitystandard | expressivedefault "standard"
formatmp3 | wav | flac | ogg | m4adefault "mp3"
sample_rate22050 | 24000 | 44100 | 48000
bitrate128 | 192 | 320
speednumberdefault 1, min 0.5, max 2
subtitlesarray<string>
clientobject
client.platformweb | android | ios | api
client.app_versionstring
client.devicestring
curl -X POST "https://api.mredgeengine.com/v1/engine/tts" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"text":"Welcome. Your order has shipped and will arrive on Friday.","language":"yor","quality":"standard","format":"mp3"}' \
  --output speech.mp3

Responses

  • 200 audio (audio/mpeg)
  • 413 Error (application/problem+json)

Speech to text, voice changer and isolation

POST/v1/stt

Speech to text job (used by the voice app and chat voice notes). Result data has text, language, words[] and segments[].

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
upload_idrequiredstringupload id or asset id
languagestring
diarizebooleandefault false
subtitlesarray<string>
curl -X POST "https://api.mredgeengine.com/v1/stt" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"upload_id":"00000000-0000-4000-8000-000000000000"}'

Responses

  • 202 job (application/json)
POST/v1/voice-changer

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
upload_idrequiredstring
voice_idstringa clone or designed voice of yours
reference_upload_idstringor a recording of the target voice
formatmp3 | wav | flac | ogg | m4adefault "wav"
curl -X POST "https://api.mredgeengine.com/v1/voice-changer" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"upload_id":"00000000-0000-4000-8000-000000000000"}'

Responses

  • 202 job (application/json)
  • 409 Error (application/problem+json)
POST/v1/voice-isolation

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
upload_idrequiredstring
voice_idstring
formatmp3 | wav | flac | ogg | m4adefault "wav"
curl -X POST "https://api.mredgeengine.com/v1/voice-isolation" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"upload_id":"00000000-0000-4000-8000-000000000000"}'

Responses

  • 202 job (application/json)

Voices and languages

GET/v1/languages

Languages with preview sample and availability

Send your key in the x-api-key header.

ParameterInNotes
qquerystring
tts_onlyqueryboolean
countryqueryISO 3166 country code. string
familyqueryLanguage family name (see /v1/languages/summary). string
featurequeryOnly languages where this feature is available or gpu_only (or has the given status). tts | stt | dubbing | cloning
statusqueryOverall status, or the status of `feature` when set. available | gpu_only | not_yet
regionqueryall | africa | global
kindquerylanguage | macrolanguage
top_levelqueryHide individual languages that belong to a macrolanguage (for example Swahili variants). boolean
sortqueryname | speakers | availability
litequeryShort rows (feature statuses only) for pickers. boolean
cursorquerystring
limitqueryinteger
curl -X GET "https://api.mredgeengine.com/v1/languages" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 page (application/json)
GET/v1/voices

Voice library

Send your key in the x-api-key header.

ParameterInNotes
languagequerystring
accentquerystring
genderquerystring
agequerystring
usequerystring
qquerystring
cursorquerystring
limitqueryinteger
curl -X GET "https://api.mredgeengine.com/v1/voices" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 page (application/json)
GET/v1/voices/{voice_id}/preview

302 to a short-lived preview audio url

Send your key in the x-api-key header.

ParameterInNotes
voice_idrequiredpathstring
curl -X GET "https://api.mredgeengine.com/v1/voices/YOUR_VOICE_ID/preview" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 302 redirect
GET/v1/voice-clones

Send your key in the x-api-key header.

curl -X GET "https://api.mredgeengine.com/v1/voice-clones" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 list (application/json)
POST/v1/voice-clones

Create a clone; consent recorded; requires plan feature

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
namerequiredstring
languagestring
sample_upload_idsrequiredarray<string>
modeinstant | professionaldefault "instant"
consentrequiredobject
consent.speaker_namerequiredstring
consent.statement_textrequiredstringthe exact text the speaker read in the consent recording
consent.consent_upload_idrequiredstring
consent.confirmed_own_voicerequiredboolean
curl -X POST "https://api.mredgeengine.com/v1/voice-clones" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"name":"string","sample_upload_ids":["00000000-0000-4000-8000-000000000000"],"consent":{"speaker_name":"string","statement_text":"string","consent_upload_id":"00000000-0000-4000-8000-000000000000","confirmed_own_voice":true}}'

Responses

  • 202 clone (application/json)
  • 403 Error (application/problem+json)
GET/v1/voice-clones/{id}

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X GET "https://api.mredgeengine.com/v1/voice-clones/YOUR_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 clone (application/json)
DELETE/v1/voice-clones/{id}

Delete voice and revoke consent; stored samples removed

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X DELETE "https://api.mredgeengine.com/v1/voice-clones/YOUR_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 204 deleted
GET/v1/pronunciations

Send your key in the x-api-key header.

ParameterInNotes
languagequerystring
curl -X GET "https://api.mredgeengine.com/v1/pronunciations" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 list (application/json)
PUT/v1/pronunciations

Upsert by (word, language)

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
idstring
wordrequiredstring
respellingrequiredstring
languagerequiredstring
curl -X PUT "https://api.mredgeengine.com/v1/pronunciations" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"word":"string","respelling":"string","language":"string"}'

Responses

  • 200 item (application/json)
DELETE/v1/pronunciations/{id}

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X DELETE "https://api.mredgeengine.com/v1/pronunciations/YOUR_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 204 deleted

Webhooks

GET/v1/webhooks

List webhooks

Send your key in the x-api-key header.

curl -X GET "https://api.mredgeengine.com/v1/webhooks" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 ok (application/json)
POST/v1/webhooks

Register a webhook (https only, public hosts only). The signing secret is returned once.

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
urlrequiredstring
eventsarray<string>
curl -X POST "https://api.mredgeengine.com/v1/webhooks" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"url":"string"}'

Responses

  • 201 created (application/json)
DELETE/v1/webhooks/{id}

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X DELETE "https://api.mredgeengine.com/v1/webhooks/YOUR_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 204 deleted
POST/v1/webhooks/{id}/test

Send a signed ping event

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X POST "https://api.mredgeengine.com/v1/webhooks/YOUR_ID/test" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 ok (application/json)

Jobs, uploads and status

GET/v1/capabilities

What can run right now (closed states are honest)

Send your key in the x-api-key header.

curl -X GET "https://api.mredgeengine.com/v1/capabilities" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 ok (application/json)
GET/v1/jobs

History

Send your key in the x-api-key header.

ParameterInNotes
productquerydefaults to x-product-code. string
kindqueryvideo_export | tts | tts_long | stt | voice_change | voice_isolate | voice_clone_instant | voice_clone_pro | dub | sfx | music | image_generate | image_edit | video_generate | video_upscale | cutout | lipsync | director_episode | director_combine | clipper_project | clipper_rerender | timeline_render | publish_post | import_url | transcode | thumbnail | script_write | tts_dialogue | tts_project | voice_design
statusqueryquoted | reserved | queued | running | succeeded | failed | cancelled
cursorquerystring
limitqueryinteger
curl -X GET "https://api.mredgeengine.com/v1/jobs" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 page (application/json)
GET/v1/jobs/{id}

One job with stages and result asset urls

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X GET "https://api.mredgeengine.com/v1/jobs/YOUR_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 job (application/json)
  • 404 Error (application/problem+json)
POST/v1/jobs/{id}/cancel

Cancel; credits released

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X POST "https://api.mredgeengine.com/v1/jobs/YOUR_ID/cancel" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 job (application/json)
GET/v1/jobs/{id}/download

Pre-signed URL for a job output. Audio is converted to the requested format on demand; video (roles video, export_video) and sidecar files are delivered as made (format/bitrate/sample_rate/bit_depth then answer 422). The storage host answers HTTP Range requests (206), so players can seek.

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
rolequerywhich output to deliver; default is the audio, else the video. audio | video | export_video | captions_srt | captions_vtt
redirectquerytrue answers 302 to the pre-signed URL (inline, for a player or video tag) instead of the JSON. boolean
formatquerymp3 | wav | flac | ogg | m4a
bitratequery128 | 192 | 320
sample_ratequeryinteger
bit_depthquery16 | 24
curl -X GET "https://api.mredgeengine.com/v1/jobs/YOUR_ID/download" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 url (application/json)
  • 302 redirect to the pre-signed URL (redirect=true)
  • 409 Error (application/problem+json)
GET/v1/jobs/{id}/subtitles

Subtitles or word timings of a tts/stt job

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
fmtrequiredquerysrt | vtt | json
curl -X GET "https://api.mredgeengine.com/v1/jobs/YOUR_ID/subtitles?fmt=VALUE" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 200 file (text/plain)
POST/v1/uploads

Start a pre-signed (multipart) upload

Send your key in the x-api-key header.

Request body

Request body
FieldTypeNotes
filenamerequiredstringmax 255 chars
content_typerequiredstring
sizerequiredintegermin 1
purposemedia | voice_note | voice_sample | consent_audio | clipper_source | reference_image | document | otherdefault "media"
curl -X POST "https://api.mredgeengine.com/v1/uploads" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{"filename":"string","content_type":"string","size":1}'

Responses

  • 201 upload (application/json)
  • 413 Error (application/problem+json)
  • 415 Error (application/problem+json)
POST/v1/uploads/{id}/complete

Finish upload; probes the file and creates the asset

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring

Request body

Request body
FieldTypeNotes
partsarray<object>
parts[].numberrequiredinteger
parts[].etagrequiredstring
curl -X POST "https://api.mredgeengine.com/v1/uploads/YOUR_ID/complete" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine" \
  -H "content-type: application/json" \
  -d '{}'

Responses

  • 200 upload (application/json)
POST/v1/uploads/{id}/abort

Send your key in the x-api-key header.

ParameterInNotes
idrequiredpathstring
curl -X POST "https://api.mredgeengine.com/v1/uploads/YOUR_ID/abort" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "x-product-code: engine"

Responses

  • 204 aborted