upload_file
Upload local files or URLs to kie.ai and get a public URL for use with generation tools. Supports images, audio, video with base64 or direct URL input.
Instructions
Upload a file to kie.ai and get a public URL back. Use this to upload local images/audio/video before passing them to generation tools. Supports URL upload, base64 upload. Files expire after 3 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | URL of file to upload — must be PUBLICLY reachable by kie.ai servers (no localhost/private IPs, no auth-gated or expired links). For local files use base64_data | |
| file_name | No | Custom filename (optional) | |
| base64_data | No | Base64-encoded file data — raw base64 or a full data: URI. Whitespace and base64url are normalized and the data:<mime>;base64, prefix is stripped automatically (its MIME infers the extension if file_name is omitted). NOTE: very large images can be truncated when passed as a tool argument — if you get a length/invalid error, prefer file_url with a public URL. | |
| upload_path | No | Storage directory (e.g. "images", "audio", "video") | uploads |