Plus plan

Social Image

Make a ready-to-post social media image with your headline
POST
/v1/ai/generation/social

About this tool

This tool creates a picture at the right size for a social network, such as an Instagram post or story, Facebook, LinkedIn, X or Pinterest. The AI (a computer program that creates images) makes the background, and your headline is added as exact, clean text. You choose where the text goes and its colour. You do not need to add a file.
For example, you type the headline Summer sale starts today and get an Instagram image with that message on a bright background.

How to use it

  1. Choose this tool.
  2. Choose which platform the image is for.
  3. Type your Headline and, if you like, a smaller line.
  4. Choose where the text goes and its colour, and optionally describe the picture.
  5. Press Generate, then download the image.

What you get back

You get a picture sized for your chosen platform, ready to download and post. You can create several versions and choose one.
TEST IT LIVE

Try Social Image in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/generation/social
Tool ID
ai.generation.social
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/generation/social" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on_unsupported":"error","platform":"instagram-square","text_position":"top"}'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.generation.social({
    "on_unsupported": "error",
    "platform": "instagram-square",
    "text_position": "top"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->generation()->social([
    'on_unsupported' => 'error',
    'platform' => 'instagram-square',
    'text_position' => 'top',
]);
echo $result->requestId;
FAQ

Frequently asked questions

AI background plus deterministic text composition at platform dimensions. Readiness: unbenchmarked (see GET /v1/ai/capabilities/generation.social).

Classification: ai. Deterministic stages: upload content sniffing, input image normalisation (Sharp), generated image validation and re-encoding (Sharp), signed-URL output, deterministic text rendering (SVG/Sharp), platform size presets.

Social Image works from text and settings, so no file is needed. Every input is optional.

Not on the Free plan: Social Image is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/generation/social with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.