FastPic
POST

Upload an image

Upload an image to FastPic and receive a public URL you can transform on the fly.

Send the image as multipart/form-data. The endpoint accepts JPEG, PNG, WebP, and AVIF up to 10 MB. The response includes a public-id you can append to media.fastpic.pro to deliver the image with optional transforms.

POST/v1/images
Authentication
Send your API key as a Bearer token in the Authorization header. See Authentication for details on creating keys.

Body parameters

FieldTypeRequiredDescription
filestringyesImage file (JPEG/PNG/WebP/AVIF, ≤10 MB).
namestringnoFilename to display in dashboard. Optional if the multipart part already has a filename.

Returns

Schema unavailable for response.

Errors

StatusDescription
401Missing or invalid API key.
402Storage quota exceeded.
413File exceeds 10 MB limit.
422Validation error or unsupported media type.
429Rate limit exceeded.