modelspec-dev · Schema

RankRequest

AI Model SelectionCost Analysis

Properties

Name Type Description
use_case string Which profile scores the candidates. Required.
environment objectnull
constraints objectnull
limit integernull Caps the ranked shortlist only, not the pool.
View JSON Schema on GitHub

JSON Schema

modelspec-dev-rank-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modelspec-dev/json-schema/modelspec-dev-rank-request-schema.json",
  "title": "RankRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modelspec-dev-openapi.yaml#/components/schemas/RankRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "use_case"
  ],
  "properties": {
    "use_case": {
      "description": "Which profile scores the candidates. Required.",
      "type": "string",
      "enum": [
        "accounting",
        "agentic",
        "biotech",
        "chat",
        "code_review",
        "coding",
        "coding_cpp",
        "coding_go",
        "coding_java",
        "coding_javascript",
        "coding_python",
        "coding_rust",
        "coding_typescript",
        "content_moderation",
        "customer_support",
        "cybersecurity",
        "data_science",
        "devops",
        "education",
        "education_humanities",
        "education_stem",
        "embedding",
        "financial",
        "financial_analysis",
        "financial_compliance",
        "general",
        "image_generation",
        "legal",
        "legal_contract_review",
        "math_competition",
        "medical",
        "medical_clinical",
        "medical_radiology",
        "multilingual",
        "rag",
        "reasoning",
        "research_assistant",
        "roleplay",
        "safety",
        "science",
        "science_astronomy",
        "science_biology",
        "science_chemistry",
        "science_physics",
        "speech_to_text",
        "summarization",
        "text_to_speech",
        "translation",
        "vision",
        "writing_creative",
        "writing_technical"
      ]
    },
    "environment": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "hardware": {
          "description": "A device id from https://api.modelspec.dev/v1/vocabulary. Keeps only models whose weights fit that device. An id not in that file is a 400, never 'nothing fits'.",
          "type": [
            "string",
            "null"
          ]
        },
        "hosting": {
          "description": "Where the model runs.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "local",
            "managed_api",
            "self_hosted",
            null
          ],
          "x-meaning": {
            "local": "on the caller's own machine; requires downloadable weights",
            "managed_api": "a provider or gateway API; no weights requirement",
            "self_hosted": "on infrastructure the caller runs; requires downloadable weights"
          }
        },
        "runtime": {
          "description": "The serving stack. A local runtime implies downloadable weights; every other value is recorded and reported in applied.unbound, because the export carries no runtime-level evidence to filter on.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ai21_labs",
            "anthropic",
            "aws_bedrock",
            "azure_ai_foundry",
            "cerebras",
            "chatgpt",
            "claude_ai",
            "cohere",
            "deepinfra",
            "deepseek",
            "fireworks_ai",
            "gemini_app",
            "google",
            "google_vertex_ai",
            "gpt4all",
            "grok_xai",
            "groq",
            "ibm_watsonx",
            "jan_ai",
            "lm_studio",
            "meta_ai",
            "mistral",
            "mistral_plateforme",
            "mlx_community",
            "nvidia_nim",
            "ollama",
            "open_webui",
            "openai",
            "openrouter",
            "replicate",
            "sambanova",
            "snowflake_cortex",
            "together_ai",
            "xai",
            null
          ],
          "x-implies-open-weights": [
            "gpt4all",
            "jan_ai",
            "lm_studio",
            "mlx_community",
            "ollama",
            "open_webui"
          ]
        }
      }
    },
    "constraints": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "open_weights": {
          "description": "Keep only models whose weights can be downloaded.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "max_cost_per_million_input_tokens": {
          "description": "USD ceiling on input cost. Applied before scoring. A model with no published price is dropped by this filter rather than assumed cheap.",
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "price_sensitivity": {
          "description": "0–1. How much cost weighs against quality. Every shipped profile weights cost at 0, so this is the only way to make price matter.",
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 1,
          "default": 0.0
        },
        "include_rehosts": {
          "description": "Include models that are rehosts of another provider's weights.",
          "type": [
            "boolean",
            "null"
          ],
          "default": false
        }
      }
    },
    "limit": {
      "description": "Caps the ranked shortlist only, not the pool.",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100,
      "default": 10
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/modelspec-dev-rank-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.