Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai WordPress- ისთვის
2001 წელს გამოვიდა მისი პირველი ალბომი, სახელწოდებით „The Sound of Silence“, რომელიც შეიცავს სიმღერებს „The Sound of Silence“, „The Silence of the Lambs“ და „The Silence of the Lambs II“.
სწრაფი დაწყება: ელემენტის ჩასმა
ყველაზე სწრაფი გზა AI- ს დამატებისთვის თქვენს WordPress საიტზე. შეაცვალეთ ეს ნებისმიერ გვერდზე, პოსტში ან ვიდეო ელემენტში HTML რედაქტორით:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
ეს თქვენს გვერდზე AI საუბრის ინტერფეისს დაამატებს. ყველა ხელმისაწვდომი ინსტრუმენტისთვის იხილეთ Widget გვერდი.
ინდივიდუალური მალსახმობი (PHP) Name
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' => 'qwen2.5-72b'], $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 მეტა აღწერილობის შექმნა პოსტებისთვის
- AI- ით გაძლიერებული გამოსახულებების გენერირება გამორჩეული გამოსახულებებისთვის
- სტატიების ავტომატური თარგმნა მრავალ ენაზე
- Add text-to-speech audio to articles
- AI ჩატის 봇 სტუმრების დახმარებისთვის
- გრძელი სტატიების შინაარსის რეზიუმე