Media

Render a meme preview without saving it

post/memes/preview

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/memes/preview
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

captionsstring[] nullable required

Caption values in template order

format'png' | 'jpg' | 'jpeg' | 'gif' | 'webp'

Rendered image format

overlay_media_idsstring[] nullable

Workspace media IDs for replaceable image slots

template_idstring required

OpenPost meme template ID

workspace_idstring required

Workspace ID

Example request

{
  "$schema": "https://example.com/api/v1/schemas/PreviewMemeInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

data_base64string required

Base64-encoded rendered image bytes

mime_typestring required
template_idstring required

Example response

{
  "$schema": "https://example.com/api/v1/schemas/PreviewMemeOutputBody.json"
}

Changes

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