模型管理 · 模型配额 API (0.1.0)

Download OpenAPI specification:

Public HTTP contract derived from the current route signatures and Pydantic request models. Internal /api/private routes are excluded. Dynamic controller results remain an open JSON schema.

User Quota Remain Check

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
query Parameters
model_id_list
required
string (Model Id List)

Responses

Response samples

Content type
application/json
null

User Quota Delete

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

conf_id_list
required
Array of any (Conf Id List)

Responses

Request samples

Content type
application/json
{
  • "conf_id_list": [
    ]
}

Response samples

Content type
application/json
null

Model Quota

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

model_id
required
string (Model Id) = 19 characters

Bound model ID

billing_type
required
integer (Billing Type) [ 0 .. 1 ]
input_tokens
required
number (Input Tokens) [ 1 .. 9999.9999 ]

Total input token quota

output_tokens
number (Output Tokens) [ 0 .. 9999.9999 ]
Default: 0

Total output token quota

currency_type
required
integer (Currency Type) [ 0 .. 1 ]
referprice_in
required
number (Referprice In) [ 0 .. 1000 ]

Input token unit price

referprice_out
number (Referprice Out) [ 0 .. 1000 ]
Default: 0

Output token unit price

num_type
required
Array of integers (Num Type) = 2 items [ items [ 0 .. 5 ] ]
price_type
required
Array of strings (Price Type) = 2 items [ items^(thousand|million)$ ]

Responses

Request samples

Content type
application/json
{
  • "model_id": "stringstringstrings",
  • "billing_type": 0,
  • "input_tokens": 1,
  • "output_tokens": 0,
  • "currency_type": 0,
  • "referprice_in": 0,
  • "referprice_out": 0,
  • "num_type": [
    ],
  • "price_type": [
    ]
}

Response samples

Content type
application/json
null

Model Quota {Conf_Id}

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
path Parameters
conf_id
required
string (Conf Id)

Responses

Response samples

Content type
application/json
null

Model Quota {Conf_Id}

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
path Parameters
conf_id
required
any (Conf Id)
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

input_tokens
required
number (Input Tokens) [ 1 .. 9999.9999 ]

Total input token quota

output_tokens
number (Output Tokens) [ 0 .. 9999.9999 ]
Default: 0

Total output token quota

currency_type
required
integer (Currency Type) [ 0 .. 1 ]
referprice_in
required
number (Referprice In) [ 0 .. 1000 ]

Input token unit price

referprice_out
number (Referprice Out) [ 0 .. 1000 ]
Default: 0

Output token unit price

billing_type
required
integer (Billing Type) [ 0 .. 1 ]
num_type
required
Array of integers (Num Type) = 2 items [ items [ 0 .. 5 ] ]
price_type
required
Array of strings (Price Type) = 2 items [ items^(thousand|million)$ ]

Responses

Request samples

Content type
application/json
{
  • "input_tokens": 1,
  • "output_tokens": 0,
  • "currency_type": 0,
  • "referprice_in": 0,
  • "referprice_out": 0,
  • "billing_type": 0,
  • "num_type": [
    ],
  • "price_type": [
    ]
}

Response samples

Content type
application/json
null

Model Quota List

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
query Parameters
page
required
integer (Page) >= 0
size
integer (Size) >= 0
Default: 20
rule
required
string (Rule) ^(create_time|update_time|model_name|total_pr...
order
required
string (Order) ^(desc|asc)$
name
string (Name)
Default: ""
api_model
string (Api Model)
Default: ""

Responses

Response samples

Content type
application/json
null

User Quota

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
Request Body schema: application/json
required

JSON request accepted by the implemented handler signature. Dictionary fields are validated by the controller.

required
Array of objects (List)

Responses

Request samples

Content type
application/json
{
  • "list": [
    ]
}

Response samples

Content type
application/json
null

User Quota List

Current route signature. Successful results are returned by the controller without a FastAPI response_model; no fixed response object is enforced at this route.

Authorizations:
BearerAuth
query Parameters
conf_id
required
string (Conf Id) = 19 characters ^[0-9]*$
page
required
integer (Page) >= 0
size
integer (Size) >= 0
Default: 20
rule
required
string (Rule) ^(create_time|update_time)$
order
required
string (Order) ^(desc|asc)$

Responses

Response samples

Content type
application/json
null