models
List available models
Section titled “List available models”List all available models
Request
Section titled “Request”GET /modelsSuccessful response
Response Schema
Section titled “Response Schema”| Field | Type | Required | Description |
|---|---|---|---|
| object | string | Yes | - |
| data | Array<Model> | Yes | - |
Response Example
Section titled “Response Example”{ "object": "list", "data": [ { "id": "gpt-4o-mini", "object": "model", "created": 1626777600, "owned_by": "openai" }, { "id": "qwen-plus", "object": "model", "created": 1626777600, "owned_by": "ali" }, { "id": "claude-opus-4.5", "object": "model", "created": 1626777600, "owned_by": "custom" }, { "id": "whisper-1", "object": "model", "created": 1626777600, "owned_by": "openai" }, { "id": "speech-2.6-hd", "object": "model", "created": 1626777600, "owned_by": "minimax" } ]}Code Examples
Section titled “Code Examples”JavaScript (Fetch)
Section titled “JavaScript (Fetch)”const response = await fetch('https://api.r9s.ai/v1/models', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_API_KEY' }});
const data = await response.json();console.log(data);Python (requests)
Section titled “Python (requests)”import requests
url = "https://api.r9s.ai/v1/models"headers = { "Authorization": "Bearer YOUR_API_KEY"}
response = requests.get(url, headers=headers)data = response.json()print(data)curl -X GET "https://api.r9s.ai/v1/models" \ -H "Authorization: Bearer YOUR_API_KEY"Retrieve model details
Section titled “Retrieve model details”Retrieve detailed information for a specified model
Request
Section titled “Request”GET /models/{model}Path Parameters
Section titled “Path Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name |
Successful response
Response Schema
Section titled “Response Schema”| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Model identifier |
| object | string | Yes | - |
| created | integer | Yes | Creation timestamp |
| owned_by | string | Yes | Model owner |
Response Example
Section titled “Response Example”{ "id": "gpt-4o-mini", "object": "model", "created": 1626777600, "owned_by": "openai"}Code Examples
Section titled “Code Examples”JavaScript (Fetch)
Section titled “JavaScript (Fetch)”const response = await fetch('https://api.r9s.ai/v1/models/{model}', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_API_KEY' }});
const data = await response.json();console.log(data);Python (requests)
Section titled “Python (requests)”import requests
url = "https://api.r9s.ai/v1/models/{model}"headers = { "Authorization": "Bearer YOUR_API_KEY"}
response = requests.get(url, headers=headers)data = response.json()print(data)curl -X GET "https://api.r9s.ai/v1/models/{model}" \ -H "Authorization: Bearer YOUR_API_KEY"Schema Reference
Section titled “Schema Reference”ModelListResponse
Section titled “ModelListResponse”| Field | Type | Required | Description |
|---|---|---|---|
| object | string | Yes | - |
| data | Array<Model> | Yes | - |
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Model identifier |
| object | string | Yes | - |
| created | integer | Yes | Creation timestamp |
| owned_by | string | Yes | Model owner |
Related APIs
Section titled “Related APIs”- API Overview - Learn about authentication and basic information
- chat - View chat related APIs
- responses - View responses related APIs
- messages - View messages related APIs
- completions - View completions related APIs
- edits - View edits related APIs
- images - View images related APIs
- embeddings - View embeddings related APIs
- engine-embeddings - View engine-embeddings related APIs
- moderations - View moderations related APIs
- audio - View audio related APIs
- search - View search related APIs
- proxy - View proxy related APIs