Create enhancement
/v1/speech-enhancerCleans up the speech in an audio or video asset you own. The job runs on GPU in the background and separates the recording into three stems: the cleaned voice, any music, and the room tone and ambience. Poll the job or subscribe to speech_enhancer.completed, then export the mix you want with the levels you want.
- A typical recording finishes in one to three minutes.
- Credits are charged when the job starts and stay spent if it fails.
- Credits:
- 1 voiceover credit per second of the source asset, charged when the job starts
- Rate limit:
- Heavy tier, 2/s and 10/min
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| asset_id | body | string | Yes | An audio or video asset you own, with a known duration. Up to 10 minutes long. Duration drives the credit charge, so assets with unknown length are rejected. |
Request
curl -X POST "https://api.crayo.ai/v1/speech-enhancer" \
-H "Authorization: Bearer $CRAYO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"asset_id": "cm7x1k2p40001abcd"
}'Response
{
"success": true,
"enhancement": {
"id": "cm7x1p4e10002abcd",
"status": "queued",
"credits_charged": 72
}
}Errors
- 400UNKNOWN_FIELDThe body carries a field this endpoint does not accept.
- 400INVALID_ASSET_TYPEThe asset is an image rather than audio or video.
- 400INVALID_ASSETThe asset has no known duration. Upload it again.
- 400VALIDATION_ERRORThe source is longer than 10 minutes.
- 401MISSING_API_KEYNo Authorization header was sent, or it does not carry a crayo_sk_ key.
- 401UNAUTHORIZEDThe key sent is malformed, expired, or revoked.
- 402INSUFFICIENT_CREDITSYour voiceover balance is below the media duration.
- 404NOT_FOUNDNo asset with that id belongs to your account.
- 429JOB_LIMIT_REACHEDYou already have 8 enhancements running.
- 429RATE_LIMITEDOver the rate limit. Wait Retry-After seconds.
- 500SERVER_ERRORSomething failed on our side. Retry with backoff.