OpenRouter

API documentation
Hydrating page from local storage...

Explore OpenRouter models, send multimodal requests, and inspect routing, tools, usage, and generated media in one workspace.

Completed sessions are saved in this browser's IndexedDB. Auto-save optionally retains configuration and drafts with encrypted credentials. Session ZIPs omit credentials and redact sensitive JSON fields. Requests can incur provider charges. Browser-hosted requests require OpenRouter CORS access; hosting infrastructure can interrupt requests near 3 minutes 45 seconds.

Configure your key or load the public model catalog to begin.
OpenRouter connection

Enter the full model ID, including its author or routing variant. Public catalogs work without a key. Management operations may require a management key with additional permissions.

Discovery and utility requests
Advanced
App attribution and headers

For example, router metadata, session IDs, or workspace headers. Auto-save encrypts this field; session exports omit it and request code masks sensitive headers.

API explorer Load all documented operations

Use OpenRouter's live OpenAPI catalog for inference, files, batches, keys, BYOK, analytics, guardrails, workspaces, and other published features. Loading a template prepares a request for review. Account and resource changes require confirmation.

Request

Request content
System prompt

Choose a prompt template

Prompt templates

2 templates

Preview the full template without changing your prompt.

Model parameters, routing, and output format

Configure order, only, ignore, allow_fallbacks, require_parameters, sort, max_price, quantizations, data_collection, or zdr.

Use json_object or json_schema with a compatible model.

Add sampling controls, cache hints, prediction, image_config, or other provider-supported fields. Managed composer fields have their own controls.

Tools and plugins

Define function tools or OpenRouter server tools. Client functions are reviewed and answered manually below; this page never executes model-proposed code.

For example, web search, response healing, context compression, alignment, or armor.

Attachments 0

25 MiB per file, 50 MiB combined. Local media is encoded in memory. Provider limits can be lower. Chat audio uses base64 with its format; image, PDF, and video inputs also accept public HTTPS URLs.

    Response

    Your next model experiment

    Choose a model, compose a multimodal message, or prepare an API request. Text, generated media, tool calls, and reported usage appear here.

    Payloads, response headers, and reusable code

    Request credentials are redacted. Utility responses can contain account data and newly issued secrets; response copy and download preserve returned values.

    An unhandled error has occurred. Reload 🗙