Linux 软件免费装
Banner图

EmpirioLabs AI Provider

开发者 empiriolabs
更新时间 2026年11月26日 04:42
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

ai connector image-generation llm artificial-intelligence

下载

1.1.0 1.1.1

详情介绍:

EmpirioLabs AI is specialized AI model hosting for open, proprietary, and custom stacks. We run open-source models on GPU infrastructure we manage, serve optimized endpoints for proprietary models, and help teams deploy their own models to real users. The catalog spans text, image, video, audio, transcription, embedding, reranking, research, and 3D models, with a browser playground, GPU Cloud instances, and hosted AI agents. This plugin registers EmpirioLabs AI with the AI Client built into WordPress, so any plugin or feature that uses the AI Client can run EmpirioLabs AI models. Add your API key on the Settings > Connectors screen and EmpirioLabs AI appears with the other AI providers on your site. Features Using EmpirioLabs AI in your own code Any prompt sent through the AI Client can run on EmpirioLabs AI. To require it for a prompt: $text = wp_ai_client_prompt( 'Write a two-sentence welcome message for a bakery website.' ) ->using_provider( 'empiriolabs' ) ->generate_text(); To prefer a specific model, pass its model ID, for example using_model_preference( 'MODEL_ID' ). Model IDs are listed at empiriolabs.ai/models. Without a preference, the AI Client picks the first EmpirioLabs AI model that supports the request. To convert text to speech: $audio = wp_ai_client_prompt( 'Welcome to our bakery. We open at seven every morning.' ) ->using_provider( 'empiriolabs' ) ->as_output_mime_type( 'audio/mpeg' ) ->convert_text_to_speech(); To choose a voice, add as_output_speech_voice( 'VOICE' ) with one of the model's voices. Each model's page in the documentation lists its voices. A video takes minutes to generate. Start it, keep its operation ID, and read the result in a later request: ` $model = \WordPress\AiClient\AiClient::defaultRegistry()->getProviderModel( 'empiriolabs', 'MODEL_ID' ); $operation = $model->generateVideoOperation( array( new \WordPress\AiClient\Messages\DTO\UserMessage( array( new \WordPress\AiClient\Messages\DTO\MessagePart( 'A paper boat drifting down a rainy street' ) ) ), ) ); $operation_id = $operation->getId(); // Later, with the saved operation ID: $operation = \EmpirioLabs\AiProvider\Provider\EmpirioLabsProvider::operationsHandler()->getOperation( $operation_id ); if ( $operation->getState()->isSucceeded() ) { $video_url = $operation->getResult()->toVideoFile()->getUrl(); } `

安装:

  1. Install the plugin from Plugins > Add New, or upload the empiriolabs-ai-provider folder to the /wp-content/plugins/ directory.
  2. Activate the plugin on the Plugins screen.
  3. Create an API key on the API Keys page of the EmpirioLabs AI dashboard.
  4. Go to Settings > Connectors and paste the key into the EmpirioLabs AI connector.
To set the key outside the database, define EMPIRIOLABS_API_KEY as an environment variable or as a constant in wp-config.php: define( 'EMPIRIOLABS_API_KEY', 'your-api-key' );

屏幕截图:

  • EmpirioLabs AI connected and available to the AI Client.

常见问题:

How do I get an API key?

Sign in or create an account at platform.empiriolabs.ai, then create a key on the API Keys page. Requests use the credits on your EmpirioLabs AI account at the prices on the pricing page.

Which models can I use?

The text, image, speech, video, and embedding models in the EmpirioLabs AI catalog that the AI Client can call. The plugin reads the model list from the API, so new models appear without a plugin update. Browse the models at empiriolabs.ai/models.

Does the plugin need WordPress 7.0?

Yes. The plugin adds a provider to the AI Client that ships with WordPress 7.0 and later.

An image request fails after 30 seconds

WordPress allows each AI Client request 30 seconds by default, and some image models take longer. Raise the limit with the wp_ai_client_default_request_timeout filter, for example to 120 seconds: add_filter( 'wp_ai_client_default_request_timeout', function () { return 120; } );

A video request ends before the video is ready

A video usually takes several minutes. generate_video() waits for it for as long as the request timeout allows, 30 seconds by default (the previous question shows how to raise it). A video that needs longer keeps running, and the error message contains its operation ID. To avoid waiting, start the video with generateVideoOperation() and read the operation in a later request, as shown in the description.

Where is my API key stored?

A key saved on the Settings > Connectors screen is stored in your site's database, and WordPress shows only its last four characters afterward. Deleting the plugin removes the saved key. A key set with the EMPIRIOLABS_API_KEY environment variable or constant is never stored in the database.

Where can I get help?

Read the EmpirioLabs AI documentation or email support@empiriolabs.ai.

更新日志:

1.1.1 1.1.0 1.0.0