跳转到内容

Execute voice.create with the selected model and a frozen quote

POST
/t1/voices/tasks
curl --request POST \
--url https://api.tansr.com/t1/voices/tasks \
--header 'Content-Type: application/json' \
--header 'idempotency-key: example' \
--header 'x-tansr-app-token: <x-tansr-app-token>' \
--data '{ "model": "example", "targetModel": "example", "samples": [ { "url": "example" } ], "name": "example" }'

Requires its application capability. Every model remains subject to explicit supplier wire, meter, price and quota admission. A registered endpoint is not a claim that all vendor models are enabled.

idempotency-key
required
string
>= 16 characters <= 128 characters

Reuse the same key and original input after a transport interruption. An unknown outcome must not be retried with a new key.

Media typeapplication/json
object
model
string
>= 1 characters <= 256 characters
targetModel
required
string
>= 1 characters <= 128 characters
samples
required
Array<object>
>= 1 items <= 1 items
object
url
required
string
>= 1 characters <= 4096 characters
name
string
>= 1 characters <= 64 characters
Examplegenerated
{
"model": "example",
"targetModel": "example",
"samples": [
{
"url": "example"
}
],
"name": "example"
}

Application-private operation receipt; result may expire independently of billing and idempotency.

Media typeapplication/json
object
protocol
required
string
Allowed value: nonchat-operations-v1
taskId
required
string
requestId
required
string
operation
required
string
model
required
string
status
required
Any of:
string
Allowed value: preparing
pollIntervalMs
required
integer
>= 1000
retainedUntil
required
string
resultAvailable
required
boolean
result
meter
object
errorCode
string
billing
required
object
state
required
Any of:
string
Allowed value: unreserved
cost
required
Any of:
string
Example
{
"protocol": "nonchat-operations-v1",
"status": "preparing",
"billing": {
"state": "unreserved"
}
}

Application-private operation receipt; result may expire independently of billing and idempotency.

Media typeapplication/json
object
protocol
required
string
Allowed value: nonchat-operations-v1
taskId
required
string
requestId
required
string
operation
required
string
model
required
string
status
required
Any of:
string
Allowed value: preparing
pollIntervalMs
required
integer
>= 1000
retainedUntil
required
string
resultAvailable
required
boolean
result
meter
object
errorCode
string
billing
required
object
state
required
Any of:
string
Allowed value: unreserved
cost
required
Any of:
string
Example
{
"protocol": "nonchat-operations-v1",
"status": "preparing",
"billing": {
"state": "unreserved"
}
}

Invalid operation input

Capability or model not authorized

Idempotency key conflict

Selected binding is not configured for this operation