Skip to main content
PUT
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Path Parameters

endpoint
enum<string>
required
Available options:
responses,
completions,
embeddings,
images,
transcriptions,
tts,
rerank

Body

application/json
model_id
string
required

The model id this org's "auto" should resolve to directly. Cannot be the literal string "auto".

Required string length: 1 - 255
fallback_language
enum<string>

tts endpoint only. The ISO 639-1 language that language: "auto" text-to-speech uses when the text is too short or ambiguous for detection to name a language (for /speech/tts, /speech/tts/stream and Responses audio output alike), in place of the built-in en. Omit it to clear it: a PUT replaces the whole policy.

Available options:
en,
zh,
hi,
es,
ar,
bn,
pt,
ru,
ja,
pa,
de,
ko,
fr,
tr,
it,
th,
pl,
nl,
id,
vi,
ur,
uk

Response

200 - application/json

OK

endpoint
enum<string>
required
Available options:
responses,
completions,
embeddings,
images,
transcriptions,
tts,
rerank
set_by
string
required
set_at
string<date-time>
required
mode
any
required
model_id
string
required
resolvable
boolean
required
fallback_language
enum<string> | null

tts rows only: the org's fallback language for language: "auto" text-to-speech, or null when not set (the built-in en applies).

Available options:
en,
zh,
hi,
es,
ar,
bn,
pt,
ru,
ja,
pa,
de,
ko,
fr,
tr,
it,
th,
pl,
nl,
id,
vi,
ur,
uk