Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai fun WordPress
Ṣàfikún àṣàrò ìwé tí a fi agbara mù, ìdákọ́ọ̀nù, ìwé-sí-ìrọ̀, àti ìtumọ̀ síwájú sí ojú-ìwé WordPress rẹ̀ nípa ìdíyelé àti REST API wa.
Ìṣàmúlò-ètò
Àwọn ìṣàmúlò-ètò tí o dara jù láti fi AI sí ojú-ìwé WordPress rẹ̀. Fi àwọn ààyè yìí sí ojú-ìwé, àkọ́lé, tàbí àwọn ààyè ìṣàmúlò-ètò HTML:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
Ó fi ojú-ìwé ìsàlẹ̀-ilà ìsàlẹ̀-ilà AI sí ojú-ìwé rẹ̀. Wòye ojú-ìwé Widget fún gbogbo àwọn àtòjọ-ẹ̀yàn tí a ní.
Àwọn àwọn àyọkà ìsàlẹ̀-ilà
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');
Lọ́wọ́lọ́wọ́ lò nínú àwọn àkọ́lé àti àwọn ojú-ìwé:
[freeai prompt="Write a 100-word product description for organic coffee"]
Lo Àwọn Àwọn Ìṣàmúlò-ètò Fún WordPress
- Ṣẹ̀dá àwọn ìṣàmúlò-ètò SEO meta fún àwọn àkọlé
- Ìṣàfilọ́lẹ̀ àwòrán AI-powered fún àwòrán àwọn ìṣàfilọ́lẹ̀
- Ṣàfikún àwọn àkọlé nínú àwọn ìtàn àwọn ìtàn
- Fi àwọn àkọlé àwòrán-si-ìbàlẹ̀ sínú àwọn àkọlé
- AI chatbot fun ìrànwọ́ àwọn ìbẹ̀rẹ̀
- Àwọn àwọn àkọlé àwọn àkọlé àwọn àkọlé