Run a FLORA technique
A technique is a saved workflow that chains several models. It is the thing FLORA does that a single image model cannot: the steps, prompts, and model choices are fixed by whoever authored it, so the same technique gives the same treatment every time.
Input: the user's intent, plus any source image. Output: the technique's output URLs, the charged cost, and the project the run landed in.
Steps
Resolve the workspace. Call
flora_list_workspaces. If there is more than one, ask which to bill before spending anything.Find the technique. Call
flora_list_techniquesand match on the user's intent. It returnsrun_costand a summary of inputs for each. If nothing fits, say so and offerflora_generateinstead — do not force an unrelated technique.Get the exact input ids. Call
flora_get_technique. Its declared input ids are the keysflora_run_techniqueexpects. Never guess them from the name.Get each image input to an HTTPS URL (see Image inputs below).
Run it. Call
flora_run_techniquewithworkspace_id,technique_id, and aninputsobject keyed by those ids. Omit optional text inputs entirely when the user gave no direction — an empty string is rejected, not treated as absent.Poll and report. Poll
flora_get_rununtil status iscompletedorfailed. Report the output URL, the charged cost, and a link to the project.
Image inputs
FLORA fetches images server-side from an HTTPS URL. Files the user attaches in
ChatGPT already have one — they are hosted on files.openai.com or
cdn.openai.com, both allowlisted. Pass that URL straight to
flora_create_asset as source, or into the technique input directly.
Never base64-encode a file or try to upload bytes. If the image genuinely has no URL, say that this environment cannot upload it and point the user at their FLORA project to add it there.
Rules
- State the cost before running.
run_costcomes back fromflora_list_techniques. Techniques range from free to several dollars per run. - You cannot see the output. Runs return URLs, not pixels. Describe what was produced from the technique and the inputs; never claim to have looked at it.
- On
input_validation_error, re-readflora_get_technique, rebuildinputsfrom what it returns, and retry once. Do not retry other failures — retries bill. - On insufficient credits, surface the message and stop.