Дата обновления: 2026-06-21Crazyrouter provides temporary public image upload endpoints for converting local or remote images into model-readable public URLs. Use them for vision, image editing, image-to-video, and workflow integrations.
Temporary images are kept for 48 hours by default and then cleaned up automatically. Storage during that period is not billed separately; per-user upload quota and rate limits apply.
Endpoint Overview
| Scenario | Endpoint |
|---|---|
| Local file upload | POST /v1/files/uploads |
| Base64 image upload | POST /v1/files/uploads/base64 |
| Remote image rehosting | POST /v1/files/uploads/url |
| Presigned direct R2 upload | POST /v1/files/uploads/presign |
| Item | Current rule |
|---|---|
| Auth | Authorization: Bearer YOUR_API_KEY |
| Supported formats | image/png, image/jpeg, image/webp, image/gif |
| Single file size | 20MB |
| User upload quota | 200MB / rolling 24-hour window |
| Default expiration | 48 hours |
| Returned URL | https://media.crazyrouter.com/task-artifacts/tmp-inputs/... |
Presigned Direct R2 Upload
For high-upload-volume workflows, request a presigned upload URL first, then upload the image directly from your client to the storage endpoint withPUT. The image bytes do not pass through the Crazyrouter application server.
cURL
cURL
url as the image URL in the model request.