---
title: "Start a technique run"
method: POST
path: "/techniques/{techniqueId}/runs"
tags: ["Technique Runs"]
---

# Start a technique run

`POST /techniques/{techniqueId}/runs`

Starts a run for a specific technique using the backward-compatible nested route. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.

## Path parameters

- `techniqueId` string, required — Technique identifier or slug

## Request body

- object
  - `inputs` object[], required — Technique inputs
    - `id` string, required — Technique input identifier
    - `type` 'text' | 'imageUrl' | 'videoUrl', required — Technique input type
    - `value` string, required — Technique input value
  - `mode` 'async' | 'stream', required — Technique run execution mode
  - `callback_url` string, uri — HTTPS callback URL for asynchronous run completion notifications
  - `idempotency_key` string — Idempotency key for safely retrying requests

## Response `200`

Technique run started.

- object
  - `run_id` string, required — Run identifier
  - `status` 'pending' | 'running' | 'completed' | 'failed', required
  - `progress` number, required
  - `created_at` number, required
  - `started_at` number
  - `completed_at` number
  - `error_code` string — Machine-readable run error code
  - `error_message` string — Human-readable run error message
  - `charged_cost` number — Cost charged in USD
  - `outputs` object[]
    - `output_id` string, required — Run output identifier
    - `type` 'imageUrl' | 'videoUrl' | 'audioUrl' | 'text' | 'documentUrl', required — Run output media type
    - `url` string, uri, required — Run output URL
  - `poll_url` string, uri

## Other responses

- `201` — Technique run started.
- `400` — 400
- `401` — 401
- `402` — 402
- `403` — 403
- `404` — 404
- `409` — 409
- `429` — 429
- `500` — 500

---

[API](https://skmtc.net/florafauna-ai/apis/flora-ai-api.md) · [All operations](https://skmtc.net/florafauna-ai/apis/flora-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/florafauna-ai/flora-ai-api/versions/2f4a714f8ce9/schema)
