CosmicAC Logo

Transcribe audio with a Parakeet endpoint

Transcribe audio with a Parakeet endpoint using the CosmicAC CLI or curl.

Get a transcription from a Parakeet endpoint. Use the CosmicAC CLI with an audio URL, or curl with a local file or a URL.

Prerequisites

You need the following before you start:

  • A running Parakeet Managed Inference Job with a serving endpoint. See Create a Managed Inference Job (Parakeet).
  • Your API key, if the endpoint requires an authorization header. See Create an API key.
  • Audio to transcribe. The CLI accepts a hosted URL, and curl accepts a local file or a URL.

Steps

Find your endpoint name

List your endpoints:

cosmicac models healthcheck

Each endpoint appears as Endpoint: <endpoint-name>. Copy the name of your Parakeet endpoint.

Send the transcription

You need the API key only if you enabled Require Authorization header when you created the job. Otherwise, omit --api-key and the Authorization header.

Replace <endpoint-name> with your endpoint name, <api-key> with the key you created, and <audio-url> with a URL to the audio file.

cosmicac inference transcribe \
  --endpoint-id <endpoint-name> \
  --api-key <api-key> \
  --audio-url <audio-url>

The CLI reads the inference URL from your config. Add --prompt to guide the transcription.

Next steps

On this page