freepik
بواسطة cohnen
Coding Agents & IDEsموجز
Generate images, videos, icons, audio, and more using Freepik's AI API.
الوصف
ما الذي تفعله هذه المهارة
Connects to Freepik's AI API to generate images, videos, icons, audio, and stock content from text prompts or reference images. Supports 50+ models including Mystic, Flux variants, Kling, Hailuo, RunWay, Seedream, and ElevenLabs TTS. Most operations are async and use a task-polling pattern.
One API key gives access to 50+ AI media models across image, video, audio, and icon generation, removing the need to manage separate accounts for each provider.
متى تستخدمها
- Generating a product mockup image from a text description
- Creating background music for a short promotional video
- Removing the background from a product photo
- Animating a static illustration into a 5-second clip
- Upscaling a low-resolution image to 4K with detail enhancement
مثال على سير العمل
User asks: Generate a cinematic 16:9 video of a mountain sunrise
- 1
Submit POST request to /v1/ai/video/kling-v3-omni-pro with prompt and aspect_ratio 16:9
- 2
Capture task_id from the response
- 3
Poll /v1/ai/video/kling-v3-omni/{task_id} every 3 seconds until status is COMPLETED
- 4
Extract the result video URL from the response
- 5
Present the signed CDN URL to the user
A temporary signed CDN link to the generated video file
المتطلبات
- FREEPIK_API_KEY environment variable — obtain from freepik.com/developers/dashboard/api-key
التثبيت
clawhub install cohnen/freepikشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.