AI

Upload file to CDN

Upload a base64-encoded file to CDN storage and receive a public URL. Accepts raw base64 or a full data URI prefix (data:<mime>;base64,...). Maximum payload size is 20 MB.

post/api/v1/upload

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/v1/upload
  • Auth
    HTTP bearer

Request body

datastring required

Base64-encoded file content. Accepts raw base64 or full data URI (e.g. data:image/jpeg;base64,...).

mime_typestring

MIME type of the file (defaults to image/jpeg)

filenamestring

Desired filename on the CDN (defaults to upload-{timestamp}.bin)

Example request

{
  "data": "/9j/4AAQSkZJRgABAQAA...",
  "mime_type": "image/png",
  "filename": "photo.jpg"
}

Response

File uploaded — returns public CDN URL

urlstring uri

Public CDN URL of the uploaded file

Example response

{
  "url": "https://fal.media/files/rabbit/xyz/photo.jpg"
}

Changes

No recorded changes to this operation across all 1 revision of this API.