v8

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-2526602.8 MB
Media

Upload media to the OnlyFans CDN

The response can be used only once to manually include media in a post or message. This endpoint does not upload media to the Vault. You must provide either file or file_url.

post/api/{account}/media/upload

Response

Synchronous upload (default)

prefixed_idstring
file_namestring
processIdstring
hoststring
sourceUrlstring
extrastring
notestring

Example response

{
  "prefixed_id": "ofapi_media_abc123def456abc123def456abc123de",
  "file_name": "photo.jpg",
  "processId": "abc123def456abc123de",
  "host": "convert3.onlyfans.com",
  "sourceUrl": "https://of2transcoder.s3.amazonaws.com/upload/00000000-0000-0000-0000-000000000000/000000000000/photo.jpg",
  "extra": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...",
  "additional": {
    "user": "123456789"
  },
  "thumbs": [
    {
      "id": 1,
      "url": "https://cdn2.onlyfans.com/files/0/00/00000000000000000000000000000000/300x544_00000000000000000000000000000000.jpg"
    }
  ],
  "note": "Maximum file size is 1 GB. Need higher limits? Contact us for enterprise options."
}