Free.ai WordPress Plugin
AI tools for WordPress. Content generation, images, and more.
Free.ai за WordPress
Додај садржај на ВИ, стварање слике, текст- у-спеецх, и превод директно на сајт ~@ ¦ВресПен¦Press¦ користећи кратак код и РЕСТ АПИ.
Брзо покретање: уграђен виџет
Најбржи начин да се дода ВИ на сајт ~@ ¦Врсап¦ WordPress¦. Налепите ово у било коју страницу, пошти или виџет користећи ХТМЛ уређивач:
<script src="https://free.ai/widget.js" data-tool="chat"></script>
This adds an AI chat interface to your page. See the Widget page for all available tools.
посебан кратак код (ПХП)
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"]
Случаји за ~@ ¦Вребес¦Press¦
- Аутоматски генериши СЕО мета описе за постове
- Генекција слика на ВИ за садржане слике
- Аутоматски преведи постове на више језика
- Додај текст‐ у‐ говор звуку у чланове
- ВИ‐ ћаскање за подршку посетиоца
- Збир садржаја за дугоформатне чланове