Logo Kie Image

Kie Image

Cộng đồng
mohamedbenhandil
kie-image

Generate images, video, music, speech or chat with ANY model on KIE.ai (GPT Image, Nano Banana, Seedream, Flux, Kling, Veo, Wan, Runway, Suno, ElevenLabs...). Optimizes the prompt, calls the right endpoint, polls, downloads and shows the result inline. Use when the user asks to generate/make an image, logo, video, music or voice "with kie" or names a KIE model.

Tổng quan

Nhà phát hànhmohamedbenhandil
Kho mãkie-claude-skill
Tên kỹ năngkie-image
Sao
26
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được mohamedbenhandil công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kie Image trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/mohamedbenhandil/kie-claude-skill/tree/main/skills/kie-image
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mohamedbenhandil/kie-claude-skill.git /tmp/kie-claude-skill
mkdir -p .claude/skills
cp -r /tmp/kie-claude-skill/skills/kie-image .claude/skills/kie-image
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kie Image trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kie Image ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kie Image với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

KIE generation (any model)

Setup

  • API key from env KIE_API_KEY (user sets once: setx KIE_API_KEY "<key>" on Windows, then reopens the app; export on macOS/Linux). Never write the key into files, prompts or replies. If unset, ask the user to set it.
  • Header on every KIE call: Authorization: Bearer $KIE_API_KEY. Base: https://api.kie.ai.
  • Balance: GET /api/v1/chat/credit.

Find ANY model (do not rely on memory)

  1. curl -s https://docs.kie.ai/llms.txt is the full index. Entries look like Image Models > Google [Title](url.md); categories: Image, Video, Music/Audio, Chat. Grep it for the model name the user said (e.g. grep -i "veo\|kling").
  2. Fetch the model's doc page (<url>.md, English, not /cn/). Read the OpenAPI YAML: the model enum value, input properties (required fields, enums, limits), and the endpoint path. Never guess parameter names or values; a model's aspect_ratio/resolution enums differ per model.
  3. Most models live under https://docs.kie.ai/market/... and share one flow (below). A few families have dedicated docs/endpoints (Suno suno-api, Veo3 veo3-api, Runway runway-api, Flux Kontext, 4o Image, Chat models): follow that page's own endpoint and its own status/result endpoint.
  4. Several size/quality or text-to-X vs image-to-X variants have different model ids. Pick the one that matches the request (text-to-image vs image-to-image, etc.).

Market flow (unified, verified for image models)

  1. POST /api/v1/jobs/createTask with {"model":"<id>","input":{...}} -> data.taskId. Optional callBackUrl (not needed; poll instead).
  2. Poll GET /api/v1/jobs/recordInfo?taskId=ID every 5s (video/music: longer, 10-15s, up to several minutes) until data.state = success (or fail: read failMsg). Result URLs: resultJson -> resultUrls. creditsConsumed shows the cost.
  3. Download to the project's output/ folder and display (images: SendUserFile with display: "render", several files in one call; video/audio: attach and give the path).
  4. Run several jobs in parallel with background & + wait.

Verified models so far: gpt-image-2-5-flare-text-to-image (prompt, aspect_ratio, resolution 1K/2K/4K) and nano-banana-2-1 (prompt, image_input[], aspect_ratio, resolution, output_format). ~3 credits per 1K image. Pricing for other models: check the doc page or tell the user it is unknown and ask before expensive jobs (video, 4K, music).

Reference images / files

  • Upload a local file: POST https://kieai.redpandaai.co/api/file-stream-upload multipart file=@path, uploadPath=images/ref, fileName=x.png -> data.downloadUrl (temporary). Pass that URL where the model expects a URL (image_input, image_urls, ...; check the doc page). Also available: base64 and URL upload (docs: file-upload-api).
  • KNOWN BUG: Nano Banana 2.1 can return the reference image UNCHANGED when image_input is given with a "recreate/variation" prompt. After generating, compare file hashes or look at the image; if identical, regenerate text-only (omit image_input) with a detailed description. Photo edits that preserve a brand logo worked with image_input; still verify the text.

Claude intelligence layer (what makes this better than raw API calls)

  1. Pick the model for the user. If no model is named, choose from the KIE list by need and say why in one line: photoreal/editing, text-in-image or logos, fast drafts, text-to-video vs image-to-video, music, voice. Prefer the cheapest model that fits; ask before expensive jobs (video, 4K, music).
  2. Rewrite the prompt like a pro. Never send the raw sentence. Build: subject, setting, style/medium, lighting, lens or art direction, palette (hex), composition (e.g. text space on the left), mood, explicit exclusions ("no text, no watermark"). Video: add camera move, duration, subject motion, start/end frame. Music: genre, tempo, mood, instruments, structure, vocals or instrumental. Voice: language, tone, pacing. Follow the prompt style the model's doc page recommends.
  3. Read the reference. When the user sends an image, describe its mood, colors, composition and subject first, then reuse those words in the prompt so the result matches.
  4. Automate the loop. Launch variants in parallel, poll until done, download, display, then self-check outputs (spelling, cropping, forbidden elements, identical-to-reference) and regenerate failures once without asking. Offer one concrete next step (more variants, upscale, other ratio) instead of a menu.
  5. Keep session context. Reuse the user's chosen model, ratio, palette and uploaded reference URLs for follow-ups ("other style", "darker") without re-asking.
  6. Be economical. Show model, resolution, ratio, cost in credits and one line per result.

Quality rules learned

  • Optimize the user's prompt (subject, style, palette with hex colors, composition, "no text/logos" when relevant) and use the user's exact model, resolution and ratio.
  • Look at at least one output when text, logos or "no X" constraints matter, and say plainly when something was not checked.
  • Text inside images (names, Arabic) is unreliable: tell the user to verify spelling; Arabic needs a native speaker.
  • Logos: "flat vector, thin monoline, solid background", hex colors; "bold" reads as not luxurious; one concept per variant unless asked to combine. Output is PNG, not vector (needs SVG vectorizing for web/app).
  • Web hero: subjects on the right, empty left for titles, "nothing cropped".
  • Keep replies terse (user saves tokens): model, resolution, ratio, one line per variant. Reply in the user's language (French or English).

Câu hỏi thường gặp

Kỹ năng AI Kie Image làm được gì?

Generate images, video, music, speech or chat with ANY model on KIE.ai (GPT Image, Nano Banana, Seedream, Flux, Kling, Veo, Wan, Runway, Suno, ElevenLabs...). Optimizes the prompt, calls the right endpoint, polls, downloads and shows the result inline. Use when the user asks to generate/make an image, logo, video, music or voice "with kie" or names a KIE model.

Vì sao nên dùng Kie Image trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kie Image là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kie Image trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/mohamedbenhandil/kie-claude-skill/tree/main/skills/kie-image. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kie Image?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kie Image với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kie Image với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kie Image có miễn phí không?

Có. Kỹ năng này được mohamedbenhandil phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇