Infography Help Docs
  • Getting Started
    • Overview
    • How to Sign up
    • Get Started
    • Edit Infographics
    • Edit Background Colors
    • Edit Text Color
    • Upload images
    • Brands
    • Download Infographics
    • Supported Lanugages
  • Automation
  • API
    • Overview
    • Generate API key
    • Generate Infographics
Powered by GitBook
On this page
  1. API

Generate Infographics

PreviousGenerate API key

Last updated 4 months ago

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
400
The request was invalid due to improper inputs.
401
Unauthorized access due to missing/invalid API key.
500
Internal server error.
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"
  ]
}