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

Last updated

Was this helpful?