Expand Prompt

This API expands a given user input into a detailed prompt description suitable for creative tasks such as designing posters, creating advertisements, and more.

API Endpoint

POST https://api.genaifactory.ai/v1/expand_prompt

Headers

Name
Type
Required
Description

formacloud-api-key

string

Yes

API key for authentication

Content-Type

string

Yes

Set to application/json

Request Body

Name
Type
Required
Description

user_input

string

Yes

The user’s input text that needs to be expanded

Example Request

curl --location 'http://localhost:3300/v1/expand_prompt' \
--header 'formacloud-api-key: abc123' \
--header 'Content-Type: application/json' \
--data '{
    "user_input": "Help me create a poster of shoes"
}'

Response

A JSON object containing the expanded prompt description.

Field
Type
Description

expanded_prompt

string

Detailed prompt text generated by the API

Example Response

{
    "expanded_prompt": "Create a poster that showcases a vibrant collection of shoes displayed in a dynamic arrangement, drawing the viewer's eye across the design. The layout features a central focus on various styles, such as sneakers, sandals, and boots, placed at different angles to create depth and visual interest. \n\nThe poster should feature stunning photography of the shoes, accentuated by texture close-ups and playful backgrounds that highlight their unique designs. \n\nThe color scheme consists of bright, energetic hues like electric blue, neon green, and fiery orange, complemented by contrasting soft pastels for a modern, youthful vibe. \n\nText elements include a bold title at the top, reading \"Step into Style!\" in an eye-catching sans-serif font, followed by catchy taglines beneath each shoe style, conveying their distinct appeal. \n\nSupporting graphics include playful geometric patterns and subtle shoe footprints weaving around the footwear, adding a sense of movement and energy. \n\nThe mood and atmosphere evoke excitement and a sense of adventure, inviting viewers to explore new fashion possibilities. A prominent call to action at the bottom urges, \"Find Your Perfect Pair Today!\" encouraging immediate engagement."
}

Last updated