whatisgithub

What is hosted-models?

runwayml/hosted-models — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2022-07-21

56TypeScriptAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

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.

Mindmap

mindmap
  root((repo))
    What it does
      Connects to RunwayML models
      Handles model sleep states
      Retries failed requests
    Key features
      Query models with data
      Check model awake status
      Wait for model ready
      Inspect inputs and outputs
    Use cases
      Web page AI integration
      Node.js backend queries
      Prototype with hosted models
    Tech stack
      TypeScript
      JavaScript
      Node.js
      HTTP API
    Audience
      Developers building AI apps
      Prototyping with RunwayML

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Send prompts to a RunwayML-hosted AI model from a website and display the results.

USE CASE 2

Query a text generation model from a Node.js backend without writing raw HTTP requests.

USE CASE 3

Check if a hosted model is awake and show a loading screen while it wakes up.

USE CASE 4

Inspect what inputs and outputs a RunwayML model expects before sending data.

What is it built with?

TypeScriptJavaScriptNode.jsHTTP API

How does it compare?

runwayml/hosted-modelsbrowser-use/browser-agent-templateclaude-code-ai-anthropic/free-claude-code-ai-desktop-app
Stars565655
LanguageTypeScriptTypeScriptTypeScript
Last pushed2022-07-21
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/52/51/5
Audiencedevelopervibe codergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires a deployed model URL on RunwayML and an access token for private models.

No license information is provided in the repository documentation.

So what is it?

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.

Copy-paste prompts

Prompt 1
Using the RunwayML hosted-models SDK, write a JavaScript function that creates a model object with my URL and token, checks if the model is awake, and queries it with a text prompt.
Prompt 2
Show me how to use the RunwayML hosted-models library in a Node.js script to wait for a sleeping model to wake up and then send a query with input data.
Prompt 3
Create a simple HTML page that includes the RunwayML hosted-models SDK via a script tag and displays the output of a model query on the page.
Prompt 4
Write a TypeScript function that uses the RunwayML hosted-models SDK to inspect a model's expected inputs and outputs, then sends a properly formatted query to it.

Frequently asked questions

What is hosted-models?

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.

What language is hosted-models written in?

Mainly TypeScript. The stack also includes TypeScript, JavaScript, Node.js.

Is hosted-models actively maintained?

Dormant — no commits in 2+ years (last push 2022-07-21).

What license does hosted-models use?

No license information is provided in the repository documentation.

How hard is hosted-models to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is hosted-models for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.