Skip to content

Commit e0850bc

Browse files
committed
Update index.md
1 parent f8d8d44 commit e0850bc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎index.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ description: >-
77
---
88

99
# HTML/CSS to Image API
10-
11-
{: .fs-9 }
10+
{: .no_toc }
1211

1312
Your search for pixel perfect image generation ends here.
1413
{: .fs-6 .fw-300 }
@@ -32,8 +31,11 @@ Generate high-quality images from HTML/CSS, capture public webpages, or automate
3231
Create images programmatically using HTML and CSS. Perfect for social cards, certificates, dynamic graphics, and more.
3332

3433
```bash
35-
curl -X POST https://hcti.io/v1/image -u 'UserID:APIKey' \
36-
-d html="<div style='padding:20px;background:#4f46e5;color:white;font-size:24px;'>Hello World</div>"
34+
curl -X POST https://hcti.io/v1/image \
35+
-u 'UserID:APIKey' \
36+
--data-urlencode 'html=<div class="card">Hello World</div>' \
37+
--data-urlencode 'css=.card { padding: 20px; background: #4f46e5;
38+
color: white; font-size: 24px; }'
3739
```
3840

3941
[Learn more about HTML to Image →](/getting-started/using-the-api/)

0 commit comments

Comments
 (0)