Generate Infographics

Generate infographics based on provided content.

post

This endpoint allows the user to generate infographics based on given content. Authentication is required using the x-api-key header.

Header parameters
x-api-keystringRequired

Your API key for authentication. This header is mandatory to authorize requests. Example: 12345-abcde-67890-fghij.

Example: your-api-key-here
Content-TypestringRequired

The content type of the request. Set as application/json.

Example: application/json
Body
promptstringRequired

The input prompt to generate infographics. Example: "Generate an infographic from the blog at https://example.com/blog"

languagestringOptional

The output language for the infographic. Default: English. Example: "French".

Default: English
ratiostring · enumOptional

The aspect ratio for the infographic. Supported ratios: vertical (9:16), square (1:1), horizontal (16:9), portrait (4:5). Default: vertical.

Example: verticalPossible values:
Responses
200

Successfully generated infographic URLs.

application/json
post
POST /api/generate HTTP/1.1
Host: app.infography.in
x-api-key: your-api-key-here
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "prompt": "text",
  "language": "English",
  "ratio": "vertical"
}
{
  "imageUrls": [
    "https://example.com/infographic.png"
  ]
}

Last updated