Generate Blog Meta Elements
Blog Meta Generator
Generate Blog Meta Elements
Generate images, excerpt, category, and tags for blog posts
POST
Generate Blog Meta Elements
Overview
Generate complete blog post metadata including images, excerpt, category, and tags using AI. This endpoint uses advanced AI models to create professional blog metadata.Request Body
The title of your blog post. This is used to generate all elements.
Your GistMag API key
Optional blog post content. Providing content helps generate more accurate and relevant results.
The style of images to generate. Options:
realistic: Photorealistic imagesillustration: Artistic illustrationsabstract: Abstract designsminimalist: Simple, clean designsphotographic: High-quality photographs
Language code for the generated content (default: en)
Source identifier for tracking (web, api, extension, wordpress, shopify, batch)
Example Request
cURL
Python
JavaScript
Image Generation
Images are generated using Nano Banana (Google Gemini Image Generation API) and automatically uploaded to Supabase Storage. Each image is returned as a public URL that can be directly used in your application or downloaded.All images are hosted on Supabase Storage and are publicly accessible via the returned URLs. Images are generated in the style you specify and optimized for web use.
Response
Array of generated images (up to 3 images)
Public URL of the generated image (hosted on Supabase Storage). Images are generated using Nano Banana (Google Gemini) and automatically uploaded to storage.
The style of the image (realistic, illustration, abstract, minimalist, photographic)
Description of what the image represents
A concise 2-3 sentence summary of the blog post (max 200 characters)
An appropriate category name for the blog post (e.g., “Technology”, “Health”, “Business”)
Array of 5-8 relevant tags for the blog post
ISO 8601 timestamp of when the content was generated
Example Response
Error Responses
Error type
Detailed error message
Common Errors
400 Bad Request: Invalid request parameters (e.g., missing title, invalid image_style)401 Unauthorized: Invalid or missing API key402 Payment Required: Insufficient credits (requires 3 credits per generation)500 Internal Server Error: Server error processing the request
Example Error Response
Best Practices
- Provide Content When Possible: Including the blog post content helps generate more accurate excerpts, categories, and tags
- Choose Appropriate Image Style: Select an image style that matches your blog’s aesthetic
- Review Generated Content: Always review and edit the generated content to ensure it matches your brand voice
- Handle Image URLs: Generated image URLs are temporary - download and host them on your own server for permanent use
- Credit Management: Each generation costs 3 credits, so ensure you have sufficient credits before making requests