Programmatic image creation using ImageCreator

Hello, Could you please provide details for maximum string length of the prompt and the title when using ImageCreator and the method extracted(from:title:)?

static func extracted( from text: String, title: String? = nil ) -> ImagePlaygroundConcept

Any additional details or example of prompt and title would help.

Additionally, are ImagePlaygroundStyle.animation, ImagePlaygroundStyle.illustration and ImagePlaygroundStyle.sketch all available when using extracted(from:title:)?

I am trying to generate images programmatically and would appreciate your guidance.

Thank you.

Hi @lukylab,

For Concepts created from a long-form string, there is no limit on the length of the string, and the system will automatically extract important or interesting concepts from longer strings. However, I’d still suggest just including the most relevant information whenever possible. Read details on the text parameter here.

Your app should check availableStyles to ensure a style is available before attempting to use ImageCreator to create an image with a certain style.

Best,

-J

Programmatic image creation using ImageCreator
 
 
Q