Get a run
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const generation = await client.generations.retrieve({ runId: '<runId>',});console.log(generation);curl -X GET 'https://app.flora.ai/api/v1/runs/<runId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns status and completed output URLs for a public API run, including action runs started through POST /runs/action.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Run identifier
Run identifier
Responses
Section titled “ Responses ”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
URL to poll pending/running runs or fetch completed/failed run details.
Brand OS brand, release, rules and images a brand-guided generation used
object
Brand identifier
Release version the run read, such as “v3”
Task profile key the run used, such as image.generate
Where the brand applied: an API or agent generation, a canvas project’s brand step, or render_text
Rules that shaped the run, as ruleKey@vN
Brand masters attached as inputs: images, logos and fonts
Imagery bank photos used, as style references or painted as they are
Where the imagery came from: the bank, a model, or both. Absent when the output carries no photo or generated image
Layout path the output filled
Canvas: whether the brand step rewrote the prompt
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" } ], "brand": { "brand_id": "brand_abc123", "surface": "api", "imagery": "bank" }}