Documentation

Getting Started

Introduction

Get started with Titlize and create beautiful Open Graph images for your website.

2 min read

Titlize is an API-first service that automatically generates professional social media preview images (Open Graph images) by overlaying text on existing images.

What is Titlize?#

When you share a link on social media platforms like Twitter, Facebook, or LinkedIn, these platforms display a preview card with an image. This image is known as the Open Graph image or OG image.

Titlize makes it easy to generate these images automatically by:

  • Overlaying your title text on a background image
  • Automatically detecting the best text placement
  • Applying smart gradients for text readability
  • Generating optimized images for social media

Key Features#

Automatic Text Placement#

Our contrast detection algorithm analyzes your background image and automatically positions your text in the most readable location.

Smart Gradients#

A subtle gradient is applied to ensure your text stands out, regardless of the background image colors.

API-First Design#

Titlize is built as an API-first service, making it easy to integrate with any platform or workflow.

Bash
1curl -X POST https://api.titlize.com/generate \
2 -H "Authorization: Bearer your_api_token" \
3 -F "image=@background.jpg" \
4 -F "title=My Amazing Blog Post"

Multiple Integrations#

We provide official integrations for popular platforms:

  • WordPress - One-click plugin for automatic OG image generation
  • Next.js - React components and API helpers
  • Zapier - No-code automation workflows

Quick Start#

  1. Sign up (opens in new tab) for an account
  2. Create an API token from your dashboard
  3. Make your first API request

Here's a simple example using JavaScript:

JavaScript
1const formData = new FormData();
2formData.append('image', imageFile);
3formData.append('title', 'My Blog Post Title');
4
5const response = await fetch('https://api.titlize.com/generate', {
6 method: 'POST',
7 headers: {
8 'Authorization': 'Bearer your_api_token',
9 },
10 body: formData,
11});
12
13const result = await response.json();
14console.log('Generated image URL:', result.url);

Next Steps#