Endpoints
List models
GET /models returns the models your key can use, with their context length, capabilities and prices.
GET /api/v1/models
Requires the models:list permission.
Request
curl https://alphaproxy.ai/api/v1/models \
-H "Authorization: Bearer $ALPHAPROXY_API_KEY"
from openai import OpenAI
client = OpenAI(base_url="https://alphaproxy.ai/api/v1", api_key="sk_...")
for model in client.models.list():
print(model.id)
Response
A list in the OpenAI format. Each model adds an alphaproxy object with details. Models are sorted by id, and only models your plan can use are listed.
{
"object": "list",
"data": [
{
"id": "MODEL_ID",
"object": "model",
"created": 0,
"owned_by": "alphaproxy",
"alphaproxy": {
"plan": "pro",
"tier": "frontier",
"modalities": ["text"],
"capabilities": {},
"context_length": 200000,
"pricing_usd_per_m": {
"input": 3.0,
"output": 15.0,
"cache_read": 0.3,
"cache_write": 3.75
}
}
}
]
}
| Field | Meaning |
|---|---|
id |
The value to pass as model in a chat completion. |
alphaproxy.tier |
The model's tier in AlphaProxy's catalog. |
alphaproxy.modalities |
What the model accepts, such as text or image. |
alphaproxy.context_length |
The most tokens the model takes in one request. |
alphaproxy.pricing_usd_per_m |
Prices in US dollars per million tokens, for input, output and cache reads and writes. Charged in credits at $0.01 each. |
Values in the example are illustrative.