Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai ለ WordPress
AI-powered ይዘት ማምረት, ምስል መፍጠር, ጽሑፍ-ወደ-ንግግር, እና ትርጉም በቀጥታ ወደ WordPress ጣቢያዎ shortcodes እና የኛ REST API በመጠቀም.
ቀጥል (_R)
የእርስዎ WordPress ጣቢያ AI ለማስቀመጥ ፈጣን መንገድ. ይህ በየትኛውም ገጽ, ጽሑፍ, ወይም በኤችቲኤምኤል አዘጋጅ በመጠቀም widgets ውስጥ ይጣበቁ:
<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 የጉብኝት ድጋፍ
- የጽሑፉን ይዘት