Zorveus LogoZorveusDOCS

Model Discovery

Query the models endpoint to discover live available models permitted for your inference key.

Model Discovery

GET/v1/models
Inference Key (Bearer zrv_...)

The /v1/models endpoint returns the dynamic list of concrete model IDs your inference key is currently authorized to route.

Inference Key TesterInteractive
Paste your Zorveus key to dynamically update all code snippets below.

Policy Expansion Semantics

When your App Connection defines wildcard policies like * or openai/*, the /v1/models endpoint expands those wildcards into concrete routable model IDs (e.g. openai/gpt-4.1-mini, openai/gpt-4.1, anthropic/claude-3-7-sonnet).

Wildcard strings are policy configurations—not valid target model identifiers in chat completion requests.


Code Example

from openai import OpenAI

client = OpenAI(
    base_url="https://api.zorveus.com/v1",
    api_key="zrv_your_inference_key",
)

models = client.models.list()
for model in models.data:
    print(f"Available Model: {model.id} (Owner: {model.owned_by})")

Expected Response

{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4.1-mini",
      "object": "model",
      "created": 1723580000,
      "owned_by": "openai"
    },
    {
      "id": "openai/gpt-4.1",
      "object": "model",
      "created": 1723580000,
      "owned_by": "openai"
    },
    {
      "id": "anthropic/claude-3-7-sonnet",
      "object": "model",
      "created": 1723580000,
      "owned_by": "anthropic"
    },
    {
      "id": "gemini/gemini-2.5-flash",
      "object": "model",
      "created": 1723580000,
      "owned_by": "google"
    }
  ]
}
Was this page helpful?
Edit this page on GitHub

On this page