Skip to content
FLORA DocsGo to app

Techniques

Technique catalog endpoints.

Get a technique
client.techniques.retrieve(stringtechniqueID, RequestOptionsoptions?): TechniqueRetrieveResponse { inputs, name, outputs, 3 more }
GET/techniques/{techniqueId}
List techniques
client.techniques.list(TechniqueListParams { cursor, limit, query, workspace_id } query?, RequestOptionsoptions?): TechniquesCursorPage<TechniqueListResponse { inputs, name, outputs, 3 more } >
GET/techniques
ModelsExpand Collapse
TechniqueRetrieveResponse { inputs, name, outputs, 3 more }
inputs: Array<Input>
id: string

Technique input or output identifier

name: string

Technique input or output display name

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Technique input or output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
description?: string

Technique input or output description

specified_aspect_ratio?: string

Required aspect ratio

specified_duration?: number

Required duration in seconds

name: string

Technique name

outputs: Array<Output>
id: string

Technique input or output identifier

name: string

Technique input or output display name

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Technique input or output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
description?: string

Technique input or output description

specified_aspect_ratio?: string

Required aspect ratio

specified_duration?: number

Required duration in seconds

run_cost: number

Cost per run in USD

minimum0
technique_id: string

Technique identifier

description?: string

Technique description

TechniqueListResponse { inputs, name, outputs, 3 more }
inputs: Array<Input>
id: string

Technique input or output identifier

name: string

Technique input or output display name

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Technique input or output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
description?: string

Technique input or output description

specified_aspect_ratio?: string

Required aspect ratio

specified_duration?: number

Required duration in seconds

name: string

Technique name

outputs: Array<Output>
id: string

Technique input or output identifier

name: string

Technique input or output display name

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Technique input or output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
description?: string

Technique input or output description

specified_aspect_ratio?: string

Required aspect ratio

specified_duration?: number

Required duration in seconds

run_cost: number

Cost per run in USD

minimum0
technique_id: string

Technique identifier

description?: string

Technique description

TechniquesRuns

Nested technique run endpoints.

Start a technique run
client.techniques.runs.create(stringtechniqueID, RunCreateParams { inputs, mode, callback_url, idempotency_key } body, RequestOptionsoptions?): RunCreateResponse { created_at, progress, run_id, 8 more }
POST/techniques/{techniqueId}/runs
List technique run history
client.techniques.runs.list(RunListParams { cursor, limit, project_id, 3 more } query?, RequestOptionsoptions?): TechniqueRunsCursorPage<RunListResponse { created_at, progress, project_id, 12 more } >
GET/technique-runs
Get a technique run
client.techniques.runs.retrieve(stringrunID, RunRetrieveParams { techniqueId } params, RequestOptionsoptions?): RunRetrieveResponse { created_at, progress, run_id, 8 more }
GET/techniques/{techniqueId}/runs/{runId}
ModelsExpand Collapse
RunCreateResponse { created_at, progress, run_id, 8 more }
created_at: number
progress: number
run_id: string

Run identifier

status: "pending" | "running" | "completed" | "failed"
One of the following:
"pending"
"running"
"completed"
"failed"
charged_cost?: number

Cost charged in USD

minimum0
completed_at?: number
error_code?: string

Machine-readable run error code

error_message?: string

Human-readable run error message

outputs?: Array<Output>
output_id: string

Run output identifier

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Run output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
url: string

Run output URL or text content

minLength1
poll_url?: string

URL to poll pending/running runs or fetch completed/failed run details.

formaturi
started_at?: number
RunListResponse { created_at, progress, project_id, 12 more }
created_at: number
progress: number
project_id: string

Project identifier

run_id: string

Run identifier

status: "pending" | "running" | "completed" | "failed"
One of the following:
"pending"
"running"
"completed"
"failed"
technique: Technique { name, technique_id }
name: string

Technique name

technique_id: string

Technique identifier

technique_run_id: string

Run identifier

workspace_id: string

Workspace identifier

charged_cost?: number

Cost charged in USD

minimum0
completed_at?: number
error_code?: string

Machine-readable run error code

error_message?: string

Human-readable run error message

outputs?: Array<Output>
output_id: string

Run output identifier

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Run output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
url: string

Run output URL or text content

minLength1
poll_url?: string

URL to poll pending/running runs or fetch completed/failed run details.

formaturi
started_at?: number
RunRetrieveResponse { created_at, progress, run_id, 8 more }
created_at: number
progress: number
run_id: string

Run identifier

status: "pending" | "running" | "completed" | "failed"
One of the following:
"pending"
"running"
"completed"
"failed"
charged_cost?: number

Cost charged in USD

minimum0
completed_at?: number
error_code?: string

Machine-readable run error code

error_message?: string

Human-readable run error message

outputs?: Array<Output>
output_id: string

Run output identifier

type: "imageUrl" | "videoUrl" | "audioUrl" | 2 more

Run output media type

One of the following:
"imageUrl"
"videoUrl"
"audioUrl"
"text"
"documentUrl"
url: string

Run output URL or text content

minLength1
poll_url?: string

URL to poll pending/running runs or fetch completed/failed run details.

formaturi
started_at?: number