Menu
Important
Stay updated on React2Shell

@vercel/og Reference

Last updated July 18, 2025

The package exposes an constructor, with the following parameters:

ParameterTypeDefaultDescription
The React element to generate the image from.
Options to customize the image and HTTP response.
ParameterTypeDefaultDescription
The width of the image.
The height of the image.
The emoji set to use.
Debug mode flag.
The HTTP status code for the response.
The HTTP status text for the response.
The HTTP headers for the response.
ParameterTypeDefaultDescription
The name of the font.
The font data.
The weight of the font.
The style of the font.

By default, the following headers will be included by :

Refer to Satori's documentation for a list of supported HTML and CSS features.

By default, only has the Noto Sans font included. If you need to use other fonts, you can pass them in the option. View the custom font example for more details.


Was this helpful?

supported.