Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai लागि WordPress
एआई-शक्ति सामाग्री सिर्जना, छवि सिर्जना, पाठ-देखि-भाषण, र अनुवाद shortcodes र हाम्रो REST API प्रयोग गरेर आफ्नो WordPress साइट सीधा थप्नुहोस्।
छिटो सुरुआत: विजेट सम्मिलित गर्नुहोस्
आफ्नो WordPress साइटमा AI थप्न छिटो तरिका। कुनै पनि पृष्ठमा यो टाँस्नुहोस्, पोस्ट, वा HTML सम्पादक प्रयोग गरेर विजेट:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
यसले तपाईँको पृष्ठमा AI कुराकानी इन्टरफेस थप्दछ । सबै उपलब्ध उपकरणका लागि विजेट पृष्ठ हेर्नुहोस् ।
अनुकूलन छोटो कोड (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');
त्यसपछि कुनै पनि पोस्ट वा पृष्ठ मा यसलाई प्रयोग:
[freeai prompt="Write a 100-word product description for organic coffee"]
WordPress लागि प्रयोग गर्नुहोस् केसहरू
- पोस्ट लागि स्वचालित-उत्पादित SEO मेटा वर्णन
- विशेषता छविहरूका लागि AI-शक्ति छवि सिर्जना
- स्वचालित रूपमा बहुभाषी पोस्ट अनुवाद गर्नुहोस्
- लेखमा पाठ-बाट-वाचन अडियो थप्नुहोस्
- आगन्तुक समर्थनका लागि AI च्याटबोट
- लामो-रूप लेखहरूका लागि सामाग्री सारांश