Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai ye WordPress
Iva neAI-yakagadzirirwa kuburitsa, kugadzirwa kwechifananidzo, kushandurwa kwemashoko uye kushandurwa kwemashoko zvakananga kune yako WordPress saiti nekushandisa shortcodes uye yedu REST API.
Quick Start: Kuisa Widget
Iyo yakanyanya kuoma nzira yekuwedzera AI kune yako WordPress saiti. Peta ino mu chero peji, post, kana widget using the HTML editor:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
Izvi zvinowedzera AI chat interface kune yako peji. Ona Widget page yese michina inowanikwa.
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');
Saka shandisai mupost kana papeji chero ipi zvayo:
[freeai prompt="Write a 100-word product description for organic coffee"]
Usati washandisa WordPress
- Auto-kuburitsa SEO meta descriptors for posts
- AI-yakagadzirirwa kugadzira mapikicha emhando yepamusoro
- Translate posts mumitauro mizhinji otomatiki
- Add text-to-speech audio to articles
- AI chatbot yevaenzi rutsigiro
- Zvinyorwa zvemabhuku