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