Llama 3.1 8B Prompt Enhancer
Llama 3.1 8B Prompt Enhancer is a specialized configuration of the 8B instruction-tuned language model designed to refine, expand, and restructure user prompts for downstream generative systems. It improves clarity, specificity, and structural quality while preserving original intent. The model is well suited for enhancing prompts used in text-to-image, text-to-video, and multimodal generation workflows where stronger guidance leads to higher output fidelity.
Complete technical specification for integration
Ready-to-use code snippets for common workflows
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: promptEnhance -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
includeCost
boolean default: false -
Include task cost in the response.
Core Parameters
Primary parameters that define the task output.
-
model
string required value: llama-3-1-8b-prompt-enhancer -
Identifier of the model to use for generation.
-
prompt
string required min: 1 max: 300 -
The text prompt to enhance.
-
promptMaxLength
integer min: 12 max: 400 -
Maximum length of the enhanced prompt.
-
promptVersions
integer min: 1 max: 5 default: 1 -
Number of enhanced prompt variations to generate.