Skip to content
FLORA DocsGo to app
Resources

Techniques

Discover technique schemas and start technique runs.

Techniques are reusable FLORA workflows. Each technique defines the inputs it accepts, the outputs it returns, and the credit cost of a run.

Terminal window
curl "https://app.flora.ai/api/v1/techniques?limit=5" \
-H "Authorization: Bearer sk_live_XXXX"

Response:

{
"techniques": [
{
"technique_id": "tech_...",
"slug": "cctv-cam",
"name": "CCTV Cam"
}
],
"meta": {
"limit": 5
}
}
Terminal window
curl https://app.flora.ai/api/v1/techniques/cctv-cam \
-H "Authorization: Bearer sk_live_XXXX"

Response fields include the technique ID, name, description, inputs, outputs, and cost. The most important field for creating runs is inputs:

{
"technique_id": "tech_...",
"name": "CCTV Cam",
"inputs": [
{ "id": "input_image", "name": "Input Image", "type": "imageUrl" }
]
}

Match each input id and type exactly when creating a run.

Terminal window
curl -X POST https://app.flora.ai/api/v1/techniques/cctv-cam/runs \
-H "Authorization: Bearer sk_live_XXXX" \
-H "Content-Type: application/json" \
-d '{
"inputs": [
{ "id": "input_image", "type": "imageUrl", "value": "https://example.com/photo.png" }
],
"mode": "async",
"idempotency_key": "request-123"
}'

The response includes a runId and pollUrl.

MethodPathDescription
GET/api/v1/techniques?limit=5List techniques
GET/api/v1/techniques/{slug}Retrieve a technique schema
POST/api/v1/techniques/{slug}/runsCreate a run for a technique
GET/api/v1/techniques/{slug}/runs/{runId}Poll a technique run
TypeValue
imageUrl or image_urlHTTPS image URL
videoUrl or video_urlHTTPS video URL
textPlain text prompt or content
  • You can find a technique slug in the FLORA app URL: /techniques/{slug}.
  • Technique inputs vary by workflow. Always retrieve the technique before constructing a run payload.
  • Use idempotency_key when retrying client requests so duplicate submissions do not create duplicate work.