711
Prompt

Model Routing Classifier Prompt

A cheap-model prompt that labels request difficulty so it can be routed to the right model.

1 min readupdated 2026-10-08

/ quick answer

Run this on a small, fast model before the main call. A cheap-model prompt that labels request difficulty so it can be routed to the right model.

A cheap-model prompt that labels request difficulty so it can be routed to the right model. Run this on a small, fast model before the main call. Copy the prompt below, swap the bracketed variables for your own context, and run it in any capable model.
Context
Run this on a small, fast model before the main call.
Prompt
Classify the user request by the capability needed to answer it well.

Return JSON: {"route": "easy" | "medium" | "hard", "reason": string}

easy = lookup, formatting, short factual reply, simple classification
medium = summarising or drafting from provided context, light multi-step
hard = multi-step reasoning, code changes, planning, ambiguous goals, math

If unsure between two levels, choose the higher one.

Request:
"""{{request}}"""
Example Output
{"route": "hard", "reason": "Asks for a database migration plan with rollback steps."}
Related Tool Stacks

/ frequently asked

What does the Model Routing Classifier Prompt prompt do?

Run this on a small, fast model before the main call.

Which AI models work with this prompt?

It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.

How do I use this prompt?

1) Copy the prompt with the copy button. 2) Replace every bracketed variable with your real details. 3) Paste it into your AI assistant. 4) Compare the answer with the example output and ask for changes if needed.

What output should I expect?

{"route": "hard", "reason": "Asks for a database migration plan with rollback steps."}.

/ continue exploring

Related concepts

The vocabulary this page depends on.

  • →LLM Gateway

    A proxy between your app and model providers that centralises keys, routing, fallbacks, logging and spend limits.

  • →Small Language Model (SLM)

    A language model with roughly 1–15B parameters, small enough to run on a laptop, phone or single GPU while handling narrow tasks well.

  • →Prompt Caching

    Reusing the processed form of a repeated prompt prefix so later requests are cheaper and faster.

  • →Semantic Cache

    A cache that returns a stored LLM answer when a new question means the same thing as an earlier one, even if worded differently.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related tool stacks

The tools that run it in production.

all tool stacks →

Related prompts

Reusable prompts for this job.

all prompts →

Related use cases

How people apply it, and what came out.

all use cases →

Comparisons & alternatives

Pick between the options.

all comparisons →