import type * as ElevenLabs from "../index"; /** * An `image` output, downloaded from `content_url` once completed. */ export interface TemplateImageOutput { /** The id of the generation behind this output. Pass it as a `generation` reference to use the output as an input elsewhere. */ id: string; /** The lifecycle status of the output. It ends at `completed`, when the output's content fields are set, or `failed`, when `failure_reason` and `error_message` are set. */ status: ElevenLabs.TemplateRunStatus; /** The category of failure. Present only when `status` is `failed`. */ failureReason?: ElevenLabs.TemplateImageOutputFailureReason; /** A human-readable description of the failure. Present only when `status` is `failed`. Failed generations are not charged. */ errorMessage?: string; /** A signed URL to download the generated media from. Present only when `status` is `completed`. It expires about an hour after this response is returned; fetch the run again for a fresh URL. */ contentUrl?: string; /** The MIME type of the generated media. Present only when `status` is `completed`. */ contentMimeType?: string; }