For the complete documentation index, see llms.txt. This page is also available as Markdown.

Flows

Flows represent specific AI-powered capabilities — on-brand photo generation, UGC video generation, static ads generation, and more. Use these endpoints to discover available flows and inspect their required inputs and expected outputs. Flows are always described at their last saved version; Studio autosave drafts are never exposed here.

Discover flows and inspect their input requirements and output types.

List Flows

get

List available flows with filtering options.

This endpoint returns a paginated list of flows that can generate various types of content including images, videos, text, and other creative assets.

Each flow is described at its last saved version. A flow that has never been saved in Studio — autosave keeps it as a private draft — is still listed, but with an empty inputs array and an estimated_cost of 0; it cannot be fetched or run until someone saves it. Treat an empty inputs as "not saved yet", not as "takes no input".

Filtering Options:

  • tags: Only flows carrying every given tag slug, case-insensitive (can be provided multiple times; all must match)

  • visibility: Only flows with one of these visibilities (can be provided multiple times). Values are lowercase:

    • private: your organization's flows, visible only inside it

    • shared: your organization's flows shared by link

    • public: flows published to everyone, from any organization, including Pletor's catalog By default, only private and shared flows are returned.

  • search: Case- and accent-insensitive substring match on the flow name

Pagination Parameters:

  • limit: Maximum number of items to return (default: 20, min: 1, max: 100)

  • cursor: next_cursor from the previous page (optional)

Response:

  • data: List of flow summaries with basic information including expected inputs

  • has_more: Indicates if there are more results available

  • next_cursor: Cursor for the next page of results; null on the last page

Error Codes:

  • 422: A parameter is out of range or not a valid value (e.g. an unknown visibility)

Use Case: This is typically the first endpoint called to discover available flows before getting detailed information or executing them.

Authorizations
X-Api-KeystringRequired

API key for authentication

Query parameters
tagsstring[] · nullableOptional

Only flows carrying every given tag slug (case-insensitive); repeat to require several

searchstring · nullableOptional

Case- and accent-insensitive substring of the flow name

limitinteger · min: 1 · max: 100Optional

Maximum number of items to return

Default: 20
cursorstring · nullableOptional

Cursor for pagination (from next_cursor)

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
200

Successful Response

application/json
has_morebooleanRequired
next_cursorstring · nullableOptional
get/flows/
GET /api/public/v1/flows/ HTTP/1.1
Host: api.pletor.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "description": "text",
      "tags": [
        "text"
      ],
      "estimated_cost": 1,
      "visibility": "public",
      "inputs": [
        {
          "id": "text",
          "type": "text_input",
          "description": "text",
          "required": true
        }
      ],
      "has_human_review": false
    }
  ],
  "has_more": true,
  "next_cursor": "text"
}

Get Flow

get

Get detailed information about a specific flow.

Everything below describes the flow's last saved version, not the draft you are editing in Studio. Save the flow again to expose newer edits here and to POST /runs.

This endpoint retrieves comprehensive information about a flow, including:

  • Flow metadata (name, description, tags)

  • Input requirements with types

  • Output specifications and formats

  • Cost estimate, and whether the flow pauses for human review

Input Information: Each flow defines specific inputs it requires:

  • id: Node identifier used when executing the flow

  • type: Input type — text_input takes text; image_input, video_input, audio_input and file_input take uploaded asset IDs

  • description: Generated from the input's Studio label

  • required: Whether POST /runs rejects a run that omits it

Brand context is not an input: a flow's brand is fixed in the flow and is never listed here or accepted by POST /runs.

Output Information: Each flow specifies what types of content it generates:

  • id: Node identifier for the output, matching id in run results

  • type: Output type (text, images, videos, audio, data)

  • description: Generated from the output type

Cost and Review:

  • estimated_cost: Credit cost estimation for running this flow

  • has_human_review: true when runs pause for a human review, resolved via POST /runs/{run_id}/reviews/{review_id}

Use Case: Call this endpoint to understand what inputs a flow needs and what outputs it will generate before creating a generation request.

Error Codes:

  • 404: Flow not found or not accessible

  • 422: Flow has never been saved in Studio, so it has no version to describe, or flow_id is not a UUID

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
flow_idstring · uuidRequired
Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
200

Successful Response

application/json

Complete representation of a flow with its inputs, outputs, and cost.

idstring · uuidRequired

Unique flow identifier

namestringRequired

Flow display name

descriptionstringRequired

Flow description and purpose; empty when none is set

tagsstring[]Optional

Tag slugs; filter on them with tags on GET /flows/

estimated_costintegerRequired

Estimated credit cost per execution; 0 when not estimated

has_human_reviewbooleanOptional

True when this flow includes a human review step that will pause execution until resolved via POST /runs/{run_id}/reviews/{review_id}. Poll GET /runs/{run_id} for awaiting_human_review while the run is in progress.

Default: false
get/flows/{flow_id}
GET /api/public/v1/flows/{flow_id} HTTP/1.1
Host: api.pletor.ai
X-Api-Key: YOUR_API_KEY
Accept: */*
{
  "description": "Generate marketing banners from a text prompt and logo",
  "estimated_cost": 50,
  "has_human_review": false,
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "inputs": [
    {
      "description": "Input for Product description",
      "id": "uuid-1",
      "required": true,
      "type": "text_input"
    },
    {
      "description": "Input for Company logo",
      "id": "uuid-2",
      "required": false,
      "type": "image_input"
    }
  ],
  "name": "Marketing Banner Generator",
  "outputs": [
    {
      "description": "Generated images",
      "id": "uuid-3",
      "type": "images"
    }
  ],
  "tags": [
    "marketing",
    "image"
  ]
}

Last updated