Model discovery
List models
Returns the model catalog available to your account. The model value in an inference request is an item's id. The response also carries the Anthropic list fields (has_more, first_id, last_id), so both official SDKs can parse it.
GET
/v1/modelsKey request parameters
| Parameter | Type | Description |
|---|
Key response parameters
| Parameter | Type | Description |
|---|---|---|
object | string | Always list |
data | ModelObject[] | Array of model objects |
data[].id | string | Model ID — the value to pass as model in inference requests |
data[].object | string | Always model |
data[].created | integer | Always 0; the catalog does not track creation time |
data[].owned_by | string | Always hashbid |
data[].model_icon_url | string | Optional model icon URL; omitted when unset |
data[].max_output_tokens | integer | Optional output token ceiling; omitted when the route carries no limit |
Integration examples
Replace the API key and model ID in these examples with your values.
cURL
curl https://hashbidx.ai/v1/models \
-H "Authorization: Bearer <YOUR_API_KEY>"Python
from openai import OpenAI
client = OpenAI(api_key="<YOUR_API_KEY>", base_url="https://hashbidx.ai/v1")
for model in client.models.list().data:
print(model.id)Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://hashbidx.ai/v1",
});
const models = await client.models.list();
console.log(models.data.map((model) => model.id));Go
req, _ := http.NewRequest("GET", "https://hashbidx.ai/v1/models", nil)
req.Header.Set("Authorization", "Bearer <YOUR_API_KEY>")
resp, err := http.DefaultClient.Do(req)Rust
let models = reqwest::Client::new()
.get("https://hashbidx.ai/v1/models")
.bearer_auth("<YOUR_API_KEY>")
.send().await?.json::<serde_json::Value>().await?;If the response includes X-Request-Id, include it when troubleshooting an issue.