Generate Creative Images from Text
Image Craft Prompts is a CAMEL-AI system prompt collection that configures AI assistants to generate and refine image creation instructions for text-to-image
Why it matters
Create unique and imaginative images based on textual descriptions. This asset helps users visualize concepts and bring creative ideas to life through AI-generated visuals.
Outcomes
What it gets done
Generate images from detailed text prompts.
Explore diverse artistic styles and themes.
Visualize abstract concepts and ideas.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/camel-prompt-imagecraft | bash Use cases
What you can do with it
Creates images from text prompts or templates.
Overview
Image Craft Prompts
What it does
Image Craft Prompts is a system prompt collection from the CAMEL-AI framework that configures AI assistants for image generation workflows. It provides pre-built role instructions that guide assistants to produce detailed, structured prompts optimized for text-to-image models, translating creative concepts into precise generation instructions.
How it connects
Use Image Craft Prompts when building applications that automate image prompt creation, when you need consistent prompt formatting across multiple generation requests, or when integrating image generation into conversational AI systems. It's ideal for developers in the CAMEL-AI ecosystem who want standardized templates for image-related assistant behavior.
Source code
from typing import Any
from camel.prompts import TextPrompt, TextPromptDict
from camel.types import RoleType
class ImageCraftPromptTemplateDict(TextPromptDict):
r"""A dictionary containing :obj:TextPrompt used in the ImageCraft
task.
Attributes:
ASSISTANT_PROMPT (TextPrompt): A prompt for the AI assistant to create
an original image based on the provided descriptive captions.
"""
ASSISTANT_PROMPT = TextPrompt(
"""You are tasked with creating an original image based on
the provided descriptive captions. Use your imagination
and artistic skills to visualize and draw the images and
explain your thought process."""
)
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.update(
{
RoleType.ASSISTANT: self.ASSISTANT_PROMPT,
}
)
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.