Get a voice operation
curl --request GET \
--url https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"operationId": "638f14d6-81ba-49f7-8c21-a16f34dca78f",
"status": "active",
"name": "Narrator",
"voiceId": "839000000000000001",
"previewUrl": "https://example.com/narrator-preview.wav"
}Kling 4.0
Get a Kling voice operation
Check whether a cloned voice is ready to use or its deletion has completed.
GET
/
video
/
kling
/
voice-operations
/
{operationId}
Get a voice operation
curl --request GET \
--url https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/video/kling/voice-operations/{operationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"operationId": "638f14d6-81ba-49f7-8c21-a16f34dca78f",
"status": "active",
"name": "Narrator",
"voiceId": "839000000000000001",
"previewUrl": "https://example.com/narrator-preview.wav"
}Pass the
operationId returned by create or delete, using an API key from the same workspace. Polling is free. HTTP 200 means the lookup succeeded. Read status to determine the outcome.
| Status | What to do |
|---|---|
pending | Creation is still running. Poll again with the same operationId. |
active | Copy the string voiceId into your Omni request. Open previewUrl to hear the sample when available. If a deletion failed, the voice returns to this state and message explains why. |
failed | Creation failed. Read message for details. |
deleting | Keep polling. The voice still occupies a slot. |
deleted | Deletion is confirmed and the slot has been released. |
Path Parameters
Response
Current state, including pending or deleting. An active voice can be used in Omni.