Skip to content

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

from relaxai import Relaxai
client = Relaxai(api_key=RELAX_API_KEY)
response = client.models.retrieve_model("DeepSeek-R1-0528")
print(response)
import { Relaxai } from 'relaxai';
const relaxai = new Relaxai({
apiKey: RELAX_API_KEY
});
const model = await client.models.retrieveModel('DeepSeek-R1-0528');
console.log(model);
package main
import (
"context"
"fmt"
"github.com/relax-ai/go-sdk"
"github.com/relax-ai/go-sdk/option"
)
func main() {
client := relaxai.NewClient(
option.WithAPIKey("RELAX_API_KEY"),
)
model, err := client.Models.GetModel(context.TODO(), "DeepSeek-R1-0528")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v
", model.ID)
}
Terminal window
curl https://api.relax.ai/v1/models/DeepSeek-R1-0528 \
-H "Authorization: Bearer $RELAX_API_KEY"

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.