v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

Models

Retrieve a list of available models for various tasks. Use the query parameter task to filter by task type, e.g. chat.

get/models/v2/list/models

Query parameters

taskstring
Example:chat

The specific task type to filter models. Run list.tasks() for the full list. Some supported tasks include: audio-classification, audio-text-to-text, automatic-speech-recognition, chat, depth-estimation, document-question-answering, feature-extraction, fill-mask, image-classification, image-feature-extraction, image-segmentation, image-text-to-text, image-to-text, mask-generation, object-detection, question-answering, sentence-similarity, summarization, text-classification, text-generation, text-to-audio, text-to-image, text-to-speech, text-to-video, text2text-generation, token-classification, translation, unconditional-image-generation, video-classification, video-text-to-text, visual-question-answering, zero-shot-classification, zero-shot-image-classification, zero-shot-object-detection.

Response

A successful response containing the list of models.

errorstring

Null if everything is fine

Example response

{
  "output": [
    {
      "meter": "sm-free",
      "meterPrice": "0.0006478333 / sec",
      "modelId": "0-hero/Matter-0.1-Slim-7B-C",
      "params": 7.24,
      "ramRequired": 29,
      "task": "chat"
    }
  ]
}