Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai WordPress માટે
AI-powered સામગ્રી ઉત્પન્ન, ચિત્ર નિર્માણ, લખાણ-થી-ભાષણ, અને અનુવાદ તમારા WordPress સાઇટ પર ટૂંકકોડ્સ અને અમારી REST API ની મદદથી સીધા ઉમેરો.
ઝડપી શરૂઆત: વિજેટને જડિત કરો
તમારી WordPress સાઇટ પર AI ઉમેરવાનો ઝડપી રસ્તો. HTML સંપાદકની મદદથી કોઇપણ પાનાં, પોસ્ટ, અથવા વિજેટમાં આને ચોંટાડો:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
આ તમારા પાનામાં AI વાતચીત ઇન્ટરફેસ ઉમેરે છે. બધા ઉપલબ્ધ સાધનો માટે Widget પાનું જુઓ.
વૈવિધ્યપૂર્ણ ટૂંકાણ કોડ (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' => '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 મેટા વર્ણનો આપોઆપ બનાવો
- પ્રદર્શિત ચિત્રો માટે AI-powered ચિત્ર ઉત્પન્ન કરો
- આપમેળે ઘણાબધા ભાષાઓમાં પોસ્ટ્સનું ભાષાંતર કરો
- લેખમાં લખાણ-થી-ભાષા ઓડિયો ઉમેરો
- મુલાકાતીઓ માટે આધાર માટે AI ચેટબોટ
- લાંબા-રૂપના લેખો માટે સમાવિષ્ટોનો સાર