跳转到主要内容
POST
POST /admin/api/price-tiers/batch

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

One step of a batch write. Every item of one batch lands in a single revision commit: either all of them are durable or none is.

create
object
必填

响应

(object | null)[]

Success

A context or service-tier override inside one rule. Every per-million price is optional: None inherits, zero is explicitly free.

audioInputPerMillion
string | null
必填
audioOutputPerMillion
string | null
必填
cacheCreationPerMillion
object[]
必填
cacheReadPerMillion
string | null
必填
cachedAudioInputPerMillion
string | null
必填
id
string
必填
imageInputPerMillion
string | null
必填
imageOutputPerMillion
string | null
必填
inputPerMillion
string | null
必填
minPromptTokens
integer<int64>
必填
multiplier
string | null
必填
outputPerMillion
string | null
必填
priceRuleId
string
必填
priority
integer<int32>
必填
reasoningPerMillion
string | null
必填
serviceTier
string | null
必填

None is a context tier; otherwise standard, priority, flex, … .

videoInputPerMillion
string | null
必填
videoPerMillion
string | null
必填