Skip to content

Ability to add OpenAI key and do in-post cover image generation #44

Description

@prestonzen

Summary:
Allow users to input their own OpenAI API key to enable AI-generated cover images directly within the blog post editor.


Problem Statement

Currently, when creating or editing posts on the quail.ink / quaily.com blog platform, users must manually upload a cover image. This adds friction to the content creation process, especially for users without design resources or those who want fast, unique visuals. A seamless AI-assisted cover generation would streamline publishing and improve overall post quality.


Proposed Solution

Add a feature to:

Let users optionally input their own OpenAI API key into their account settings or editor settings.

Enable an interface (e.g., a "Generate Cover Image" button) within the post editor.

Prompt the user for a short description, keyword, or allow automatic generation based on post content.

Use OpenAI’s image generation models (e.g., DALL·E 3 API) to create a cover image.

Allow users to preview, regenerate, or select a generated image before finalizing it as the cover.

Technical Details:

OpenAI API key storage: Securely associate the user’s key with their account (encrypted).

Prompt engineering: Basic options like "Auto-generate from post title/summary" or manual prompt entry.

Cost: Users are responsible for their own OpenAI API usage and associated charges (no billing liability for quaily.com).

Image resolution: Allow default 1024x1024 or resize dynamically to platform's preferred cover size (e.g., 1200x630 for social media optimization).

Fallbacks: If key is invalid or rate-limited, gracefully degrade to manual upload.


Benefits

Dramatically speeds up the blogging workflow.

Encourages more visually appealing posts even from non-designers.

Leverages the power of AI without adding server cost for quaily.com.

Gives tech-savvy users fine control while being optional for others.


Potential Future Enhancements

Preset styles (e.g., "minimalist," "cyberpunk," "realistic," "artistic") for more customized generations.

Support for multiple image generation services beyond OpenAI (e.g., Stability AI, Midjourney API if public).

Ability to save frequently used prompts for quick reuse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions