Get a technique run
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const run = await client.techniques.runs.retrieve({ techniqueId: '<techniqueId>', runId: '<runId>',});console.log(run);curl -X GET 'https://app.flora.ai/api/v1/techniques/<techniqueId>/runs/<runId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns status, progress, outputs, and error details for a technique run when it is accessible to the authenticated public API key.
Error responses use the standard error body.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Technique identifier or slug
Technique identifier or slug
Run identifier
Run identifier
Responses
Section titled “ Responses ”Technique run returned.
object
Run identifier
Machine-readable run error code
Human-readable run error message
Cost charged in USD
object
Run output identifier
Run output media type
Run output URL or text content
Asset identifier for durable media outputs
Optional output label
Triangle count for model3d outputs
Axis-aligned local bounds for model3d outputs
object
Whether the model3d output carries textures
object
The check is still running
object
The check finished with a result
High at score 85+, Medium at 60+, otherwise Low
The strongest match’s similarity × 100; 0 with no matches
Detected IP, strongest first
object
Protected IP the output resembles
Match similarity from 0 to 1
object
The check produced no result
Why the check produced no result: the check quota ran out, the media type or size is unsupported, or the check was unavailable
URL to poll pending/running runs or fetch completed/failed run details.
Example
{ "run_id": "run_abc123", "status": "pending", "error_code": "provider_error", "error_message": "The provider failed to complete the generation.", "outputs": [ { "output_id": "output_1", "type": "imageUrl", "url": "https://media.flora.ai/output.png", "asset_id": "asset_abc123", "label": "preview", "ip_risk": { "status": "pending" } } ]}