CloudflareKit

https://developers.cloudflare.com/api

API 列表

Cloudflare Images(Cloudflare 图片)

import ImagesClient

let client = ImagesClient(apiToken: "1234567890", accountId: "1234567890")

let uploadedImage = try await client.upload(
  imageURL: URL(string: "https://path/to/image")!,
)

print(uploadedImage)