Get a technique
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const technique = await client.techniques.retrieve({ techniqueId: '<techniqueId>',});console.log(technique);curl -X GET 'https://app.flora.ai/api/v1/techniques/<techniqueId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns the public definition for one technique, including its input and output schema used to start runs.
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
Responses
Section titled “ Responses ”Technique returned.
object
Technique identifier
Technique name
Technique description
Cost per run in USD
object
Technique input or output identifier
Technique input or output display name
Technique input or output media type
Technique input or output description
Required aspect ratio
Required duration in seconds
When true, this input may be omitted when running the technique
When true, multiple values may be provided for this input (one run per value)
When true, fill this input by passing an element id as the input value
object
Technique input or output identifier
Technique input or output display name
Technique input or output media type
Technique input or output description
Required aspect ratio
Required duration in seconds
When true, this input may be omitted when running the technique
When true, multiple values may be provided for this input (one run per value)
When true, fill this input by passing an element id as the input value
Example
{ "technique_id": "tech_abcd1234", "name": "Editorial Image Grid", "description": "Generate a cohesive editorial image grid.", "inputs": [ { "id": "prompt", "name": "Prompt", "type": "imageUrl", "description": "Describe the desired image.", "specified_aspect_ratio": "1:1" } ], "outputs": [ { "id": "prompt", "name": "Prompt", "type": "imageUrl", "description": "Describe the desired image.", "specified_aspect_ratio": "1:1" } ]}