TwinTune API
  • 🔊getting started
    • Requesting an API Key
  • 💻api endpoints
    • POST VC Inference
    • POST TTS Inference
    • GET VC Inference
    • GET TTS Inference
    • GET VC Models
  • 📖Types & Limits
    • List TTS Models
    • Inference Job
    • VC Model
    • Paginated Response
    • Pagination Meta
    • Rate Limits
  • 💡tips and recommendations
    • Build your Dataset
    • Audio Recording
Powered by GitBook
On this page
  • Create new VC Inference Job
  • Headers
  • Body Parameters
  • Response
  1. api endpoints

POST TTS Inference

PreviousPOST VC InferenceNextGET VC Inference

Last updated 10 months ago

Create new VC Inference Job

POST /v1/inferences-tts

Creates a voice conversions and adds it to the inference queue.

Headers

Name
Value

Content-Type

application/json

x-api-key

<token>

Body Parameters

Name
Type
Description

tts_text

text

text to be processed by the IA. Limit of 1000 characters.

tts_voice

text

name to TTS model.

You can see the available models for "tts_voice" in Types & Limits > List TTS Models .

Response

{
    "inferenceId": "123x456",
    "modelId": "123x456",
    "status": "RUNNING",
    "type": "TTS",
    "inferenceUrl": null,
    "jobStartTime": "2024-01-01 20:15:50.428000 +00:00",
    "jobEndTime": null
}
{"message": "Forbidden"}
{"message": "Payload Too Large"}
{
  "detail": [
    {
      "loc": [
        "query",
        ""
      ],
      "msg": "field required",
      "type": "value_error.missing"
    },
    {
      "loc": [
        "body",
        ""
      ],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}
{"error": "Rate limit exceeded."}

💻
inference job