# Models ## Retrieve `client.Models.Get(ctx, model) (*LlamaModel, error)` **get** `/models/{model}` ### Parameters - **model:** `string` ### Returns - `LlamaModel` ### Example ```go package main import ( "context" "fmt" "github.com/stainless-sdks/-go" "github.com/stainless-sdks/-go/option" ) func main() { client := llamaapi.NewClient( option.WithAPIKey("My API Key"), ) llamaModel, err := client.Models.Get(context.TODO(), "Llama-3.3-70B-Instruct") if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", llamaModel.ID) } ``` ## List `client.Models.List(ctx) (*[]LlamaModel, error)` **get** `/models` Lists the currently available models, and provides basic information about each one. ### Returns - Not supported - **ID:** `string` The unique model identifier, which can be referenced in the API. - **Created:** `int64` The creation time of the model. - **Object:** `LlamaModelObject` The object type, which is always "model" - `LlamaModelObject` - **OwnedBy:** `string` The owner of the model. ### Example ```go package main import ( "context" "fmt" "github.com/stainless-sdks/-go" "github.com/stainless-sdks/-go/option" ) func main() { client := llamaapi.NewClient( option.WithAPIKey("My API Key"), ) llamaModels, err := client.Models.List(context.TODO()) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", llamaModels) } ``` ## Domain Types ### Llama Model - Not supported - **ID:** `string` The unique model identifier, which can be referenced in the API. - **Created:** `int64` The creation time of the model. - **Object:** `LlamaModelObject` The object type, which is always "model" - `LlamaModelObject` - **OwnedBy:** `string` The owner of the model.