---
title: "Start a run"
method: POST
path: "/api/v1/nodes/{nodeId}/runs"
tags: ["run"]
---

# Start a run

`POST /api/v1/nodes/{nodeId}/runs`

## Path parameters

- `nodeId` string, uuid, required

## Request body

- object
  - `canvasId` string, uuid
  - `textPrompt` string
  - `modelConfig` object
    - `model` string, required
    - `variant` string, required
    - `tier` string, nullable
    - `font` object
      - `source` 'custom' | 'google', required
      - `familyName` string, required
  - `outputAspectRatio` '21:9' | '16:9' | '4:3' | '5:4' | '3:2' | '1:1' | '2:3' | '3:4' | '4:5' | '9:16' | '9:21'
  - `outputDuration` integer
  - `outputResolution` union
    - '360p' | '480p' | '540p' | '580p' | '720p' | '1080p' | '1440p' | '2160p' | '4k' | '0.5K' | '1K' | '2K' | '4K' | '1k' | '2k'
    - string
  - `seed` integer
  - `numVariations` integer
  - `generateAudio` boolean
  - `negativePrompt` string
  - `imageUrls` string[]
  - `elevenLabsVoiceId` string
  - `customVoiceId` string, uuid
  - `elevenLabsVoiceSettings` object
    - `speed` number
    - `stability` number
    - `similarityBoost` number
    - `style` number
    - `speakerBoost` boolean
    - `removeBackgroundNoise` boolean
    - `outputFormat` 'mp3_44100_128' | 'mp3_44100_192' | 'mp3_22050_32' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100'

## Response `201`

201

- object
  - `id` string, uuid, required

## Other responses

- `202` — 202
- `400` — 400
- `401` — Missing, invalid, expired, or revoked API key.
- `403` — The API key's user is not a member of the requested team.
- `404` — 404
- `429` — Rate limit reached — retry after the `Retry-After` header.

---

[API](https://skmtc.net/melius/apis/melius-api.md) · [All operations](https://skmtc.net/melius/apis/melius-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/melius/melius-api/revisions/c48e2a9e4b72/schema)
