Interface AudioResult

Result envelope returned by IAudioGenerator.generateMusic and IAudioGenerator.generateSFX.

Follows the same envelope pattern used by VideoResult in the video subsystem: a timestamp, model/provider IDs, the generated artifact(s), and optional usage/billing information.

Example

const result: AudioResult = {
created: Math.floor(Date.now() / 1000),
modelId: 'suno-v3.5',
providerId: 'suno',
audio: [{ url: 'https://cdn.suno.ai/abc123.mp3', mimeType: 'audio/mpeg' }],
usage: { totalAudioClips: 1 },
};
interface AudioResult {
    created: number;
    modelId: string;
    providerId: string;
    audio: GeneratedAudio[];
    usage?: AudioProviderUsage;
}

Properties

created: number

Unix timestamp (seconds) when the result was created.

modelId: string

Model identifier that produced the result.

providerId: string

Provider identifier that produced the result.

The generated audio clip(s).

Usage / billing information, if available.