> ## Documentation Index
> Fetch the complete documentation index at: https://developers.phrase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change your default settings

> Change the default settings of your account. Send only what changes. New projects start with these settings; existing projects keep theirs and are changed with `PATCH /v1/projects/{id}`. Which of the machine translation profile and the translation memory apply depends on the translation model, as in Studio: `plai` (Phrase Language AI) takes both, chosen by you; `aita` (AI Translation Agent) takes a translation memory, and Studio chooses its machine translation profile; `gpt-5-mini` and `gpt-4o-mini` take neither. Changing the model keeps the settings that still apply and clears the ones that do not; sending a setting that does not apply to the model is refused with `400` and says which model it needs. For `aita` the call looks up your machine translation profile in your Phrase TMS connection and answers `400` when there is none, as Studio does not let you save then. An engine that is not available to your organization is refused with `400` (see `GET /v1/tts/engines`). Answers with the settings as they are afterwards.



## OpenAPI

````yaml /openapi/phrase-studio.json patch /v1/preferences
openapi: 3.0.3
info:
  title: Studio API
  description: >-
    Studio turns audio and video into transcriptions, translations, subtitles
    and dubbing. Use this API to create projects, order translation and dubbing,
    follow the progress, and download the results.


    ## Authentication

    Send your Phrase Platform API token with every request, as `X-API-Key:
    <token>` or as `Authorization: Bearer <token>`. A missing, invalid or
    expired token is answered with `401`. `403` means the token is valid but the
    action is not allowed: the item is someone else's, a share does not include
    the step or language, or your organization is blocked.


    ## Typical flow

    1. Create a project with `POST /v1/projects`: upload files, or give direct
    links to media files. It answers with the project `id`. To add a recording
    to a project that exists, call `POST
    /v1/projects/{projectId}/recordings/upload-url`, upload the file to the url
    it returns, then call `POST /v1/projects/{projectId}/recordings`.

    2. Poll `GET /v1/projects/{projectId}/recordings/{recordingId}/status` until
    the transcription is `done`. Every long step answers `202` and runs in the
    background: you poll the status, you do not wait on the call.

    3. Optional: `POST
    /v1/projects/{projectId}/recordings/{recordingId}/estimates` tells what a
    translation costs before you start it.

    4. Order translation with `POST …/translate`, and wait until the status
    shows the language as `done`.

    5. Order dubbing with `POST …/dubbing`. A language must be translated before
    it can be dubbed, otherwise the call answers `400`.

    6. Read and download: `GET …/subtitles` for the text, the result endpoints
    for summary and insights, `POST …/exports` for a file, then `GET
    …/exports/{exportId}` until it is `done`.


    ## Credits

    Credits are minutes. Transcription and every new translation language use
    `ceil(duration / 60)` minutes of the recording. Dubbing, retranscription and
    retranslation use none. The estimate endpoint tells the price in advance.
    When an organization has no credits left, starting work is refused with
    `403` (`No remaining minutes available`): creating a project, adding a
    recording, transcribe, translate, dubbing, sync-dubbing and speech. Reading
    results, estimates and editing the text of subtitles still work. The same
    goes for a re-dub (`PUT .../subtitles` with `segmentsToRedub`), re-syncing a
    dubbing and generating speech with `POST /v1/tts/speech`: they make new
    speech, so a blocked organization is refused for them too.


    ## Errors

    Errors are JSON: `{ "statusCode": 400, "message": "...", "timestamp": "..."
    }`. The `message` says what to change.

    - `400` the request is invalid.

    - `401` the token is missing, invalid or expired.

    - `403` the token is valid but the action is not allowed: your share of a
    project does not include the step or language, the project does not exist or
    is not shared with you (project routes do not tell the two apart), or your
    organization has no credits left for an action that needs them.

    - `404` the item does not exist, or you may not manage it: a recording that
    is not in the project, or a glossary, template, insight, pronunciation set,
    subtitle profile, font or voice of your organization that does not exist.
    Settings of another organization answer `404` too.

    - `409` the request conflicts with what exists: a name that is taken, a
    recording that was added already, a speaker that is still in use, or a
    template that a trigger still uses. The message says which.

    - `429` too many requests; wait and try again.

    - `5xx` a failure on our side or at a provider; try again later.


    ## Where the ids come from

    Ids that Studio accepts but does not list belong to other Phrase products.
    `tmsProjectTemplateUid`, `termBases`, `mtProfileId` and
    `translationMemoryId` are Phrase TMS uids: get them from the Phrase TMS API
    (project templates, term bases, translation memories, machine translation
    profiles). `styleGuides` ids come from the Style Guides API. Both are
    described at https://developers.phrase.com/en/api/overview. Every other id
    (projects, recordings, glossaries, insights, pronunciations, templates,
    subtitle profiles, voices) comes from the list endpoints of this API.
  version: 1.0.0
servers:
  - url: https://api.studio.us.phrase.com
    description: Production US Environment
  - url: https://api.studio.eu.phrase.com
    description: Production EU Environment
security: []
tags:
  - name: Projects
    description: >-
      Create, list, open, rename, archive, copy and delete projects. A project
      holds one or more recordings. Start here with `POST /v1/projects`.
  - name: Recordings
    description: >-
      The recordings of a project: add one, follow its status, order translation
      and dubbing, manage its speakers, delete it. Long steps answer `202`; poll
      `GET …/status` for the result.
  - name: Subtitle Profiles
    description: >-
      Subtitle layout rules (line length, reading speed and so on). Pick one per
      language when you create a project. Members of your organization can read
      them; the owner or a manager changes them.
  - name: Fonts
    description: >-
      The custom fonts of your organization, the same as the Custom Fonts
      settings of Studio: list, rename, delete and download them. Fonts are
      uploaded in Studio, where you confirm that you have the right to use them.
      Use the `fontFamily` value of a family (`custom:<id>`) in a subtitle
      profile to burn subtitles in that font.
  - name: Pronunciations
    description: >-
      Sets of words with the way to say them, used when text is turned into
      speech. Members of your organization can read them; the owner or a manager
      changes them.
  - name: Glossaries
    description: >-
      Terms and their translations, applied when a recording is translated.
      Members of your organization can read them; the owner or a manager changes
      them.
  - name: Insights
    description: >-
      Questions Studio answers about a recording, such as topics or action
      items. Members of your organization can read them; the owner or a manager
      changes them.
  - name: Safe Communications
    description: >-
      The safe communication checks Studio can run on a recording. List them
      here, then use their ids when you create a project.
  - name: Subtitles
    description: >-
      Read and replace the subtitle tracks of a recording (transcription,
      translation, dubbing), and read their saved versions.
  - name: Templates
    description: >-
      Saved sets of project settings: languages, preferences and translation
      settings. Members of your organization can read them; the owner or a
      manager changes them.
  - name: Voices
    description: >-
      The saved voices ("My voices") of your organization. Use a voice id to dub
      a speaker with it.
  - name: Exports
    description: >-
      Get the results as files: subtitles as text or documents, the source
      media, and the dubbed audio of a segment. A file export can run in the
      background; poll `GET …/exports/{exportId}` until it is `done`.
  - name: Results
    description: >-
      The saved results of a recording: summary, custom attributes, insights and
      safe communications. Order them with `summarize` and `transcribe`; they
      run in the background.
  - name: Dubbing audio
    description: >-
      Work on the audio of a dubbed language: bring the dubbing back in line
      with the translation, merge, split and change the speed of segments,
      replace the background audio, and read the state of those jobs.
  - name: Credits
    description: >-
      What an action would cost in credits, before you start it. Nothing is
      started and nothing is charged.
  - name: Text to speech
    description: >-
      Turn text into speech with a voice and an engine, and browse the voices:
      all, recommended and favorites. It does not need a project.
  - name: Preferences
    description: >-
      Your default settings for new projects: models, translation memory,
      machine translation profile and text-to-speech engine. A project can
      change them for itself.
paths:
  /v1/preferences:
    patch:
      tags:
        - Preferences
      summary: Change your default settings
      description: >-
        Change the default settings of your account. Send only what changes. New
        projects start with these settings; existing projects keep theirs and
        are changed with `PATCH /v1/projects/{id}`. Which of the machine
        translation profile and the translation memory apply depends on the
        translation model, as in Studio: `plai` (Phrase Language AI) takes both,
        chosen by you; `aita` (AI Translation Agent) takes a translation memory,
        and Studio chooses its machine translation profile; `gpt-5-mini` and
        `gpt-4o-mini` take neither. Changing the model keeps the settings that
        still apply and clears the ones that do not; sending a setting that does
        not apply to the model is refused with `400` and says which model it
        needs. For `aita` the call looks up your machine translation profile in
        your Phrase TMS connection and answers `400` when there is none, as
        Studio does not let you save then. An engine that is not available to
        your organization is refused with `400` (see `GET /v1/tts/engines`).
        Answers with the settings as they are afterwards.
      operationId: updatePreferences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePreferenceRequest'
            examples:
              plai:
                summary: >-
                  Translate with Phrase Language AI and choose the profile and
                  memory
                value:
                  translationModelName: plai
                  mtProfileId: cA2aNh2txyVmZ
                  translationMemoryId: tm-uid-123
              aita:
                summary: >-
                  Translate with the AI Translation Agent (Studio chooses the
                  profile)
                value:
                  translationModelName: aita
                  translationMemoryId: tm-uid-123
              gpt:
                summary: Translate with a GPT model
                value:
                  translationModelName: gpt-5-mini
              engine:
                summary: Dub new projects with another engine
                value:
                  ttsProvider: azure_tts
      responses:
        '200':
          description: The settings after the change
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Preference'
              examples:
                example:
                  summary: Example
                  value:
                    insightsModelType: GPT
                    insightsModelName: gpt-5-mini
                    translationModelType: CUSTOM
                    translationModelName: plai
                    mtProfileId: cA2aNh2txyVmZ
                    translationMemoryId: tm-uid-123
                    ttsProvider: eleven_v3
        '400':
          description: >-
            Bad request: a value is not valid, a model Studio does not offer, a
            profile or memory that does not apply to the model, or no machine
            translation profile for `aita`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                e400:
                  summary: >-
                    Bad request: a field is missing, empty or has the wrong
                    type.
                  value:
                    success: false
                    statusCode: 400
                    message: name must be a string
                    timestamp: '2026-01-01T00:00:00.000Z'
        '401':
          description: Unauthorized (invalid API key).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                e401:
                  summary: Unauthorized (invalid API key).
                  value:
                    success: false
                    statusCode: 401
                    message: Authorization failed
                    timestamp: '2026-01-01T00:00:00.000Z'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                e500:
                  summary: Internal server error.
                  value:
                    success: false
                    statusCode: 500
                    message: Internal server error
                    timestamp: '2026-01-01T00:00:00.000Z'
      security:
        - apiKeyAuth: []
components:
  schemas:
    UpdatePreferenceRequest:
      type: object
      description: >-
        The default settings to change. Send only the fields that change; the
        others keep their value. Which of the machine translation profile and
        the translation memory apply depends on the translation model, as in
        Studio: `plai` (Phrase Language AI) takes both, chosen by you; `aita`
        (AI Translation Agent) takes a translation memory, and Studio chooses
        its machine translation profile; `gpt-5-mini` and `gpt-4o-mini` take
        neither. The model types follow from the models and are not sent. A
        field that is not a setting is ignored.
      properties:
        insightsModelName:
          type: string
          enum:
            - gpt-5-mini
            - gpt-4o-mini
          description: >-
            Model that writes summaries and insights. `gpt-5-mini` or
            `gpt-4o-mini`.
        translationModelName:
          type: string
          enum:
            - aita
            - plai
            - gpt-5-mini
            - gpt-4o-mini
          description: >-
            Model that translates. `aita` is the AI Translation Agent (best
            quality), `plai` is Phrase Language AI, the two GPT models are the
            fast ones. Which of the machine translation profile and the
            translation memory apply depends on the translation model, as in
            Studio: `plai` (Phrase Language AI) takes both, chosen by you;
            `aita` (AI Translation Agent) takes a translation memory, and Studio
            chooses its machine translation profile; `gpt-5-mini` and
            `gpt-4o-mini` take neither. Changing the model also changes the
            type.
        mtProfileId:
          type: string
          description: >-
            Phrase TMS machine translation profile uid, for the translation
            model `plai` only. Get it from the Phrase TMS API (machine translate
            profiles); Studio has no endpoint that lists it. Send an empty
            string to remove it. For `aita` Studio chooses the profile itself
            (the first one of your Phrase TMS connection, or the one already set
            while it still exists), so do not send it; a GPT model has none.
            Sending it for any other model is refused with `400`.
        translationMemoryId:
          type: string
          description: >-
            Phrase TMS translation memory uid, for the translation models `plai`
            and `aita`. Get it from the Phrase TMS API (translation memories);
            Studio has no endpoint that lists it. Send an empty string to remove
            it. Changing to a GPT model removes it; setting it while the model
            is a GPT model is refused with `400`.
        ttsProvider:
          type: string
          enum:
            - eleven_v2
            - eleven_v3
            - eleven_v4
            - eleven_v4_turbo
            - azure_tts
            - voiseed
            - gemini_2_5_flash_tts
          description: >-
            Text-to-speech engine that new projects dub with. Some engines are
            switched on or off per organization: `GET /v1/tts/engines` lists the
            ones you can use, and an engine that is not available to your
            organization is refused with `400`.
    Preference:
      type: object
      description: >-
        Your default settings. New projects start with them; a project can
        change them for itself with `PATCH /v1/projects/{id}`.
      properties:
        insightsModelType:
          type: string
          enum:
            - GPT
            - CUSTOM
          description: >-
            Provider type of the model: `GPT` for the GPT models, `CUSTOM` for
            `plai` and `aita`. It follows from the model.
        insightsModelName:
          type: string
          description: >-
            Model that writes summaries and insights: `gpt-5-mini` or
            `gpt-4o-mini`.
        translationModelType:
          type: string
          enum:
            - GPT
            - CUSTOM
          description: >-
            Provider type of the model: `GPT` for the GPT models, `CUSTOM` for
            `plai` and `aita`. It follows from the model.
        translationModelName:
          type: string
          description: >-
            Model that translates: `aita` (AI Translation Agent), `plai` (Phrase
            Language AI), `gpt-5-mini` or `gpt-4o-mini`.
        mtProfileId:
          type: string
          description: >-
            Phrase TMS machine translation profile uid. Only `plai` and `aita`
            use one; an empty string means none is set.
          minLength: 0
        translationMemoryId:
          type: string
          description: >-
            Phrase TMS translation memory uid. Only `plai` and `aita` use one;
            an empty string means none is set.
          minLength: 0
        ttsProvider:
          type: string
          enum:
            - eleven_v2
            - eleven_v3
            - eleven_v4
            - eleven_v4_turbo
            - azure_tts
            - voiseed
            - gemini_2_5_flash_tts
          description: >-
            Text-to-speech engine that new projects dub with. Some engines are
            switched on or off per organization: `GET /v1/tts/engines` lists the
            ones you can use, and an engine that is not available to your
            organization is refused with `400`.
      required:
        - insightsModelType
        - insightsModelName
        - translationModelType
        - translationModelName
        - mtProfileId
        - translationMemoryId
        - ttsProvider
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
          description: >-
            `false`. Only errors of the upload service (`POST /v1/projects`)
            carry it; other errors have just `statusCode`, `message` and
            `timestamp`.
        statusCode:
          type: integer
          example: 400
          description: HTTP status code of the error.
        message:
          type: string
          example: Bad Request
          description: What went wrong, in words that can be shown to the caller.
        timestamp:
          type: string
          format: date-time
          example: '2025-01-01T00:00:00.000Z'
          description: When the error happened.
      required:
        - statusCode
        - message
        - timestamp
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your Phrase Platform API token in the `X-API-Key` header. A missing,
        invalid or expired token is answered with `401`. `403` means the token
        is valid but the action is not allowed for it.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.