For the complete documentation index, see llms.txt. This page is also available as Markdown.

Public client

PublicClient — read-only access to public catalog (models, benchmarks, evaluations, comparisons).

PublicClient (sync) and AsyncPublicClient (async) cover read-only public endpoints. Access either via client.public.* on an authenticated Stratix or by instantiating directly. Public access still requires an API key — Stratix uses the key for rate-limit identification.

Two ways to use

# Via authenticated Stratix client
from layerlens import Stratix
client = Stratix()
public_models = client.public.models.get(query="claude")

# Standalone PublicClient
from layerlens import PublicClient
public = PublicClient()
models = public.models.get(companies=["OpenAI"])

Models

response = client.public.models.get(
 query="gpt", # text query
 name="gpt-4o", # exact name
 key="openai/gpt-4o", # exact key
 ids=["..."], # list of IDs
 categories=["transformer", "moe", "open-source", "closed-source", "usa", "china", "size-sm"],
 companies=["OpenAI", "Anthropic"],
 regions=["usa", "china"],
 licenses=["mit", "apache-2.0"],
 sizes=["size-sm", "size-md", "size-lg", "size-xl"],
 sort_by="releasedAt", # name, createdAt, releasedAt, architectureType, contextLength, license, region
 order="desc", # asc/desc
 page=1,
 page_size=50,
 include_deprecated=False,
)
# response.models,.categories,.companies,.regions,.licenses,.sizes,.count,.total_count

Benchmarks

Evaluations

Comparisons

Discovery

The list responses expose available filter values:

See also

Last updated

Was this helpful?