Choose a model versionΒΆ

Caution

You can use a model by specifying a model version name or alias. Check all model versions of the character you are using by referring to character version api.

Important

Related paramters:

  • model_version

To use a model with the version alias of latest.

curl \
  --request POST \
  --url https://typecast.ai/api/speak \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer $API_TOKEN" \
  --data '{
    "text": "My name is Typecast.",
    "lang": "auto",
    "actor_id": "${24-letters-your_actor_id}",
    "model_version": "latest"
  }'

To use a model with a version name of v1

curl \
  --request POST \
  --url https://typecast.ai/api/speak \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer $API_TOKEN" \
  --data '{
    "text": "My name is Typecast.",
    "lang": "auto",
    "actor_id": "${24-letters-your_actor_id}",
    "model_version": "v1"
  }'