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.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples3
CODE
Ready-to-use code snippets for common workflows
Velvet Circus Dressing Room
A weary trapeze performer hunched over a vanity, surrounded by dimly lit, ornate fixtures, a vintage circus dressing room with worn wooden panels and faded posters, the air thick with the scent of old fabric and sweat, a lone spotlight casting an intimate glow on the performer's worn face, their dark hair slicked back, a silver earring glinting in the dim light, the performer's hands fumbling through a tangled mess of sequins, feathers, and fabric, a hint of tears visible under their eyes, the air thick with tension and exhaustion.import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:llama-3-1-8b@prompt-enhancer',
prompt: 'A tired trapeze performer getting ready backstage in a vintage circus dressing room, intimate and dramatic',
promptMaxLength: 280,
promptVersions: 1
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A tired trapeze performer getting ready backstage in a vintage circus dressing room, intimate and dramatic",
"promptMaxLength": 280,
"promptVersions": 1
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "promptEnhance",
"taskUUID": "f8ca23e2-fe3e-41cd-9355-893dd0b7f724",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A tired trapeze performer getting ready backstage in a vintage circus dressing room, intimate and dramatic",
"promptMaxLength": 280,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="A tired trapeze performer getting ready backstage in a vintage circus dressing room, intimate and dramatic" \
promptMaxLength=280 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "f8ca23e2-fe3e-41cd-9355-893dd0b7f724",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A tired trapeze performer getting ready backstage in a vintage circus dressing room, intimate and dramatic",
"promptMaxLength": 280,
"promptVersions": 1
}{
"taskType": "promptEnhance",
"taskUUID": "f8ca23e2-fe3e-41cd-9355-893dd0b7f724",
"text": "A weary trapeze performer hunched over a vanity, surrounded by dimly lit, ornate fixtures, a vintage circus dressing room with worn wooden panels and faded posters, the air thick with the scent of old fabric and sweat, a lone spotlight casting an intimate glow on the performer's worn face, their dark hair slicked back, a silver earring glinting in the dim light, the performer's hands fumbling through a tangled mess of sequins, feathers, and fabric, a hint of tears visible under their eyes, the air thick with tension and exhaustion.",
"cost": 0.0013
}Moonlit Glasshouse Tea Ritual
A serene midnight tea ceremony unfolds within a sprawling, overgrown glasshouse, with delicate, crystalline structures reflecting the faint moonlight, intricate web-like patterns on the walls, a lone, elegant host in a flowing, silver robe stands poised, surrounded by a halo of flickering, ethereal moths, as the air is thick with the scent of decay and old, dusty secrets, the host's eyes closed, a gentle smile on their lips, the tea itself, a delicate, crystal cup, glows softly in their hand, surrounded by the eerie, abandoned beauty of the overgrown, ancient glasshouse.import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:llama-3-1-8b@prompt-enhancer',
prompt: 'quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes',
promptMaxLength: 260,
promptVersions: 1
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes",
"promptMaxLength": 260,
"promptVersions": 1
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "promptEnhance",
"taskUUID": "91b29c95-7352-4fa0-babd-4673dda40929",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes",
"promptMaxLength": 260,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes" \
promptMaxLength=260 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "91b29c95-7352-4fa0-babd-4673dda40929",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes",
"promptMaxLength": 260,
"promptVersions": 1
}{
"taskType": "promptEnhance",
"taskUUID": "91b29c95-7352-4fa0-babd-4673dda40929",
"text": "A serene midnight tea ceremony unfolds within a sprawling, overgrown glasshouse, with delicate, crystalline structures reflecting the faint moonlight, intricate web-like patterns on the walls, a lone, elegant host in a flowing, silver robe stands poised, surrounded by a halo of flickering, ethereal moths, as the air is thick with the scent of decay and old, dusty secrets, the host's eyes closed, a gentle smile on their lips, the tea itself, a delicate, crystal cup, glows softly in their hand, surrounded by the eerie, abandoned beauty of the overgrown, ancient glasshouse.",
"cost": 0.0013
}Brass Astronomer Desert Encampment
A lone astronomer sits in a worn, brass-toned desert camp, surrounded by a tangle of wires and dusty optics, gazing up at a massive mechanical telescope that stretches towards the stars like a metallic, pulsing spider, the instrument's lenses reflecting a kaleidoscope of colors and patterns, the astronomer's face illuminated by the soft glow of a vintage lantern, the desert night sky stretching out behind them like a canvas of infinite possibility, the air is thick with the scent of old electronics and distant stars.import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:llama-3-1-8b@prompt-enhancer',
prompt: 'A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood',
promptMaxLength: 260,
promptVersions: 1
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood",
"promptMaxLength": 260,
"promptVersions": 1
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "promptEnhance",
"taskUUID": "59c13289-d6cc-41ea-9ece-5448e6c51c31",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood",
"promptMaxLength": 260,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood" \
promptMaxLength=260 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "59c13289-d6cc-41ea-9ece-5448e6c51c31",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood",
"promptMaxLength": 260,
"promptVersions": 1
}{
"taskType": "promptEnhance",
"taskUUID": "59c13289-d6cc-41ea-9ece-5448e6c51c31",
"text": "A lone astronomer sits in a worn, brass-toned desert camp, surrounded by a tangle of wires and dusty optics, gazing up at a massive mechanical telescope that stretches towards the stars like a metallic, pulsing spider, the instrument's lenses reflecting a kaleidoscope of colors and patterns, the astronomer's face illuminated by the soft glow of a vintage lantern, the desert night sky stretching out behind them like a canvas of infinite possibility, the air is thick with the scent of old electronics and distant stars.",
"cost": 0.0013
}