Civitai · Arazzo Workflow

Civitai Query and Cancel a Running Workflow

Version 1.0.0

List active workflows, inspect the first one, cancel it, and confirm the canceled state.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceImage-GenerationVideo GenerationStable DiffusionSDXLFluxLoRAModel HostingCommunityGenerative AIArazzoWorkflows

Provider

civitai

Workflows

workflow-query-cancel
Find a processing workflow, cancel it, and confirm the canceled state.
Queries workflows by status, inspects the first match, updates it to canceled, and re-reads it to confirm.
4 steps inputs: apiKey, status, take outputs: finalStatus, workflowId
1
queryRunning
Query the consumer's workflows filtered by status and capture the first workflow id.
2
inspectWorkflow
Inspect the first returned workflow to confirm its current status before canceling.
3
cancelWorkflow
Update the workflow, setting its status to canceled.
4
confirmCanceled
Re-read the workflow to confirm it reports a canceled status.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Civitai Query and Cancel a Running Workflow
  summary: List active workflows, inspect the first one, cancel it, and confirm the canceled state.
  description: >-
    Operational housekeeping for the Orchestration API. The workflow queries the
    consumer's workflows filtered to a processing status, inspects the first
    returned workflow, issues an update that sets its status to canceled, and
    re-reads the workflow to confirm cancellation took effect. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: workflowsApi
  url: ../openapi/civitai-workflows-api-openapi.yml
  type: openapi
workflows:
- workflowId: workflow-query-cancel
  summary: Find a processing workflow, cancel it, and confirm the canceled state.
  description: >-
    Queries workflows by status, inspects the first match, updates it to
    canceled, and re-reads it to confirm.
  inputs:
    type: object
    required:
    - apiKey
    properties:
      apiKey:
        type: string
        description: Civitai personal API token used as a Bearer credential.
      status:
        type: string
        description: Status filter for the query (e.g. processing, preparing).
      take:
        type: integer
        description: Maximum number of workflows to return.
  steps:
  - stepId: queryRunning
    description: >-
      Query the consumer's workflows filtered by status and capture the first
      workflow id.
    operationId: queryWorkflows
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: status
      in: query
      value: $inputs.status
    - name: take
      in: query
      value: $inputs.take
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstWorkflowId: $response.body#/items/0/id
      nextCursor: $response.body#/nextCursor
  - stepId: inspectWorkflow
    description: >-
      Inspect the first returned workflow to confirm its current status before
      canceling.
    operationId: getWorkflow
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: workflowId
      in: path
      value: $steps.queryRunning.outputs.firstWorkflowId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      currentStatus: $response.body#/status
  - stepId: cancelWorkflow
    description: >-
      Update the workflow, setting its status to canceled.
    operationId: updateWorkflow
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: workflowId
      in: path
      value: $steps.queryRunning.outputs.firstWorkflowId
    requestBody:
      contentType: application/json
      payload:
        status: canceled
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      statusAfterUpdate: $response.body#/status
  - stepId: confirmCanceled
    description: >-
      Re-read the workflow to confirm it reports a canceled status.
    operationId: getWorkflow
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiKey
    - name: workflowId
      in: path
      value: $steps.queryRunning.outputs.firstWorkflowId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      finalStatus: $response.body#/status
  outputs:
    workflowId: $steps.queryRunning.outputs.firstWorkflowId
    finalStatus: $steps.confirmCanceled.outputs.finalStatus

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/civitai-workflow-query-cancel-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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