Open in gallery

Podcast Cover template

The podcast-cover template renders a content image as a PNG. POST a JSON payload to the endpoint below and you receive a CDN URL in the response.

Endpoint

POST https://app.html2img.com/api/v1/templates/podcast-cover
X-API-Key: <your-api-key>
Content-Type: application/json

Authentication uses the X-API-Key header. See the authentication docs for details on issuing and rotating keys.

Inputs

The full set of inputs the template accepts:

Name Type Required Description Example
podcast_title string Yes Text value for the podcast title. The Production Hour
tagline string No Text value for the tagline. Conversations with the people running real systems at scale
host_name string No Text value for the host name. Adaeze Okafor
network_name string No Text value for the network name. Northwind Studio Audio
background_image_url url No URL of the background image to include in the rendered image. https://picsum.photos/seed/podcast-cover/1500/1500
accent_color string No Hex colour code for the accent. #0F172A
logo_url url No URL of the logo to include in the rendered image. -

Defaults

Defaults applied automatically when not overridden in the request:

Option Default value
width 1500
height 1500

Code examples

curl -X POST https://app.html2img.com/api/v1/templates/podcast-cover \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"podcast_title":"The Production Hour","tagline":"Conversations with the people running real systems at scale","host_name":"Adaeze Okafor","network_name":"Northwind Studio Audio","background_image_url":"https://picsum.photos/seed/podcast-cover/1500/1500","accent_color":"#0F172A"}'

Looking for a fuller integration sketch in your language? The usage guides cover PHP, Laravel, Rails, Python, JavaScript, React and Vue.

Response

A successful render returns:

{
 "success": true,
 "id": "abc123",
 "url": "https://i.html2img.com/abc123.png",
 "credits_remaining": 1234,
 "template": "podcast-cover"
}

The url field is a CDN URL for the rendered PNG. credits_remaining tracks your monthly quota. Shared response fields are documented in the API parameters reference.

Errors

The template endpoint returns the following error responses:

422 Validation failed

Returned when one or more inputs fail validation. The errors object lists field-specific messages.

{
 "success": false,
 "error": "validation_failed",
 "errors": {
 "title": ["The title field is required."]
 }
}

404 Template not found

Returned with {"code": "template_not_found"} if the slug is not registered. Check the template list for current slugs.

401 Unauthorised

Missing or invalid API key. See the authentication docs.

429 Too many requests

You have hit the rate limit or used your monthly credits. The pricing page covers higher-volume plans.

Related templates

  • Quote Card - Pull-quote cards for testimonials, reviews, and shareable quotes
  • Podcast Episode Card - Per-episode share cards sized for Twitter, LinkedIn, and Slack unfurls
  • Email Header - Wide email banner artwork sized for newsletter and transactional templates
  • Blog Featured Hero - Editorial hero images for blog posts and article pages

See the Podcast Cover template in our gallery for sample renders and use cases.