Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai ສຳ ລັບ WordPress
ເພີ່ມການສ້າງເນື້ອຫາ AI-powered, ການສ້າງຮູບພາບ, ຂໍ້ຄວາມ-to-ຄໍາເວົ້າ, ແລະແປໂດຍກົງໄປຫາເວັບໄຊ WordPress ຂອງທ່ານໂດຍໃຊ້ shortcodes ແລະ REST API ຂອງພວກເຮົາ.
ເລີ່ມຕົ້ນໄວ: ຝັງວິດີໂອໃນໄຟລ໌
ວິທີທີ່ໄວທີ່ສຸດເພື່ອເພີ່ມ AI ໄປທີ່ເວັບໄຊທ໌ WordPress ຂອງທ່ານ. ປ້າຍນີ້ເຂົ້າໄປໃນຫນ້າໃດຫນຶ່ງ, ບົດຄວາມ, ຫຼື widget ໂດຍໃຊ້ຕົວແກ້ໄຂ HTML:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
ເພີ່ມການສື່ສານທາງອິນເຕີເຟດ AI ເຂົ້າໄປໃນໜ້າຂອງທ່ານ. ເບິ່ງໜ້າ Widget ສຳລັບເຄື່ອງມືທີ່ມີຢູ່ທັງໝົດ.
ຕົວເລືອກການຕັ້ງຄ່າ
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 ສໍາລັບບົດຄວາມໂດຍອັດຕະໂນມັດ
- ສ້າງຮູບພາບ AI-powered ສຳ ລັບຮູບພາບທີ່ແນະນຳ
- ແປບົດຄວາມເປັນພາສາຫຼາຍໆພາສາໂດຍອັດຕະໂນມັດ
- ເພີ່ມຂໍ້ຄວາມເປັນສຽງໃຫ້ບົດຄວາມ
- AI chatbot ສຳ ລັບການສະໜັບສະໜູນຜູ້ເຂົ້າຊົມ
- ເນື້ອໃນສັງລວມສໍາລັບບົດຄວາມແບບຍາວ