Dog rates social card with SVG background
Social card with a fun SVG background and highlighted text.
Explore exampleShare an article with highlighted text.

Interactive example
Change the HTML, CSS, or API options. The browser preview updates as you edit; select Image to render the final output through the API.
Example code
Choose a language and copy a complete request using this example's HTML, CSS, and API options.
# pip install requests
import os
import requests
request = {
"html": """
<div class="card m-2" style="width: 500px;">
<div class="card-body">
<div class="d-inline-flex">
<div class="mr-2">
<img src="https://miro.medium.com/fit/c/240/240/1*DOP75bHPy-SvmqMYsf3q8g.jpeg" class="rounded mx-auto d-block" alt="..." width="60px">
</div>
<div>
<h5 class="card-title">Markham Heid</h5>
<h6 class="card-subtitle mb-2 text-muted">@mheidj</h6>
</div>
</div>
<p class="card-text">These pro-carb, anti-fat nutrition guidelines remained in place for decades, while rates of obesity and its attendant diseases skyrocketed among Americans. <span class="highlight">Many experts now say that the advice to avoid fat in favor of carbs was never supported by hard science</span>, and that healthy sources of fat are an essential component of a proper diet.</p>
</div>
<div class="card-footer text-muted">
from "Why Food Experts Can’t Agree on Coconut Oil"
</div>
</div>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
""",
"css": """
.highlight {
background-color: #D3F4FF;
padding: 3px;
font-style: oblique;
font-weight: 600;
}
body {
background-color: #03B875 !important;
}
.card {
border: #212529 4px solid !important;
}
""",
}
response = requests.post(
"https://hcti.io/v1/image",
auth=(os.environ["HCTI_API_ID"], os.environ["HCTI_API_KEY"]),
json=request,
timeout=30,
)
response.raise_for_status()
result = response.json()
print(result["url"])
From code to screenshot
HTML/CSS to Image renders HTML and CSS in hosted Chrome, then captures the result as an image or PDF. Each example combines real source code with the API options used for the render, so it is both a working demo and a starting point for your own request.
Edit the source and options above to test changes in the browser, then render through the API to see the production result.
Yes. Open an example to inspect and edit its complete HTML, CSS, and render options. Use it as a starting point, then send the resulting request from your application.
Examples are complete API requests built from HTML and CSS. Templates are saved, reusable designs created in the visual editor and rendered repeatedly with different variable values.
Yes. HCTI can render HTML and CSS or capture a public webpage as an image, and it can generate PDFs when you need document output instead of a screenshot.
Send the example’s HTML, CSS, and request options from your application.
Use HCTI with MCP-enabled AI tools, Zapier, Make, and other automation platforms.
Start with a visual preset, customize it in the template editor, and render it repeatedly with dynamic values.
Keep exploring
Social card with a fun SVG background and highlighted text.
Explore example