runwayml/hosted-models — explained in plain English
Analysis updated 2026-08-08 · repo last pushed 2022-07-21
Send prompts to a RunwayML-hosted AI model from a website and display the results.
Query a text generation model from a Node.js backend without writing raw HTTP requests.
Check if a hosted model is awake and show a loading screen while it wakes up.
Inspect what inputs and outputs a RunwayML model expects before sending data.
| runwayml/hosted-models | browser-use/browser-agent-template | claude-code-ai-anthropic/free-claude-code-ai-desktop-app | |
|---|---|---|---|
| Stars | 56 | 56 | 55 |
| Language | TypeScript | TypeScript | TypeScript |
| Last pushed | 2022-07-21 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 2/5 | 1/5 |
| Audience | developer | vibe coder | general |
Figures from each repo's GitHub metadata at analysis time.
Requires a deployed model URL on RunwayML and an access token for private models.
Runway's hosted-models SDK lets you talk to RunwayML's hosted AI models from your JavaScript app with just a few lines of code. If you've deployed a machine learning model on RunwayML and want to send it input from a website or a Node.js backend, this library handles the connection for you. Under the hood, it's a lightweight wrapper around Runway's HTTP API. You create a model object by passing in a URL and, if the model is private, an access token. From there you have four methods: check what inputs and outputs the model expects, send a query with your data, check whether the model is awake, and wait until it's ready. The library also handles some practical concerns like retrying failed requests when the model is still waking up and providing human-readable error messages when something goes wrong. This is aimed at developers building apps or prototypes that use RunwayML models but who don't want to deal with writing raw HTTP requests. For example, if you have a text generation model hosted on RunwayML and want to display the results on a web page, you can include the library via a script tag, pass in your model URL and token, call the query method with a prompt, and display the returned text. It works the same way in a Node.js environment via npm. One thing worth noting is the concept of model sleep states. Hosted models can be asleep, waking up, or awake. A sleeping model takes longer to respond, so the library gives you tools to handle that gracefully, like showing a loading screen while you wait for the model to wake. The library is intentionally minimal with just four methods, which keeps things simple but means you're limited to what those methods cover.
A lightweight JavaScript library that lets you connect to and interact with AI models hosted on RunwayML, handling connections, retries, and model sleep states automatically.
Mainly TypeScript. The stack also includes TypeScript, JavaScript, Node.js.
Dormant — no commits in 2+ years (last push 2022-07-21).
No license information is provided in the repository documentation.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.