Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai WordPress ကိုများအတွက်
AI-powered content generation ကို add, image တည်ဆောက်ခြင်း, စာသား-to-စကားပြော, နှင့် shortcodes နှင့်ကျွန်ုပ်တို့၏ REST API ကိုအသုံးပြုပြီးသင်၏ WordPress site ကိုတိုက်ရိုက်ဘာသာပြန်ဆို.
Quick Start: Widget ကိုထည့်သွင်း
သင့်ရဲ့ WordPress ကို site ကို AI ကိုထည့်သွင်းရန်အမြန်ဆုံးနည်းလမ်း. မည်သည့်စာမျက်နှာသို့ဤ paste, post ကို, သို့မဟုတ် HTML ကို editor ကိုအသုံးပြုခြင်းဖြင့် widget ကို:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
ဤသည်သင်၏စာမျက်နှာသို့ AI စကားပြော interface ကို adds. အားလုံးရရှိနိုင် tools များအဘို့ Widget စာမျက်နှာ ကိုကြည့်ပါ.
Custom Shortcode (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' => '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');
ထို့နောက်မည်သည့် post သို့မဟုတ်စာမျက်နှာတွင်အသုံးပြု:
[freeai prompt="Write a 100-word product description for organic coffee"]
WordPress ကိုများအတွက်အသုံးပြုမှုအမှု
- posts များအတွက် SEO meta descriptions ကို auto-generate
- ဖော်ပြထားသော ရုပ်ပုံများအတွက် AI-powered ရုပ်ပုံထုတ်လုပ်မှု
- ဘာသာစကားများစွာအလိုအလျောက် posts များကိုဘာသာပြန်
- စာသား-စကားပြောအသံကိုဆောင်းပါးများသို့ထည့်ပါ
- ဧည့်သည်ထောက်ခံမှုများအတွက် AI chatbot
- ဆောင်းပါးများများအတွက်ရှည်လျားသောပုံစံများအတွက်အကြောင်းအရာအတိုချုပ်