Our REST API lets you generate images programmatically from any application. This guide will get you up and running in minutes.
Quick Start Guide
Follow these three steps to make your first API call:
Step 1: Get Your API Key
- Go to Dashboard → Integrations (or API Keys)
- Click "Create API Key"
- Copy and save your key immediately
Warning: Your full API key is only shown once when you create it. Store it securely!
Step 2: Get Your Design ID
You can find your design ID in two ways:
- From the URL: Open your design in the editor — the ID is in the URL:
/editor/YOUR_DESIGN_ID - From the Dashboard: Hover over any design card to see its ID
Step 3: Make Your First API Call
Here's a complete example using cURL:
bashcurl -X POST "https://api.canvelete.com/api/v1/render" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "designId": "YOUR_DESIGN_ID", "format": "png", "dynamicElements": { "title": { "text": "Hello World" } } }'
API Response
A successful response looks like this:
json{ "success": true, "imageUrl": "https://cdn.canvelete.com/renders/abc123.png", "renderTime": 234 }
Success: The
imageUrlis a direct link to your generated image. It's publicly accessible and CDN-delivered for fast loading worldwide.
Code Examples
Go to Dashboard → Integrations to get ready-to-use code in:
- JavaScript / Node.js
- Python
- PHP
- Ruby
- Go
- cURL
Pro Tip: The Integrations page lets you select your design, configure dynamic elements, and generates the exact code you need.
API Parameters Reference
| Parameter | Description | Default |
|---|---|---|
designId | Your design's unique ID | Required |
format | Output format: png, jpeg, pdf, svg | png |
quality | Image quality (1-100, JPEG only) | 90 |
dynamicElements | Data to override in the design | {} |
cache | Cache the result for faster subsequent requests | true |
Next Steps
- Learn about Dynamic Elements to customize your images
- Check API Response Handling for error handling
- Explore No-Code Options if you prefer visual tools