propose_write
creative

Designs a new voice from a description (age, accent, tone, pace, character) into this store's voice library, with up to

Changed on

Designs a new voice from a description (age, accent, tone, pace, character) into this store's voice library, with up to three spoken previews; a voice recording speaks with it by its voice_id. With from_media_id it designs nothing: it keeps that preview of an earlier design as the voice, for 0 credits (replaces_voice_id: the voice it takes the place of, archived and removed from the provider account). Spends credits: with an API key whose write grant covers credit_spend for creative it executes at once within the grant's per-call and per-day credit limits; otherwise it is a card a person approves in Magistry, and nothing is queued or charged until then. Re-priced when it executes: refused at no cost if the price moved or passes max_credits. The answer carries the request_id: read the request by it for its status and files.

post/api/v1/tools/design_voice

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopescreative:write

Headers

Idempotency-Key, string

Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
name, string required

The voice's name in the library; unique in this store.

description, string required

What the voice sounds like.

sample_text, string

What the previews say, in the voice's language. Left out, the provider writes one.

model, 'eleven-v3'

Default eleven-v3.

from_media_id, string uuid

Keep this preview instead of designing: the media id of a preview an earlier design_voice left in the library (generation_get, voice_list). Free; leave sample_text out.

replaces_voice_id, string uuid

With from_media_id: the library voice the kept preview replaces. It is archived and removed from the provider account, which frees its slot.

max_credits, integer required

The most credits this may spend. Refused at no cost when the quote is higher, now or when it executes.

idempotency_key, string required

Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision