Skip to main content
Content updated: 2026-09-28
Crazyrouter provides a temporary public image upload interface, which allows you to convert a local reference image into a publicly accessible URL for models. It is suitable for interfaces such as Kling, Veo, Seedance, Runway, Luma, MiniMax, Nano Banana Pro, Doubao Seedream that require image_url, image_urls, image_list, images, or image_input.
Temporary images are kept for 48 hours by default and will be automatically deleted after expiration. No separate charges are incurred per day within the storage period; currently, abuse prevention is managed through user upload quota and rate limits.
The returned id is the file record ID of this site. In the model request, image_input should use the returned url and cannot directly submit id. The Base64 / multipart upload option (nano-banana-pro) is restricted to specific accounts.

Interface Overview

General Restrictions:

Local File Upload

cURL
Response Example:

Base64 Upload

cURL

Remote URL Import

cURL
The remote URL must be an image address (http or https) that is accessible to the Crazyrouter server. The system performs checks on file size, MIME type, and SSRF protection.

Pre-signed Direct R2 Upload

For scenarios with high upload volumes, you can first request a pre-signed upload URL, then have the client directly PUT the image to the storage endpoint. Thus, the image binary does not pass through the Crazyrouter application server. This workflow is suitable for handling large numbers of image uploads every day. Step 1: Request a direct upload URL:
cURL
Response Example:
Step 2: The client uploads directly to upload_url:
cURL
After uploading is complete, use the url returned as the image URL in the model request.
upload_url is a short-lived write address, typically valid for about 15 minutes. Content-Type and Content-Length must match the ones from the application; do not send upload_url to the model, in model requests you should use the returned url.

Practical Example: Local Reference Image for Kling Image-to-Video

Step 1: Upload the local reference image:
cURL
Step 2: Submit the returned IMAGE_URL to Kling image-to-video:
cURL
Upon successful submission, a task ID will be returned. Retrieve the final video result via Kling Task Query.
The temporary URL is not a permanent asset library. Please ensure the URL has not expired before submitting the task and do not use it as a long-term business image address.