Documentation

Build your first AI workflow in about 10 minutes

Set up a workflow in the console, test it in the playground, then call it from your backend with one API request.

Choose how to start

Your first 10 minutes

1

Create your account and project

Sign up at console.modelriver.com and name your first project. A project is simply a folder that keeps your AI keys, settings, and history organized in one place.

Create a free account
2

Connect an AI provider

Paste the API key you already have from OpenAI, Anthropic, Google, or another provider. Think of it like plugging in a power cord — ModelRiver uses it to talk to the AI on your behalf, and encrypts it right away.

How provider keys are kept safe
3

Create a workflow

A workflow is where you choose which AI model answers your requests. Pick your provider and model, then give the workflow a memorable name — this name is what you will use every time your app asks the AI something.

How to build a workflow
4

Test it before you write code

Open the Playground, pick your workflow and send a message to see a real answer. Or switch on Test mode: it returns the sample data from a structured output, with no provider call and no quota used.

How test mode works
5

Create an API key

An API key is like a password that lets your own app or website talk to ModelRiver safely. Keys are shown only once, and you can revoke them at any time.

Learn about API keys
6

Call it from your code

Send one request to the OpenAI-compatible endpoint, with your API key and your workflow name as the model.

Terminal
curl -X POST https://api.modelriver.com/v1/chat/completions \
  -H "Authorization: Bearer $MODELRIVER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "marketing_summary",
    "messages": [
      {"role": "user", "content": "Summarise this week's launch"}
    ]
  }'
API reference

Optional extras

Build with an AI agent

★ Recommended

Use an AI coding agent to set up ModelRiver. Copy a ready-made command into Claude Code, Codex, Cursor, or another coding agent. It will inspect your project and follow the instructions below.

AI AgentInstall and configure ModelRiver in an existing project.
 Help me get set up with ModelRiver.

First, inspect this project to understand its stack, structure, and conventions.

Then:
1. Determine the appropriate ModelRiver integration for this project.
2. Install the required ModelRiver package or SDK.
3. Configure the ModelRiver client using environment variables.
4. Create a minimal working request that calls a ModelRiver workflow.
5. Explain any environment variables I need to set (API key, workflow name, etc.).
6. Follow the project's existing architecture and conventions.
7. Do not modify production configuration without asking me first.

What do you want to do next?

Stuck on any step?Visit troubleshootingFAQ[email protected]