Free.ai WordPress Plugin

AI tools for WordPress. Content generation, images, and more.

ۋوردپرەس ئۈچۈن Free.ai

AI كۈچىگە ئىگە مەزمۇنلارنى يارىتىش، سۈرەتلەرنى يارىتىش، تېكىستتىن سۆزگە ئۆزگەرتىش ۋە تەرجىمە قىلىشنى قىسقا كودلار ۋە REST API ئارقىلىق WordPress تور بېتىڭىزگە توغرا كىرگۈزۈڭ.

تېز باشلاش: ۋىجداننى ئورنىتىش

وردۇسپېر تور بېتىڭىزگە AI قوشۇشنىڭ ئەڭ تېز ئۇسۇلى. بۇنى HTML تەھرىرلىگۈچ ئارقىلىق ھەر قانداق تور بېتىگە، ماقالىگە ياكى ۋىجىتكە چاپلىسىڭىز بولىدۇ:

<script src="https://free.ai/widget.js" data-tool="chat"></script>

بۇ تور بېتىڭىزگە AI سۆھبەت ئارايۈزىنى قوشىدۇ. بارلىق قوللىنىلىدىغان قوراللار ئۈچۈن Widget page نى كۆرۈڭ.

خالىغان قىسقا كود (PHP)

Create a WordPress shortcode that calls the Free.ai API. Add this to your theme's functions.php:

function freeai_generate($atts) {
    $atts = shortcode_atts(['prompt' => '', 'model' => 'qwen7b'], $atts);
    $response = wp_remote_post('https://api.free.ai/v1/chat/completions', [
        'headers' => [
            'Authorization' => 'Bearer YOUR_API_KEY',
            'Content-Type'  => 'application/json',
        ],
        'body' => json_encode([
            'model'    => $atts['model'],
            'messages' => [['role' => 'user', 'content' => $atts['prompt']]],
        ]),
    ]);
    if (is_wp_error($response)) return 'Error generating content.';
    $body = json_decode(wp_remote_retrieve_body($response), true);
    return '<div class="freeai-output">' .
        esc_html($body['choices'][0]['message']['content'] ?? '') .
        '</div>';
}
add_shortcode('freeai', 'freeai_generate');

ئاندىن ئۇنى ھەرقانداق بىر ماقالە ياكى بەتنىڭ ئالدىدا ئىشلىتىڭ:

[freeai prompt="Write a 100-word product description for organic coffee"]

WordPress نىڭ ئىشلىتىش ئەھۋالى

  • ماقالىلەر ئۈچۈن SEO meta description نى ئاپتوماتىك قۇرۇش
  • ئالاھىدە سۈرەت ئۈچۈن AI-powered سۈرەت ھاسىل قىلىش پروگراممىسى
  • مەزمۇنلارنى كۆپ تىللارغا ئۆزلۈكىدىن تەرجىمە قىلىش پروگراممىسى
  • ماقالىلەرگە تېكىستتىن سۆزگە ئاۋاز قوشۇش پروگراممىسى
  • زىيارەتچىلەرنى قوللاش ئۈچۈن AI chatbot
  • ئۇزۇن مەزمۇنلۇق ماقالىلەر ئۈچۈن مەزمۇن قىسقىچە مەزمۇن

كۆپ سورالغان سوئاللار

The fastest method is embedding the widget with one line of HTML: add the script tag for the Free.ai widget in any page, post, or widget area. For programmatic use, create a custom shortcode that calls the Free.ai API from PHP.

No. Free.ai works with standard HTML embeds and PHP shortcodes. You do not need to install a plugin. The widget script tag or the custom shortcode in functions.php is all that is required.

You can add AI chat, text-to-speech, translation, image generation, content summarization, SEO meta description generation, and more. Any Free.ai tool accessible via the API can be integrated into WordPress.

Add a PHP function to your theme's functions.php that calls the Free.ai API with wp_remote_post. Register it as a shortcode. Then use [freeai prompt='your prompt'] in any post or page to generate AI content inline.

No. The widget script is lightweight and loads asynchronously, so it does not block page rendering. It only makes API calls when a user interacts with it, not on page load.

Yes. Use the API shortcode to generate meta descriptions from your post content. Call the API with a prompt like 'Write a 155-character SEO meta description for this article: [post content]' and output the result in your theme's head section.

Yes. Use the Free.ai translation API to translate post content into multiple languages. This can be automated with a custom function that translates on publish, or done manually with the translation widget.

Yes. The widget embed code works in any HTML block in Elementor, Gutenberg, Divi, or any other page builder. Add the script tag in a custom HTML widget or block.

The integration itself is free. API calls consume tokens from your Free.ai account. For sites with moderate traffic, the free daily token limit may be sufficient. Higher-traffic sites should consider a paid plan.

Yes. Use the TTS widget embed to add a listen button to your articles. Visitors can click to hear the article read aloud using AI-generated speech. Alternatively, use the API to pre-generate audio files.

Store your API key in wp-config.php as a constant (define('FREEAI_API_KEY', 'your_key')) and reference it in your shortcode function. Never hardcode API keys directly in theme files that might be committed to version control.

Yes. Call the API with a product title and details to generate compelling product descriptions. This can be automated when new products are added or done in bulk for existing product catalogs.

Free.ai نى ياخشى كۆرەمسىز؟ دوستلىرىڭىزغا ئېيتىپ بېرىڭلار!

بۇ بەت