Frequently asked questions
144 short answers. The docs have the details.
The basics
What is JSXImage?+
An API and a playground that turn a JSX and Tailwind template into a PNG, JPEG or WebP image.
Who is it for?+
Developers who generate images from data: Open Graph images, social cards, ads, product banners, certificates, listings, reports.
What can I make with it?+
Anything that can be laid out with HTML-like markup and rendered as a still image.
How do I get an image?+
Three ways: POST /api/render, a live image URL you sign in your code, or a spreadsheet through bulk export.
Do I need an account to try it?+
No. The playground works without one. Saving templates and creating API keys needs an account.
Is there a free trial?+
Yes: 30 days with 250 renders and 3 templates, and no credit card. Choose a plan when you're ready. See pricing.
Can a template load its own data?+
Yes. Export async function data(props): it can fetch from an API, and what it returns is laid over the props. It can fetch from public APIs such as GitHub, Shopify products, npm, PyPI and Wikipedia. See Data-driven templates.
Is there a free GitHub or npm README card?+
Yes: the GitHub README card shows a repository's stars, forks and language, the GitHub profile card your bio, followers and repositories, and the npm package card a package's version and weekly downloads. Paste one line of Markdown into your README and the card stays up to date. All three are data-driven templates.
Is there a free Open Graph image URL?+
Yes: put <meta property="og:image" content="https://jsximg.com/tools/og-image-generator.png?title=Your+title"> in your page's head, with no account. It uses one design with a small jsximage.com mark; the Open Graph image generator writes the tag for you. Your own design, without the mark, needs an account: see the Open Graph guide.
Is there a free certificate generator?+
Yes: the certificate generator makes a certificate of completion in your browser, with no signup. To issue them from your app, see the certificates guide.
Is it a headless browser?+
No. It uses Takumi, a renderer written in Rust and compiled to WebAssembly. That is why it supports a subset of CSS and Tailwind, not everything a browser does.
What renders the images?+
Takumi, an open-source JSX-to-image renderer. The playground preview and the server use the same engine. See Built on Takumi.
Can it make PDFs, GIFs or videos?+
No. The output is a still PNG, JPEG or WebP image.
Is there an SDK?+
Not yet. It is one HTTP request, so any language works.
Is there an OpenAPI spec?+
Not yet.
Who runs JSXImage?+
Tight Ship AB, a company in Sweden. Contact: info@jsximage.com.
Templates
What is a template?+
A JSX file with three exports: props (the inputs and their defaults), a default component, and options (size and format).
Why is export const props required?+
It holds the default value of every input. A request's props are laid over it, so the template always has values to render.
What if my template has no inputs?+
Export an empty object: export const props = {}.
Do I need to know React?+
Only JSX: elements, {expressions} and plain function components. There is no state.
Can I use hooks like useState?+
No. A template renders once, as a plain function of its props.
Can I import packages?+
No. Templates are self-contained. Put helpers and data in the same file.
Can I write helper components?+
Yes. They are plain functions that return JSX.
Can I use TypeScript?+
Yes. type Props = typeof props gives the editor types from your defaults.
class or className?+
class. className is ignored, and the image comes out unstyled.
Can I use JavaScript logic?+
Yes: map, conditionals, helper functions and constants. Timers and browser APIs don't exist, and fetch only works in [data](/docs#data-driven-templates).
Where do I put sizes and format?+
In export const options: width, height and format.
What is the largest image?+
4000 × 4000 pixels.
Which formats can I output?+
PNG, JPEG and WebP.
Can the image size depend on a prop?+
No. Size is part of options, which is fixed per template.
Is there a template size limit?+
Yes, 200,000 characters of source.
Can I animate anything?+
No. The output is a still image.
How do I debug a template?+
The playground shows the error under the preview. Anything that fails over the API fails there too.
Are there example templates?+
Yes, in the playground's **Templates** dialog: Open Graph images, social cards, banners, certificates, listings and more.
Styling
Which Tailwind classes work?+
A practical subset: layout, spacing, typography, colors, borders, shadows, gradients and arbitrary values like bg-[#16130f].
What doesn't work?+
hover:, focus: and other interactive variants, dark:, and some Tailwind at-rules like @apply.
Does flexbox work? And grid?+
Yes, both. A bare <div> is a block, so add flex when you want flexbox.
Can I define brand colors?+
Yes. Put CSS variables in options.css and use them as classes: --color-brand gives bg-brand.
Do gradients work?+
Yes. Add a direction class such as bg-linear-to-r, or from-* and to-* paint nothing.
Why does my <h1> have extra space?+
There is no CSS reset. Add m-0.
Can I use inline SVG?+
Yes. It is a good way to draw icons, logos, arrows and charts.
Can I use style={{ ... }}?+
Yes. Inline style objects work, and so does a <style> tag with plain CSS.
Fonts, images and emoji
What font is built in?+
Geist, weights 300–800, Latin characters.
How do I use another font?+
Add { googleFont: "Fraunces", weight: 700 } to options.fonts, then use fontFamily: "Fraunces".
Can I use a font that isn't on Google Fonts?+
Yes. Give a URL to a .ttf, .otf, .woff or .woff2 file: { name, url }.
Why did my font fail with HTTP 404?+
The family, weight or subset doesn't exist. Check the name on fonts.google.com and use a weight the font has.
Do I need to list every weight?+
Yes. List each weight and style you use, as its own entry.
Can I use system fonts?+
No. System fonts are not available.
How do I use remote images?+
<img src="https://..." /> with an absolute public URL and an explicit size.
Why is my remote image missing in the playground?+
The playground fetches images in your browser, so the host needs CORS headers. The API has no such restriction.
Do emoji work?+
Yes, automatically. They are drawn as images (Twemoji). Set emoji: false to keep them as text.
Can I use Japanese, Chinese, Korean or Arabic?+
Yes, with a font that has the characters, for example { googleFont: "Noto Sans JP", subset: "japanese" }.
Why do some symbols show as empty boxes?+
The built-in font lacks arrows and math symbols such as → ≠ ≈. Draw them with inline SVG or load a symbols font.
Props
What are props?+
The inputs a template renders: text, numbers, lists, objects.
How do I send props?+
In the props field of an API request, in a signed URL's query, or as spreadsheet columns in bulk export.
What happens to a prop I don't send?+
The default from export const props is used.
What if I send a prop the template doesn't have?+
It is ignored. It isn't an error.
Is the merge shallow or deep?+
Shallow. A prop you send replaces the default whole, so a sent list replaces the default list.
Can I send null?+
Yes. null stays null. The default applies only to a missing prop.
Why are my numbers strings?+
URL query parameters and spreadsheet cells are always text. Convert them: Number(props.price). JSON keeps the types: an API request, or a signed URL's p parameter.
Can I send props as JSON in a URL?+
Yes. Put all props as JSON, base64url-encoded, in one p parameter. It works for any props, text included, and keeps their types. See Props as JSON.
How do I test props in the playground?+
Open the **Params** tab next to **Code**: a form built from export const props that updates the preview as you type, without changing the code. To try a payload as it is, send it to the API.
Are Params saved with the template?+
No. They are for trying values: the preview, Export image, the API dialog and Create URL use them. The defaults that are saved stay in export const props.
The render API
What is the endpoint?+
POST /api/render with { "template": "<uid>", "props": { ... } }. The response body is the image.
How do I authenticate?+
With an API key: Authorization: Bearer <key>.
Where do I get an API key?+
In the dashboard, under **API keys**. Organization admins create them.
Why can't I see my key again?+
It is shown once, and we store only a hash. Revoke the key and create a new one.
Can I put the key in browser code?+
No. Keep it on your server.
What is a template uid?+
A long random id for a saved template. Find it in the dashboard, in the **API** dialog, or in the Templates dialog.
Does the uid change when I rename or edit?+
No.
Which status codes can it return?+
400 invalid body, 401 bad key, 404 unknown template, 429 quota used up, 500 the template failed.
What does a render cost?+
One render from your quota per successful request: your plan's monthly renders, or the trial's 100. Failed requests don't count.
How do I see my quota?+
In the dashboard, and in the X-Quota-Limit and X-Quota-Remaining response headers.
What happens at the limit?+
On a paid plan the API returns 429 with a Retry-After header until the period resets or you change plan. In the trial it returns 402: choose a plan to keep rendering.
Is there a rate limit per second?+
The limit is your monthly quota. There is no separate per-second limit today.
Can I call it from the browser?+
You shouldn't, because that exposes the key. Call it from your server, or use a live image URL for the browser.
Is there a bulk endpoint?+
No. Send one request per image, or use bulk export in the playground.
Can I change the size or format per request?+
Yes, with the render API: send options with width, height, format or quality. Anything left out comes from the template. See the render API.
Live image URLs
What is a live image URL?+
A signed link that renders a saved template with props from the URL. Use it in <img>, og:image or email.
Why is it signed?+
So nobody can change the template, a prop or the format. The signature is an HMAC of the URL.
Where is the signing key?+
On the **API keys** page, for admins. You can rotate it there.
What happens if I rotate the key?+
Every URL signed with the old key returns 404.
Can I sign URLs without calling your API?+
Yes. Signing is a local calculation with your key, in any language.
What happens when I edit the template?+
Every URL made from it shows the new design after you save. They follow the template.
Can I keep an image fixed?+
Render it with the API and store the file. A "pinned" URL doesn't exist yet.
Does creating a URL cost a render?+
No. A URL uses one render the first time it is opened, and nothing after that.
Are images cached?+
Yes, per template version. A browser or CDN that already has the old image can keep it for up to an hour.
What happens when the quota is used up?+
A URL that has never been opened returns 429. URLs already opened keep working.
What do errors look like?+
Plain text, for example Not found, because browsers and crawlers open these URLs.
Why does a URL return 404?+
The signature or a parameter is wrong, the key was rotated, or the template was deleted.
Is there a URL length limit?+
The query string can be about 3 KB.
Is the image public?+
Yes. Anyone with the URL can fetch it. Don't put secrets in props.
Bulk export
What is bulk export?+
A CSV or Excel file becomes a zip of images, one per row, using the template in the editor.
Do I need an account for bulk export?+
Yes. Sign in: the free trial and every plan include it, with a row limit per run.
Is my file uploaded?+
No. Rendering happens in your browser.
Does it use my monthly renders?+
No.
Which files can I use?+
.csv and .xlsx. Save older .xls files as .xlsx or CSV.
How are columns matched to props?+
By name: First name becomes firstName. You can rename or skip any column.
How are files named?+
By row number, or by a column you choose.
What if a row fails?+
It is skipped and listed in errors.csv in the zip. The other rows still render.
Is there a row limit?+
Yes, per run, depending on your plan. See pricing.
AI assistants and MCP
What is the MCP server?+
A public server that lets an AI assistant write a template for you. It has two tools: create_template and modify_template.
How do I connect it?+
claude mcp add --transport http jsximage https://jsximage.com/mcp, or the **MCP** button in the playground.
Do I need an account?+
No. Links the assistant returns work for 7 days without one.
Which assistants work?+
Any client that supports remote (HTTP) MCP servers.
How do I keep a template an assistant made?+
Open the link, sign in and press **Save**.
Can an assistant change my existing templates?+
It can change a copy. Give it a share link, and modify_template returns a link to a modified copy. The original never changes.
Is there a limit?+
20 templates per hour from one client. Code can be up to 40,000 characters.
Is the MCP server included in every plan?+
Yes, and in the free trial. Creating templates with it needs no account at all.
Plans, teams and billing
How is it priced?+
By renders per month and organization members: 10,000 renders for $49, 100,000 for $149, 500,000 for $299. Live image URLs and team members are on every plan. See pricing.
What does the free trial include?+
30 days, 250 renders and 3 templates, with the API, live image URLs, bulk export and the MCP server. No credit card.
What happens when the trial ends?+
Your templates and API keys stay, but new renders stop with 402 until you choose a plan. Running out of the 250 renders does the same.
What counts as a render?+
A successful /api/render call, and the first open of each live image URL. Previews, bulk export, exporting an image in the playground and creating URLs are free.
When does my quota reset?+
On your subscription's billing date. The trial's 250 renders don't reset: they cover the whole 30 days.
What is an organization?+
The team that owns templates, API keys and the signing key. Everything belongs to one.
Who can do what?+
Any member can edit templates. Admins manage API keys, the signing key, billing and the plan.
How do I upgrade or cancel?+
On the **Plans** page, as an admin. Billing is handled by Polar.
What happens when I cancel?+
The plan stays until the end of the paid period. After that, new renders stop until you choose a plan again. Your templates are kept.
What if a payment fails?+
The plan is kept while the payment is retried.
Can you build our templates for us?+
Yes. Template setup is a one-time $299 service: up to 3 templates from your examples or a description, with your fonts and colors, delivered within 5 working days. Buy it on the pricing page.
Are there watermarks or template limits?+
No watermarks on any plan. The trial includes 3 templates; paid plans have no template limit.
Security and privacy
Are my templates private?+
Yes, to your organization. They become visible only if you share one, and images are public wherever you embed a URL.
Is template code safe to run?+
Templates run in an isolated JavaScript sandbox with limits on memory and time. The only network access is a GET-only fetch in [data](/docs#data-driven-templates), to the hosts we allow.
Can someone alter my template?+
Only members of your organization can edit it, and image URLs can't be altered without your signing key.
How do I delete my account or data?+
Email info@jsximage.com.
Troubleshooting
My image is unstyled.+
You used className. Use class.
I get "The template must export props".+
Add export const props = { ... } with every input and its default, or export const props = {} if there are none.
My gradient doesn't show.+
Add a direction class: bg-linear-to-r, bg-radial or bg-conic.
Text is cut off or the layout is wrong.+
Set width and height in options, and give the root element h-full w-full.
"The template took too long to run."+
Simplify it: avoid big loops and large lists.
The preview and the API differ.+
They share the same renderer. Check remote images and fonts: the playground fetches them in your browser, the API on the server.
I get a 429 from the API.+
Your monthly quota is used up. See the Retry-After header, or change plan.
I get a 402 from the API.+
Your free trial has ended, or its 250 renders are used. Choose a plan on the **Plans** page.
Where can I ask something else?+
Email info@jsximage.com.