Model Retrieval API
Retrieve Model
Endpoint to retrieve metadata and configuration details of a specified model using its unique identifier.
GET https://api.relax.ai/v1/models/{model}
Example Request
curl https://api.relax.ai/v1/models/DeepSeek-R1-0528 \ -H "Authorization: Bearer $RELAX_API_KEY"
import openai
client = OpenAI( api_key=RELAX_API_KEY, base_url='https://api.relax.ai/v1/',)
response = client.models.retrieve("DeepSeek-R1-0528")
print(response)
import OpenAI from "openai";
const openai = new OpenAI({ apiKey: "RELAX_API_KEY", baseURL: "https://api.relax.ai/v1/"});
(async () => { const model = await openai.models.retrieve("DeepSeek-R1-0528"); console.log(model);})();
Response
Returns the metadata about the specified model name.
Retrieve Model Response
{ "created": 1744048986, "id": "DeepSeek-R1-0528", "object": "model", "owned_by": "relaxAI", "permission": [], "root": "", "parent": ""}
Request Body
The following parameters can be included in the request body:
model
- Type: string
- Required: Yes
- Description: The name of the specific model for which to retrieve metadata.