List models¶
List the Genesis models that the current credentials can call, and obtain a model ID for later requests.
GET https://token.moi.matrixorigin.cn/v1/models
Before you call¶
Prepare credentials with Genesis access. Replace $GENESIS_ACCESS_TOKEN with your access credential.
curl "https://token.moi.matrixorigin.cn/v1/models" \
-H "Authorization: Bearer $GENESIS_ACCESS_TOKEN"
Request parameters¶
This is a GET request. It accepts neither query parameters nor a request body; pass the access credential only in the Authorization request header.
Successful response¶
{
"data": [
{ "id": "$MODEL_ID" }
]
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Models that the current credentials can call. |
The following table expands each item in the example data array.
Field |
Type |
Description |
|---|---|---|
|
string |
Model ID. |
Next steps¶
Copy the required model ID and pass it as model to Chat Completions, Responses, Embeddings, or Rerank.
Last updated on