# Models transcription create

`POST /models/v1/audio/transcriptions` · Rivier · models

The words of a recording (base64 sound, or a sound file of the project's drive) in segments with a start and end in seconds, with the language found; names and terms in the word list are spelled as given. Runs on a route whose models take sound, under the project's limits.

- Scope: models:write
- Graphql: Mutation.modelsTranscriptionCreate
- Sdk: models.transcription.create
- Cli: models transcription create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9._-]{0,39}$",
      "description": "A route whose models take sound"
    },
    "audio": {
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "minLength": 16,
          "maxLength": 22000000,
          "description": "base64"
        },
        "format": {
          "type": "string",
          "minLength": 2,
          "maxLength": 12,
          "description": "wav, mp3, aac, ogg, flac, webm, m4a"
        }
      },
      "required": [
        "data",
        "format"
      ],
      "additionalProperties": false
    },
    "asset": {
      "type": "string",
      "format": "uuid",
      "description": "A sound file of the project's drive, in place of audio"
    },
    "language": {
      "type": "string",
      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
      "description": "The language spoken, when known"
    },
    "words": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "maxItems": 200,
      "description": "Names and terms to spell as given"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9._-]{0,39}$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "model"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/models/v1/audio/transcriptions' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "string"
}'
```
