Skip to main content

Get All Model Cards

GET 

https://api.pharia.example.com/v1/studio/models

Get all ModelCard from the list of models that are available.

Responses

Successful Response

Schema
  • Array [
  • nameName (string)required

    The name of the model

    statusStatus (string)required

    The current availability status of the model. Currently supported states are 'available' and 'unavailable'

    Possible values: [available, unavailable]

    description objectrequired

    A brief description of the model's capabilities and features

    anyOf
    string
    max_context_sizeMax Context Size (integer)required

    The maximum number of tokens the model can process in a single input

    alignedAligned (boolean)required
    semantic_embeddingSemantic Embedding (boolean)required

    Whether the model can generate semantic embeddings

    worker_typeWorker Type (string)required

    Type of worker that serves the model. Can either be 'luminous' or 'vllm'. If 'luminous' is set, the model supports advanced completion parameters. If called with these parameters and it is not supported, it will raise an error

    multimodalMultimodal (boolean)required

    Whether the model can process multiple types of input data (e.g., text, images)

    chatChat (boolean)required

    Whether the model is supported by the chat endpoint

    completion_typeCompletion Type (string)required

    The completion type supported by the model. It states if the model has not been trained to support completions.

    Possible values: [full, none]

    prompt_templatePrompt Template (string)required

    The prompt template that should be used to prompt the model

    category object

    The category of the model

    anyOf
    string
    linkLink (string)required

    The link to the model card

    maximum_completion_tokens object

    The maximum number of tokens the model will provide for the output.

    anyOf
    integer
  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.pharia.example.com/v1/studio/models");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.pharia.example.com/v1/studio
ResponseClear

Click the Send API Request button above and see the response here!