/** * WaveSpeedAI JavaScript/TypeScript Client — Official JavaScript/TypeScript SDK for WaveSpeedAI inference platform. * * This library provides a clean, unified, and high-performance API integration layer for your applications. * Effortlessly connect to all WaveSpeedAI models and inference services with zero infrastructure overhead. * * Example usage: * import wavespeed from 'wavespeed'; * * const output = await wavespeed.run( * "wavespeed-ai/z-image/turbo", * { prompt: "A beautiful sunset" } * ); * console.log(output["outputs"][0]); */ import { version } from './version'; import './config'; import { Client, run, upload } from './api'; import type { RunOptions, RunDetail, RunNoThrowResult } from './api/client'; import { WavespeedException, WavespeedTimeoutException, WavespeedSyncTimeoutException, WavespeedConnectionException, WavespeedPredictionException, WavespeedUnknownException } from './api'; export { version, Client, run, upload }; export type { RunOptions, RunDetail, RunNoThrowResult }; export { WavespeedException, WavespeedTimeoutException, WavespeedSyncTimeoutException, WavespeedConnectionException, WavespeedPredictionException, WavespeedUnknownException }; export default Client;