Get Model List
The Ace Data Cloud platform supports various AI models, including OpenAI GPT, Claude, Gemini, DeepSeek, Grok, Kimi, etc. Through this interface, you can obtain a list of all available models on the platform, and the interface format is compatible with the OpenAI API's /v1/models specification.
This interface does not require authentication.
¶ Interface Description
- Request Method: GET
- Request URL:
https://platform.acedata.cloud/api/v1/models/ - Request Headers:
- accept:
application/json
- accept:
¶ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
owned_by |
string | No | Filter by provider, such as openai, anthropic, google |
type |
string | No | Filter by model type |
capability |
string | No | Filter by capability |
¶ CURL Request Example
Get all models:
curl -X GET \
-H "accept: application/json" \
"https://platform.acedata.cloud/api/v1/models/"
Filter by provider:
curl -X GET \
-H "accept: application/json" \
"https://platform.acedata.cloud/api/v1/models/?owned_by=anthropic"
¶ Response Example
{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1700000000,
"owned_by": "openai"
},
{
"id": "claude-sonnet-4-20250514",
"object": "model",
"created": 1700000000,
"owned_by": "anthropic"
},
{
"id": "gemini-2.5-flash",
"object": "model",
"created": 1700000000,
"owned_by": "google"
},
{
"id": "deepseek-chat",
"object": "model",
"created": 1700000000,
"owned_by": "deepseek"
}
]
}
¶ Response Field Description
| Field | Type | Description |
|---|---|---|
object |
string | Fixed value "list" |
data |
array | List of models |
data[].id |
string | Model ID (used to specify the model in API calls) |
data[].object |
string | Fixed value "model" |
data[].created |
integer | Creation timestamp |
data[].owned_by |
string | Model provider |
¶ Code Example
Python:
import requests
url = "https://platform.acedata.cloud/api/v1/models/"
headers = {"accept": "application/json"}
response = requests.get(url, headers=headers)
data = response.json()
for model in data["data"]:
print(f"Model: {model['id']} (Provider: {model['owned_by']})")
Using in OpenAI SDK:
from openai import OpenAI
client = OpenAI(
api_key="sk-xxxxxxxx",
base_url="https://api.acedata.cloud"
)
models = client.models.list()
for model in models:
print(f"Model: {model.id}")
