Skip to content

Reference

lg_models_list: Models and prices

Markdown version

List the models offered with their lowest list price, context and price status; filter by maker, modality, price, context or parameter, and page.

  • Changes data: no (read only)
  • Credential scope: any signed-in key
  • Assistant level: any connected assistant (Read only and up)

Inputs

FieldTypeRequiredNotes
queryobject (include, author, input_modality, output_modality, max_prompt_price, max_completion_price, min_context, supports, q, sort, limit, after)no
query.include"pending"no
query.authorstringnoMakers, comma-separated: qwen,deepseek
query.input_modality"text" | "image" | "audio" | "video" | "file"no
query.output_modality"text" | "image" | "audio" | "video" | "file"no
query.max_prompt_pricestringnoUS dollars per million input tokens, at most
query.max_completion_pricestringnoUS dollars per million output tokens, at most
query.min_contextstringnoTokens, at least
query.supportsstringnoA parameter every match takes: tools, response_format, reasoning…
query.qstringnoText in the id or name
query.sort"id" | "name" | "price" | "context" | "newest"no
query.limitstringno1 to 500; without it, every match
query.afterstringnoThe last id of the previous page

Example MCP call

A tools/call request to https://manage.restolayer.com/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_models_list",
    "arguments": {
      "query": {
        "author": "qwen,deepseek",
        "max_prompt_price": "0.50",
        "supports": "tools",
        "sort": "price",
        "limit": "20"
      }
    }
  }
}

Example REST call

The same thing over REST (GET /v1/models):

curl -s -X GET "https://manage.restolayer.com/v1/models?author=qwen%2Cdeepseek&max_prompt_price=0.50&supports=tools&sort=price&limit=20" \
  -H "Authorization: Bearer $LG_API_KEY"

All tools: MCP tools. Connecting: connect your assistant.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.