---
url: /orchestration/reference/operations/InvokeComfyStepTemplate.md
description: 'POST /v2/consumer/recipes/comfy — Comfy workflows'
---

> Documentation index: https://developer.civitai.com/llms.txt — every page on this site has a markdown version at its URL + `.md`.

# Comfy workflows

`POST https://orchestration.civitai.com/v2/consumer/recipes/comfy`

Operation `InvokeComfyStepTemplate` · Recipes · Civitai Orchestration API, generated from the published OpenAPI spec ([v2-consumers.json](https://developer.civitai.com/openapi/v2-consumers.json)); the interactive HTML page is this URL without `.md`.

Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.

## Authentication

Send `Authorization: Bearer <token>` (the spec's `ApiKey` scheme); this operation documents `401 Unauthorized` for a missing or invalid token. See [Authentication](https://developer.civitai.com/orchestration/guide/authentication.md).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `experimental` | query | boolean | no |  |
| `allowMatureContent` | query | boolean | no |  |
| `whatif` | query | boolean | no |  |
| `ephemeral` | query | boolean | no |  |
| `tier` | query | `WorkflowTier` (one of `paid`, `free`) | no | How a workflow is paid for. |

## Request body

Optional. Content types: `application/json`, `text/json`, `application/*+json`.

Schema `ComfyInput`.

| Field | Type | Required | Description |
|---|---|---|---|
| `comfyWorkflow` | map of `ComfyNode` | yes |  |
| `quantity` | integer (int32) | no | The number of jobs to start with this workflow. (default `1`, minimum `1`, maximum `100`) |
| `imageMetadata` | string, nullable | no | External metadata that will be stored with the image |
| `useSpineComfy` | boolean, nullable | no | When set, restricts the job to (true) or away from (false) a dedicated pool of Comfy workers. |

### Types used by the request body

#### ComfyNode

Schema `ComfyNode`.

| Field | Type | Required | Description |
|---|---|---|---|
| `classType` | string | yes |  |
| `meta` | map of string, nullable | no |  |
| `isChanged` | string, nullable | no |  |
| `inputs` | map of any | yes |  |

## Responses

### 200 OK

Content type: `application/json`.

Schema `ComfyOutput`.

| Field | Type | Required | Description |
|---|---|---|---|
| `blobs` | array of `Blob` | yes |  |

### 400 Bad Request

Content type: `application/json`.

Schema `ProblemDetails`.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string, nullable | no |  |
| `title` | string, nullable | no |  |
| `status` | integer (int32), nullable | no |  |
| `detail` | string, nullable | no |  |
| `instance` | string, nullable | no |  |

### 401 Unauthorized

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.

### 403 Forbidden

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.
