Infip Image Generation
This skill uses the Infip API to generate images from text prompts with dynamic model selection.
Workflow
- •Extract Prompt: Identify the user's desired image description.
- •Select Model:
- •Read
scripts/models.jsonfor the available model list. - •Present the models to the user as inline buttons using the
messagetool. - •The
callback_datafor each button should be formatted as:generate_infip_image <model_name> <prompt>.
- •Read
- •Generate Image: Once a model is selected, run the generation script:
bash
python3 scripts/generate_image.py "your prompt here" --model "<selected_model>" --output "output_filename.png"
- •Send to User: Use the
messagetool to send the resulting file with a caption.
Features
- •Dynamic Selection: Inline buttons for easy model switching.
- •Model Synced: Models are symlinked from the
infip-modelsskill. - •Aspect Ratio: Defaults to
1792x1024. - •Automatic Key Handling: The script handles session-based API key generation.