Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaDeveloperAvailable now

OpenRouter · Search models

openrouter-ai/model-marketplace/search_models

Get developer and code data with OpenRouter · Search models from Alexandria through one Spiral API key. Start here to find a model slug and permaslug, e.g. q=jev, output_modalities=decisions to check whether the TypeSafe Jev decision model is listed; then call get_model / get_model_endpoints / get_model_pricing. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
qtext—

Free-text match on model name or slug.

zdrtrue or false—

Only models with a zero-data-retention endpoint.

archtext—

Model family filter, e.g. GPT, Claude, Llama.

sortone of
most-popular, newest, top-weekly, pricing-low-to-high, pricing-high-to-low, context-high-to-low, throughput-high-to-low, latency-low-to-high, intelligence-high-to-low, coding-high-to-low, agentic-high-to-low, design-arena-elo-high-to-low
—

Server-side order.

limitnumber
1 to 100
25

limit

offsetnumber
0 to …
0

Records to skip; use next_offset from the previous page.

regionone of
eu, us
—

Only models with endpoints in this data region.

categoryone of
programming, roleplay, marketing, marketing/seo, technology, science, translation, legal, finance, health, trivia, academia
—

Use-case category filter. Cannot be combined with supported_parameters (the API rejects that pair).

max_pricenumber
0 to …
—

Maximum prompt price in USD per million tokens (0 lists free models).

min_pricenumber
0 to …
—

Minimum prompt price in USD per million tokens.

providerstext—

Comma-separated hosting provider slugs, e.g. typesafe, openai,azure. Pattern: ^[a-z0-9-]+(,[a-z0-9-]+)*$.

min_contextnumber
1 to …
—

Minimum context length in tokens.

model_authorstext—

Comma-separated author slugs, e.g. typesafe, openai. Pattern: ^[a-z0-9-]+(,[a-z0-9-]+)*$.

input_modalitiestext—

Comma-separated input modalities: text, image, audio, file. Pattern: ^(all|[a-z]+(,[a-z]+)*)$.

output_modalitiestext—

Comma-separated output modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or all. The API defaults to text. Pattern: ^(all|[a-z]+(,[a-z]+)*)$.

supported_parameterslist—

Only models whose endpoints support every listed parameter, e.g. tools, structured_outputs.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "openrouter-ai/model-marketplace/search_models",
    "input": {
      "q": "<q>"
    }
  }'

Frequently asked questions

How much does OpenRouter · Search models cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use OpenRouter · Search models through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "openrouter-ai/model-marketplace/search_models"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use OpenRouter · Search models?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use OpenRouter · Search models?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.