AI21 Labs Maestro API

The Maestro API from AI21 Labs — 2 operation(s) for maestro.

GitHub OpenAPI
Business capability
Model Inference AE-110.10

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /studio/v1/maestro/runs Run a Maestro planning agent · Create a Maestro run #
Ask an LLM
“How do I kick off a Maestro planning run with a system prompt?”
“Can I cap the budget of a Maestro run?”
Tell an agent
Start a Maestro run with input {input}.
Run Maestro with system prompt {system_prompt} and budget {budget}.
GET /studio/v1/maestro/runs/{run_id} Get a Maestro run · Retrieve a Maestro run by ID #
Ask an LLM
“What did a Maestro run return?”
“Can I fetch a planning run by its ID?”
Tell an agent
Get Maestro run {run_id}.
Show the result of planning run {run_id}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ai21-labs:ai21-labs-maestro-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ai21-labs-maestro-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AI21 Studio Maestro API
  version: 1.0.0
  description: REST API for AI21 Labs covering Jamba chat completions, AI21 Maestro planning runs, and the managed File Library for RAG workflows. Authentication is Bearer token via the Authorization header.
  contact:
    name: AI21 Labs
    url: https://docs.ai21.com/
servers:
- url: https://api.ai21.com
  description: Production
security:
- BearerAuth: []
tags:
- name: Maestro
paths:
  /studio/v1/maestro/runs:
    post:
      tags:
      - Maestro
      summary: Create a Maestro run
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                input:
                  oneOf:
                  - type: string
                  - type: array
                    items:
                      type: object
                system_prompt:
                  type: string
                requirements:
                  type: array
                  items:
                    type: object
                tools:
                  type: array
                  items:
                    type: object
                models:
                  type: array
                  items:
                    type: string
                budget:
                  type: string
                  enum:
                  - low
                  - medium
                  - high
                include:
                  type: array
                  items:
                    type: string
                response_language:
                  type: string
      responses:
        '200':
          description: Run created
      operationId: postStudioV1MaestroRuns
      x-operation-id-source: derived
  /studio/v1/maestro/runs/{run_id}:
    get:
      tags:
      - Maestro
      summary: Retrieve a Maestro run by ID
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Run object with status (completed, failed, in_progress)
      operationId: getStudioV1MaestroRunsByRunId
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer API key in Authorization header.