FluxLora Workflow
Example Request
import Xalora from 'xalora'
const xalora = new Xalora({
apiKey: process.env['XALORA_API_KEY']
});
async function generateImage() {
const fluxLoraTask = new FluxLoraTask({
workflow_id: '3',
prompt: 'A photo of GECKO with dark green skin spots playing american football, cartoon, comic, anime',
lora_name: 'gecko',
timeout_seconds: 300 // optional
});
const response = await Xalora.workflow.executeWorkflowAndWaitForResult(
fluxLoraTask,
600000, // 10 minutes timeout
3000 // 3 seconds polling interval
);
console.log('Generated image URL:', response.result);
}Example Response
Workflow ID Mapping
Workflow ID
Model
Parameters
Property
Type
Required
Description
Returns
Property
Type
Required
Description
Authentication
Types
Last updated