Get started

Overview

Run image and video models through one API and one wallet.

The Astorie API runs image and video models from one place. You pick a model, send its input, and get back a job you can poll until the result is ready. Every model is billed from a single USD wallet, so you don't need an account with each provider.

The same models are available from TypeScript, Python, a command line tool and an MCP server for AI agents. All of them call the HTTP API described here.

What you can build

  • Generate images and video from your own backend and store the results where you like.
  • Run the same prompt across several models to compare them, with one key and one bill.
  • Let an AI agent pick a model, check the price, and run it within a spending limit you set.

Base URL

Base URL
https://astorie.ai/api/gateway

Every endpoint lives under /v1, for example https://astorie.ai/api/gateway/v1/models. The clients add /v1 for you.

Note
The API is in beta. Response shapes can still change before version 0.1.0, and new fields or status values may appear at any time. Write code that ignores fields it doesn't know.