List models
Endpoint
GET
/v1/modelsReturns every model you can call right now. Model IDs are authoritative here.
Request
Authenticate with Authorization: Bearer sk-moyiapi-xxxxxx or x-api-key: sk-moyiapi-xxxxxx. No request body.
Parameters
None.
Response
{
"object": "list",
"data": [
{"id": "claude-sonnet-5", "object": "model", "owned_by": "anthropic"},
{"id": "gpt-5.6-sol", "object": "model", "owned_by": "openai"}
]
}
| Field | Notes |
|---|---|
object |
Always list |
data[].id |
The model ID to use in requests |
data[].object |
Always model |
data[].owned_by |
The model vendor, such as anthropic, openai, or google |
Examples
curl https://api.moyiapi.com/v1/models \
-H "Authorization: Bearer sk-moyiapi-xxxxxx"
Errors
| HTTP status | error.type |
When it happens |
|---|---|---|
| 401 | missing_auth_credential / invalid_api_key / invalid_bearer_token |
Authentication failed; see Authentication |