Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai kwa Ajili ya WordPres
Ongeza kitabu cha habari cha AI-userated creation, election of-to-speech, na kutafsiri moja kwa moja kwenye tovuti yako ya WordPress kwa kutumia maandishi mafupi na RAST API.
Mwanzo wa Haraka: Angekatwa na Widge
Njia ya haraka zaidi ya kuongeza AI kwenye tovuti yenu ya WordPress. Pasting hii katika ukurasa wowote, posti, au wholate kwa kutumia Mhariri wa HTML:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
Hili laongeza alama ya AI kwenye ukurasa wako. Ona alama ya harta href Lima"/widgeget/"BeorgieWidget comets/a mwoneGeorgica kwa ajili ya zana zote zilizopo.
Desturi za Muda mfupi (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');
Kisha uitumie katika posti au ukurasa wowote:
[freeai prompt="Write a 100-word product description for organic coffee"]
Tumia Kesi za Neno la Mungu
- Ufafanuzi wa Ato-generate SO noya kwa ajili ya posti
- Picha zenye nguvu kwa ajili ya picha
- Mashine za kutafsiri katika lugha mbalimbali moja kwa moja
- Ongeza sauti ya maandishi-to-peech kwa makala
- Majadiliano kwa ajili ya wageni
- Maelezo ya kuridhisha kwa ajili ya makala zenye muundo wa muda mrefu