Instagram Demo
Turn posts into beautiful Instagram-ready images with custom styling and branding. Choose from multiple themes and customize colors for stories, feeds, and any social platform.
Get Started
Install the official SDK for your language and start generating images in minutes.
Install the SDK
npm install @ddukddak/nodeGenerate an Image
const { Ddukddak } = require("@ddukddak/node");
const client = new Ddukddak("YOUR_API_KEY");
// Generate an Instagram-ready image from a post
const image = await client.images.createAndWait({
template: "instagram",
properties: [
{ name: "post_url", text: "https://instagram.com/p/ABC123" },
{ name: "theme", text: "dark" },
{ name: "background_color", text: "#1a1a2e", color: "#1a1a2e" },
],
});
console.log(image.image_url);API Parameters
Parameters for the image generation endpoint.
| Parameter | Type | Required | Description |
|---|---|---|---|
| template | string | Yes | Template slug or UUID — use "instagram" |
| properties | array | Yes | Array of property objects: { name, text?, image_url?, color? } |
| transparent | boolean | No | Enable transparent background (default: false) |
Async Pattern with Polling
For production use, separate creation from polling for more control.
const { Ddukddak } = require("@ddukddak/node");
const client = new Ddukddak("YOUR_API_KEY");
// Step 1: Create image (returns immediately)
const image = await client.images.create({
template: "instagram",
properties: [
{ name: "post_url", text: "https://instagram.com/p/ABC123" },
{ name: "theme", text: "gradient" },
],
transparent: false,
});
console.log(`Request ID: ${image.uid}`);
console.log(`Status: ${image.status}`); // "pending"
// Step 2: Poll for completion
const result = await client.images.get(image.uid);
if (result.status === "completed") {
console.log(`Image URL: ${result.image_url}`);
}Want to build this?
Use our API to create Instagram-ready images from any content with custom styling and branding.