# Rendry: Full Guide for AI Agents Rendry renders images, PDF and HTML documents from reusable templates. You (the external agent) pass a template ID and a flat map of variables; Rendry returns a URL of the finished PNG. Use it whenever a task needs a branded, pixel-perfect image: product cards, promo banners, OG images, YouTube thumbnails, certificates, invitations, receipts, coupons, tickets, labels. The rendering pipeline composes structured templates and supplied data; it does not run a generative image model. Your external AI client may supply copy and layouts through MCP. Separate ML tools process existing images: rembg/U2Net removes backgrounds, and optional SAM3 through fal.ai segments an object by description or point. Credits pay for rendering and supported image processing. What you get here: - FULL design control: create templates from raw JSON DSL, patch individual layers and preview drafts cheaply, besides filling a template's variables. - 50 free credits on signup with complete API and MCP access, no credit card. One-time credit packs, no subscription: $15/500, $35/2,500, $79/25,000, $199/100,000. A final render costs 1-3 credits by canvas area (1 up to 2 MP, 2 up to 4 MP, 3 above); A standard PDF or HTML document costs 2 credits for up to 20 pages; each further started block of 20 pages adds 1 credit. A large page drawn by a whole-page raster render (backdrop_blur, or in html blend_mode) can add a compute surcharge; a free dry run quotes the exact cost. a draft preview costs 0.1 credits; background removal 1 credit; AI images 45 credits each when enabled (identical repeats are free). - Built-in visual editor: the human you work for can open any template you created and adjust it by hand; you automate, they art-direct. - Native remote MCP server: this page is the offline reference; on initialize the MCP `instructions` field delivers a complementary workflow guide (cheap-loop recipes, inline drafts, description etiquette). ## Authentication Two ways, both map to the same account and credit balance: 1. **API key** (Claude Code, scripts, REST): Authorization: Bearer sk_live_... Keys are created by the account owner at https://rendry.io (Settings → API Keys). If you get 401, ask the user to create a key. If you get 402 with insufficient_credits, the balance is exhausted; ask the user to upgrade. Every key has a scope the owner chose when creating it: read (list and read only; over REST it may also price a batch with POST /batch-tasks/preview, which renders and charges nothing), render (read plus render_image, render_batch, render_document and preview_preset, which spend credits), full (everything, including creating, editing, sharing and deleting templates and files). A call outside the scope is refused (403 over REST, a tool error over MCP) with the code api_key_scope_insufficient, and its message names what the key can call; ask the owner for a wider key rather than retrying. 2. **OAuth 2.1** (claude.ai custom connectors; web, desktop, mobile, and any MCP client that speaks OAuth): just add the MCP URL, leave client fields empty. Full chain supported: 401 + WWW-Authenticate resource_metadata, Protected Resource Metadata (RFC 9728), AS Metadata (RFC 8414), Dynamic Client Registration (RFC 7591), authorization_code + PKCE S256, refresh token rotation. The user signs in on the Rendry consent screen. ## Option A: MCP (recommended for agents) Remote endpoint, no installation, stateless streamable HTTP: URL: https://rendry.io/api/v1/mcp Auth: Authorization: Bearer sk_live_... Config per client. The key differs — a config copied from another client is ignored without an error, which reads like "the server does not connect": Claude Code: claude mcp add --transport http rendry https://rendry.io/api/v1/mcp --header "Authorization: Bearer sk_live_..." claude.ai: Settings -> Connectors -> Add custom connector -> paste the URL, leave OAuth fields empty Antigravity: ~/.gemini/config/mcp_config.json (or .agents/mcp_config.json) {"mcpServers":{"rendry":{"serverUrl":"https://rendry.io/api/v1/mcp","headers":{"Authorization":"Bearer sk_live_..."}}}} NOTE: the key is serverUrl, not url Cursor: .cursor/mcp.json {"mcpServers":{"rendry":{"url":"https://rendry.io/api/v1/mcp","headers":{"Authorization":"Bearer sk_live_..."}}}} Codex CLI: ~/.codex/config.toml [mcp_servers.rendry] url = "https://rendry.io/api/v1/mcp" bearer_token_env_var = "RENDRY_API_KEY" stdio-only: npx -y mcp-remote https://rendry.io/api/v1/mcp --header "Authorization: Bearer sk_live_..." The server answers the protocol version the client asks for (2025-06-18, 2025-03-26 and 2024-11-05 are all served the same way). All 38 tools: 1. list_presets {limit?, offset?, query?}; returns {presets: [{id, name, width, height, preview_url, variables[], variables_cut?, description, updated_at}], total, returned, next_offset?}. The user's own templates, newest first, ONE PAGE per call (25 by default, 100 max, fewer when the rows are long): walk with next_offset, narrow by name with query. The row's description is an extract; get_preset has all of it. So is variables[] when the row is long: variables_cut counts the names left out, and get_preset has every one of them — build dynamic_data from that call, not from a row that carries variables_cut. Call this first when the user already designed something. 2. render_image {preset_id, dynamic_data, filename?, return_base64?, format?, quality?, max_width?}; renders synchronously (~1-3 s, up to 25s). dynamic_data maps variable name → value; text variables take text, image variables take a public image URL. Returns {job_id, status, result_url, format, cost, width, height, file_size_bytes, expires_at?} + the image inline; cost is {credits_charged, balance} — what this render took and what is left; return_base64: true returns the FULL PNG as base64 (≤4MB) for sandboxes that cannot fetch result_url. Output is tunable per call and does NOT touch the template: format (png|jpeg|webp), quality (1-100), max_width (downscale, proportions kept, never upscales). format=webp + max_width gives web-ready assets without post-processing the PNG yourself. 3. get_render_status {job_id}; {status: queued|processing|done|error, result_url?, format?, page_count?, warnings?, warnings_status?, warnings_error?, warnings_omitted?, diagnostics_policy?, compliance?, print_receipt?, expires_at?, text_fit?, text_fit_status?, text_fit_error?, geometry?, geometry_error?, error?, preview_pages?, page_previews?: [{page, url, width, height}], page_preview_status?: {status, requested_pages, available_pages, missing_pages}, preview_note?}. result_url appears when available; error explains a failed job. Stored metadata supplies format, page_count for multipage jobs, warnings and text_fit. warnings_status and text_fit_status explicitly distinguish pending, available or collapsed, legacy and unavailable diagnostic metadata; missing metadata never hides the completed file. warnings_omitted counts ordinary warnings outside the bounded response; diagnostics_policy names the capture limits. Paid documents return a bounded text_fit summary; older image jobs may return the legacy fit array. A validated archival result also carries compliance, tied to its selected file digest. Completed raster jobs may carry geometry; corrupt stored metadata uses text_fit_error or geometry_error instead. PDF page_preview_status is pending until all requested pictures are available, then ready; it names requested, available and missing pages. Unfinished PDFs advertise no page pictures: page_previews and preview_pages are explicit empty arrays. Finished PDFs may attach the available raster pictures; page_previews contains their URLs, preview_pages identifies the pages actually shown and preview_note explains them. Missing pictures remain pending, including older PDFs that never uploaded them; read status again to refresh without rendering or charging again. 4. list_templates {category?}; the public gallery (133 ready-made designs: social posts, YouTube thumbnails, sale banners, OG images, posters, certificates, labels). Without a category it returns the categories (key, label, count, example ids); with one, a card per template: id, name, category, canvas_size, description, preview_url and variables[]. Realistic sample_data comes from create_preset_from_template for the template you actually pick. 5. create_preset_from_template {template_id, name?}; clones a gallery template into the user's account as a renderable preset. Returns preset_id + variables. 6. get_usage {}; credit balance, spent, template/asset slots, packages URL. 7. preview_template {template_id}; the gallery preview as an INLINE IMAGE: pick templates by look, not by name. 8. get_preset {preset_id, version_id?}; full JSON DSL of the latest preset. version_id reads an exact checkpoint in that group plus authoritative version metadata; a missing or unrelated version refuses without falling back to latest. 9. create_preset {name, canvas, layers, modifications?, description?, sample_rows?, derived?, draft_id?}; create a template from raw JSON DSL: the agent designs layout, colors, fonts itself. Call get_capabilities first. Always pass description (palette, mood, use case) ; it is what list_presets shows later. Consumes a template slot. 10. update_preset {preset_id, layer_patches?, add_layers?, remove_layer_ids?, layers?, canvas?, name?, modifications?, remove_modification_keys?, preview?, description?, sample_rows?, derived?, version_note?}; edit a design: layer_patches merge partial changes by layer id, add_layers appends new layers, remove_layer_ids deletes, layers replaces wholesale. Returns warnings for the FINAL state. preview: true returns the updated design as an inline image in the same call, one call per iteration instead of update+preview. New version in the same group, does NOT consume a slot. version_note labels this checkpoint (omitted or empty clears the label). Reply preset_id/preset_group_id name the group; version_id is the new exact row and parent_id is its predecessor. 11. delete_preset {preset_id}; delete a preset and free a template slot. 12. get_capabilities {sections?, include_design_guide?}; layer types, fonts (with glyph-coverage notes), limits and dsl_reference: the exact field names/enums for every layer type. Read it BEFORE designing; do not guess field names. Request sections:["finish_profiles"] for versioned whole-canvas finishes, then copy an exact returned id into the returned canvas field; supported formats and minimum dimensions come from the same runtime catalog. 13. preview_preset {preset_id | canvas+layers+modifications, dynamic_data?, derived?, sample_rows?, rows?, keep_draft?, debug_overlay?, size?}; render and return the inline image PLUS estimated layout warnings (per-font text overflow, missing colors); costs 0.1 credits. Use for every iteration. Two modes: preset_id for a saved preset, or inline canvas+layers to preview an UNSAVED draft that costs no template slot. Inline keep_draft defaults to true; false skips draft caching and omits draft_id. Never send keep_draft with preset_id; null/non-booleans fail before charging. Preview PNG preserves the authored final format. Text-fit metrics remain in DSL coordinates; geometry maps layout through pre_finish and output before display resizing. debug_overlay: true overlays every layer's frame labeled `id x,y WxH` (canvas px) and a rule-of-thirds grid; read exact coordinates off the image and patch numerically instead of nudging by eye. 14. list_assets {}; the user's uploaded files: images (put url into image layers or shape image-fill) and custom fonts (set font=font_family AND font_storage_key=storage_key on text layers). 15. get_design_guide {section?}; the design playbook: process rails, canvas sizes per destination, layout/type/color rules, proven composition recipes and a verified example DSL. Call once before designing from scratch. 16. upload_asset {filename, url|path|data_base64}; upload an image or TTF/OTF font and get a hosted url for layers/dynamic_data. Source, in order: url (public https link, ≤5MB, downloaded server-side); always prefer it; path (absolute path to a local file; LOCAL stdio server only); data_base64 only for tiny assets, hard cap 96KB of base64. NEVER base64 a photo: a 1MB image is ~1.4M characters ≈ 370k tokens you would have to write out; the call fails and burns the user's budget. For a local file on the remote connector, use create_upload and run its curl command where the file lives. Consumes an asset slot. 17. render_batch {preset_id, items[≤10], format?, quality?, max_width?}; render one preset with many dynamic_data sets in one call; per-item filenames; each counts as a render. 18. extract_palette {url | storage_key}; 6 dominant colors of a photo with a role suggestion (background = darkest, support = most frequent, accent = most saturated). Free. Call BEFORE designing around a user's photo and tint the design into the photo's palette instead of guessing colors. 19. remove_background {url | storage_key, filename?}; ML background removal (self-hosted U²-Net): transparent PNG saved to assets, hosted url ready for image layers. Costs 1 credit per cutout and consumes an asset slot. The key move for poster-grade covers: cutout over a designed background + shadow on the subject layer. 20. extract_object {url | storage_key, prompt | point, filename?}; cut a SPECIFIC object out of a photo ("the red cup"); remove_background only strips the backdrop. Returns a transparent PNG cutout saved to assets. Costs 1 credit, like remove_background. Use remove_background for the whole subject; extract_object when the photo has many things and you need one. 21. search_images {query, per_page?, orientation?, detail?, start?}; search licensed stock photos (Unsplash/Pexels) by keywords and SEE previews inline; never guess photo URLs. Returns per photo: image_url (hotlink directly in image layers or dynamic_data, no upload needed), dimensions, author. Costs no credits, but is rationed per account and shared by every agent on it: the reply carries searches_left, and the tool description states the ration. detail:"large" returns fewer photos big enough to read a logo on a shirt, and start picks WHICH photo of the list to look at that way; look there before a photo becomes the sample of a brand template. Repeating the same query the same day costs no ration, so a closer look is always free. 22. delete_asset {asset_id}; delete one of the user's uploaded files (image or font) and free an asset slot. Take the id from list_assets. Deletion is permanent and the file disappears from every template that referenced it, so CONFIRM with the user first. Without it an account whose asset slots are full (upload_asset, remove_background and extract_object all consume one) can never recover through the agent. 23. list_components {}; the component library: parameterized blocks (CTA button, price burst, sale ribbon, speaker badge, author bar, rating stars), each a group of layers with {variables}. 24. insert_component {preset_id, component_id, x, y, scale?, overrides?} - drop a component into a preset as one group layer; overrides fill its variables; returned child ids are patchable via layer_patches. A product card = 2-3 components instead of a dozen hand-placed layers. 25. apply_theme {preset_id, palette | from_url, font_pair?}; recolor the whole preset into a palette (roles assigned heuristically: saturated -> accent, dark -> background, text -> auto-contrast) and optionally swap the font pair (clean | display | techno | editorial). One call instead of patching every layer; new version, previous stays in history. 26. share_preset_url {preset_id, enabled?, rotate?}; a public GET link to the preset — /u/{token}.png, no key — for or . Variables ride in the query (?title=Hi); repeats are served from cache and cost nothing, a NEW combination costs a render, at most daily_render_budget a day. Reopening returns the same url; rotate: true replaces it (killing the old one); enabled: false closes it. 27. submit_feedback {rating, note?, preset_id?}; the USER's verdict on a finished generation (1..5, 5 = happy) with their words; every note is read by a human. 28. render_document {document_id | pages[], dynamic_data?, rows?, master?, format?, preview_pages?, dry_run?}; render pages as ONE multi-page file — pdf (default) or html, one self-contained file. ASYNC: poll get_render_status. Charged up front. A standard PDF or HTML document costs 2 credits for up to 20 pages; each further started block of 20 pages adds 1 credit. A large page drawn by a whole-page raster render (backdrop_blur, or in html blend_mode) can add a compute surcharge; a free dry run quotes the exact cost. Failures refund. Up to 20 pages, each {preset_id, dynamic_data} or its own {canvas, layers}. dry_run: true returns the price and the layers that would be rasterized without rendering or charging. 29. list_documents {}; the account's saved documents: id, name, page count. 30. get_document {document_id}; one saved document with its ordered pages. 31. save_document {document_id?, name, pages[], master?}; save a reusable document (omit document_id to create, pass it to replace). A {preset_id} page is COPIED in, so later preset edits never change it; render it with render_document {document_id} without resending the pages. Up to 100 documents an account. 32. delete_document {document_id}; delete a saved document and free its slot; files already rendered stay. 33. list_preset_versions {preset_id, limit?, offset?}; read checkpoint metadata newest first: version_id, preset_group_id, parent_id, name, version_note, created_at and updated_at. Use the group ID from list_presets, walk pages with next_offset, then pass an exact version_id to get_preset. This read neither creates a version nor reports fresh layout warnings. 34. import_pdf_page {filename, url|path|data_base64, page?}; import a selected PDF page as an unsaved template: a text-free PNG background and editable text blocks. Free, consumes an asset slot. Use url or a local stdio path for PDFs; inline data has the upload_asset transport ceiling. Read returned warnings and get_capabilities {sections:["pdf_import"]} for the supported subset and model limits. No OCR or embedded-font extraction. Review before create_preset; background locking is editor-session only. 35. create_upload {filename, size, content_type?}; returns {upload_url, method, expires_at, max_bytes, curl}. Bring a local reference, photo or font through the remote connector without base64 or an external host: run the returned curl command in the environment that holds the file. The URL is a one-use secret on the Rendry API; send exactly size bytes before expires_at. The PUT reply is {id, url, storage_key, file_name, content_type, size}, ready for an image layer or list_assets. Its account and embedded subject are bound when the session is created. Test keys upload originals without a charge or watermark. Validation or storage failure leaves the consumed token used; create a new upload before trying again. 36. generate_asset {prompt, style_id?, style_refs?, aspect?, background?, n?, variation?, filename?}; make AI art separately from rendering. When enabled on the server, returns saved asset URLs and an inline preview. An identical repeat returns stored art free; variation requests new art. Read the current price (45 credits per new image) and availability from get_capabilities {sections:["ai_images"]}. For template-owned paper and a consistent series, read get_design_guide {section:"ai_images"}. Test keys receive free labelled placeholders without calling the provider. 37. ai_style {action, style_id?, name?, style_refs?, background?}; free saved art styles. Save distinct owned image storage_keys under a name; list returns references and rules_version. Use generate_asset {style_id, prompt}; omit style_refs, and override background explicitly when needed. Saving the same name updates references/background while keeping pinned rules. upgrade changes rules for future images, which may differ and cost new generations. delete removes the style and retains its reference assets. Full details: get_design_guide {section:"ai_images"}. 38. prepare_art {preset_id?, rows?, dry_run?, job_id?}; quote and prepare art declared by image layers as generate:{style_id,prompt,aspect?}. Rows are render_batch item objects. dry_run returns distinct/existing/to_make and price_credits without spending; omit it to start a job, then poll job_id. Renders only look up art. art_missing names the prompt and prepare_art call before charging that row; other batch rows continue. A full key prepares; render-only keys reuse cached art. Test renders use free placeholders. ### Measured references In bind, read {@.}; in visible_if.key, read @. with in/not_in and integer strings. Siblings only; inside a repeat row, the same row. Bind supports x, y, width, height, rotation, opacity, size, brightness, contrast, saturation (size is text only). Measurement costs no credits. Images only: documents refuse; use follows there. Measurements requiring uploaded fonts need owned, preparable files; fit_group still refuses; presence remains available. Full rules, budget, repairs and complete presets: get_design_guide {section:"bind"}, or GET /api/v1/design-guide?section=bind. | Metric | Type | Meaning | Not drawn | |---|---|---|---| | visible | all | 1 when drawn, otherwise 0; opacity does not affect presence | 0 | | lines | uncolumned text | lines drawn after wrapping, ellipsis and clip_lines | 0 | | size | uncolumned text | font size drawn after auto_fit and bind.size | 0 | | left | all | drawn rectangle left in the shared parent frame | target top-left | | top | all | drawn rectangle top in the shared parent frame | target top-left | | right | all | drawn rectangle right in the shared parent frame | target top-left | | bottom | all | drawn rectangle bottom in the shared parent frame | target top-left | | width | all | drawn right minus left; zero when not drawn | 0 | | height | all | drawn bottom minus top; zero when not drawn | 0 | create_preset / update_preset STRICTLY validate DSL fields: unknown fields are rejected with did-you-mean suggestions ("fill" -> "color", "text" -> "content"), and responses include warnings for likely-broken output (empty text content, shapes without color, fonts without Cyrillic glyphs). Fix warnings before rendering. render_image returns the rendered image INLINE (downscaled JPEG) plus a download URL; optional "filename" names the file for humans (invite-yefim.png). Multi-line text: use \n inside content. The server also ships a workflow guide via the MCP `instructions` field at initialize. Zero-to-image flow (user has no presets yet; fully autonomous): list_templates → create_preset_from_template → render_image create_preset_from_template returns realistic sample_data for every variable of the template you picked. ## Option B: Plain HTTP API Base URL: https://rendry.io/api/v1 # List your presets (id + name + preview) curl -H "Authorization: Bearer $KEY" https://rendry.io/api/v1/presets # Public template gallery (no auth): full index incl. sample_data curl https://rendry.io/api/v1/templates # Clone a gallery template into the account (returns a renderable preset_id) curl -X POST -H "Authorization: Bearer $KEY" https://rendry.io/api/v1/templates/product-card-studio/clone # Credit balance and slots (works with api key) curl -H "Authorization: Bearer $KEY" https://rendry.io/api/v1/user/limits # Draft preview — 0.1 credits. Returns image_base64 + layout warnings. # Iterate here; whole credits go only to the final render. curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"preset_id":"'$PRESET_ID'","dynamic_data":{"title":"Hello"}}' \ https://rendry.io/api/v1/render/preview # Same endpoint previews an UNSAVED draft — no template slot is consumed curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"canvas":{...},"layers":[...],"modifications":{"title":"Hello"}}' \ https://rendry.io/api/v1/render/preview # Render synchronously → {"job_id","status":"success","result_url":"..."} curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"preset_id":"'$PRESET_ID'","dynamic_data":{"title":"Hello","photo":"https://example.com/p.jpg"}}' \ https://rendry.io/api/v1/render/sync # Batch: one template x up to 10 data sets in a single call curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"preset_id":"'$PRESET_ID'","items":[{"dynamic_data":{"name":"Ada"},"filename":"ada.png"}]}' \ https://rendry.io/api/v1/render/batch # Async variant → 202 + job_id; poll /render/status/{job_id} or pass webhook_url curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"preset_id":"'$PRESET_ID'","dynamic_data":{...},"webhook_url":"https://your.app/hook"}' \ https://rendry.io/api/v1/render/async # Edit one layer without resending the whole design (no slot consumed) curl -X PATCH -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"layer_patches":[{"id":"title","size":96,"color":"#111111"}],"preview":true}' \ https://rendry.io/api/v1/presets/$PRESET_ID Everything the MCP server can do is reachable here too — the implementation is shared, so the two surfaces cannot drift apart: POST /presets/{id}/components drop in a ready block (see GET /components) POST /presets/{id}/theme recolour into a palette or a photo's palette GET /presets/{id}/versions version history DELETE /presets/{id} remove one version GET /images/search licensed stock photos, free POST /images/generate AI art -> owned assets (45 credits each; identical repeats free) POST /images/remove-background photo -> transparent cutout (1 credit) POST /images/extract-object cut ONE object out by prompt or point POST /images/palette dominant colours of a photo GET /assets your files; can_delete marks API-created ones DELETE /assets/{id} frees a slot (API-created files only) GET /user/usage credit balance, slots, spend history GET /capabilities exact DSL fields, fonts, limits (public) GET /design-guide design playbook, markdown (public) Machine-readable contract: https://rendry.io/api/v1/openapi.json ## OpenAI / Anthropic tool schema (if not using MCP) { "name": "render_image", "description": "Render a branded image from a Rendry template. Returns the image URL.", "input_schema": { "type": "object", "properties": { "preset_id": {"type": "string", "description": "Template ID from GET /presets"}, "dynamic_data": { "type": "object", "description": "Variable substitutions, e.g. {\"title\": \"Sale -30%\", \"photo\": \"https://...jpg\"}", "additionalProperties": {"type": "string"} } }, "required": ["preset_id"] } } Implement the tool as POST /render/sync above. ## Depth & effects Any layer: rotation (degrees), shadow {offset_x, offset_y, blur, color, opacity}, blend_mode (multiply/screen/overlay/soft_light/...), opacity. Text: letter_spacing (px), text_stroke_color + text_stroke_width (outlined thumbnail-style type), auto_fit (font shrinks to fit the box), gradient fill. Images/shapes: brightness/contrast/saturation (0..3, 1 = neutral) and blur (px) for color-grading photos into the palette. Backgrounds: shape_type "mesh_gradient" (soft color-blob background, vary with seed) and "blob" (organic shape), plus grain 0..1 on any layer. get_design_guide has ready recipes. Groups: the same effects on a type=group layer apply to the group's baked overlay as ONE unit, a sticker of shape+text rotates and casts a shadow together. Group width+height are required when effects are set. Text plate: badge/ribbon in ONE text layer; plate_shape draws a shape fitted to the text box + plate_padding (default: half the font size), text centered; plate_color, optional plate_stroke_color/width; the layer's rotation/shadow apply to the bundle. "NEW", "-30%", "SALE" labels = this. ## Template semantics - Text layers contain {variable} placeholders; replaced via dynamic_data. - Image layers with a dynamic key accept a public image URL via dynamic_data. - QR/barcode layers accept content via {variable}; QR takes any string, barcodes validate format (EAN-13 needs a valid 13-digit code). - Canvas is fixed per template (exact output size, no surprises). - Fonts (each with measured avg_char_width in capabilities; line px ≈ chars × size × coef): Roboto 0.58, Inter 0.61, Merriweather 0.64, Roboto Mono 0.60, Pacifico 0.60 (Latin-only), Unbounded 0.78 (wide display, Cyrillic), Russo One 0.64 (display, Cyrillic) + user fonts via upload_asset. Emoji keep their own colours. ## Error handling for agents - Every refusal is one JSON object {error: machine code, message: sentence, …fields}; an MCP tool error carries the same object as its text. Branch on error, show message. - 400: invalid request; message names the offending field; fix and retry. A key the call does not read is error unknown_field: fields lists each one, with did_you_mean when a known key is near. A barcode value its format refuses (an EAN-13 that is not 13 digits) is a 400 too, refused before anything is charged. - 401: missing/invalid API key; ask the user for a key, do not retry blindly. - 403: the key's scope or allow-list does not cover the call; error is a machine code (api_key_scope_insufficient, api_key_preset_not_allowed, api_key_limited_to_presets); do not retry with the same key. - 404: preset not found; re-run list_presets, the ID may be stale. - 422: the render itself failed after admission; message explains why. - 402: insufficient credits; stop, tell the user the balance and share the packages page; retrying will not help. The error body is {error: "insufficient_credits", message, balance, required, packages_url}; share packages_url with the user. Check the balance anytime with get_usage (or GET /user/limits over REST). - A SLOT limit (preset_limit_exceeded, asset_limit_exceeded) is a different refusal: its body carries used/limit, freeable (what you may delete), free_with (the tool that frees a slot) and upgrade_url; REST answers it as 403, on uploads and on template creation alike. - 429 with Retry-After: too many requests or renders at once; wait the header's seconds and retry once. - 503: temporary backend issue; retry once after a short delay. ## Limits and pricing - Canvas up to 6144×6144, up to 40 layers per template. - Sync render waits up to 25s (typical: 1-3 s). Use async + webhook for batches. - 50 free credits on signup, no credit card; A final render costs 1-3 credits by canvas area (1 up to 2 MP, 2 up to 4 MP, 3 above); A standard PDF or HTML document costs 2 credits for up to 20 pages; each further started block of 20 pages adds 1 credit. A large page drawn by a whole-page raster render (backdrop_blur, or in html blend_mode) can add a compute surcharge; a free dry run quotes the exact cost. a draft preview costs 0.1 credits; background removal 1 credit; AI images 45 credits each when enabled (identical repeats are free). - Credit packs (one-time): 500 credits for $15 · 2,500 credits for $35 · 25,000 credits for $79 · 100,000 credits for $199. - update_preset does not consume a template slot; delete_preset frees one. ## Task-specific pages (human-readable, same facts) - https://rendry.io/image-rendering-for-agents; Rendering for Agents - https://rendry.io/image-generation-api; Image API - https://rendry.io/batch-image-generation; Batch Generation - https://rendry.io/use-cases/youtube-thumbnails; YouTube Thumbnails - https://rendry.io/use-cases/covers; Covers - https://rendry.io/use-cases/invitations; Invitations - https://rendry.io/use-cases/business-cards; Business Cards - https://rendry.io/use-cases/product-cards; Product Cards - https://rendry.io/use-cases/og-images; OG Images - https://rendry.io/use-cases/ad-banners; Ad Banners - https://rendry.io/use-cases/social-media-posts; Social Posts - https://rendry.io/use-cases/certificates; Certificates - https://rendry.io/pdf-api; PDF Generation API; Your First Document - https://rendry.io/certificate-generator; Free Certificate Generator; Bulk Certificates from a List - https://rendry.io/og-image-link; Dynamic OG Images from a Link; Webflow, Ghost, WordPress ## Links - Editor & signup: https://rendry.io - Docs: https://rendry.io/docs - OpenAPI: https://rendry.io/api/v1/openapi.json - MCP endpoint: https://rendry.io/api/v1/mcp - llms.txt (short version): https://rendry.io/llms.txt