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
Examples4
CODE
Ready-to-use code snippets for common workflows
prompt-enhancement
Electric Motorcycle Launch Film PromptA sleek, matte-black electric motorcycle hurtles through a dimly lit, rain-soaked city tunnel, its headlights casting a piercing beam of light into the darkness, illuminated by dramatic lighting effects that accentuate its angular lines and aggressive curves, shot in a premium launch commercial style with fast-paced cuts and dynamic camera movements, featuring a deep blue-black color palette and bold, graphic textures.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 matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement.',
promptMaxLength: 300,
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 matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement.",
"promptMaxLength": 300,
"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": "427dd670-6af3-4c89-b4a9-978c31aadb36",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement.",
"promptMaxLength": 300,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="A matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement." \
promptMaxLength=300 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "427dd670-6af3-4c89-b4a9-978c31aadb36",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "A matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement.",
"promptMaxLength": 300,
"promptVersions": 1
}Response
{
"taskType": "promptEnhance",
"taskUUID": "427dd670-6af3-4c89-b4a9-978c31aadb36",
"text": "A sleek, matte-black electric motorcycle hurtles through a dimly lit, rain-soaked city tunnel, its headlights casting a piercing beam of light into the darkness, illuminated by dramatic lighting effects that accentuate its angular lines and aggressive curves, shot in a premium launch commercial style with fast-paced cuts and dynamic camera movements, featuring a deep blue-black color palette and bold, graphic textures.",
"cost": 0.0026
}prompt-enhancement
Coastal Resort Campaign Key ArtA majestic luxury cliffside resort perched atop a rugged Aegean cliff, bathed in a warm golden light as the first rays of sunrise kiss its stone surfaces, a lone figure in a crisp white robe stands at the edge of an infinity pool, gazing out at the horizon, the gentle lapping of turquoise waters against the shore, the resort's sleek, modern architecture blending seamlessly into the natural landscape, soft focus and shallow depth of field create a dreamy, ethereal quality, the air is filled with the sweet scent of blooming flowers and the distant calls of seagulls, a perfect symphony of tranquility and luxury, the scene is bathed in a warm, golden light that seems to emanate from within, the atmosphere is one of serene contemplation, as if the world has been distilled into this moment of pure beauty.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: 'Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood.',
promptMaxLength: 300,
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": "Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood.",
"promptMaxLength": 300,
"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": "af209229-2213-454e-bcda-21acf11cfdc5",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood.",
"promptMaxLength": 300,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood." \
promptMaxLength=300 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "af209229-2213-454e-bcda-21acf11cfdc5",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood.",
"promptMaxLength": 300,
"promptVersions": 1
}Response
{
"taskType": "promptEnhance",
"taskUUID": "af209229-2213-454e-bcda-21acf11cfdc5",
"text": "A majestic luxury cliffside resort perched atop a rugged Aegean cliff, bathed in a warm golden light as the first rays of sunrise kiss its stone surfaces, a lone figure in a crisp white robe stands at the edge of an infinity pool, gazing out at the horizon, the gentle lapping of turquoise waters against the shore, the resort's sleek, modern architecture blending seamlessly into the natural landscape, soft focus and shallow depth of field create a dreamy, ethereal quality, the air is filled with the sweet scent of blooming flowers and the distant calls of seagulls, a perfect symphony of tranquility and luxury, the scene is bathed in a warm, golden light that seems to emanate from within, the atmosphere is one of serene contemplation, as if the world has been distilled into this moment of pure beauty.",
"cost": 0.0045
}prompt-enhancement
Autumn Tasting Menu Image PromptA golden-lit, intimate table setting at a rustic, upscale restaurant, featuring a delicate, handmade ceramic dish adorned with a rich, charred leek garnish, drizzled with a creamy, hazelnut-infused sauce, and garnished with fragrant herbs, all bathed in warm, soft focus and a muted color palette of golden yellows, burnt oranges, and mossy greens, with subtle, ambient lighting that simulates the warm glow of an autumn evening, capturing the essence of comfort, elegance, and seasonal indulgence.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: 'Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light.',
promptMaxLength: 300,
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": "Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light.",
"promptMaxLength": 300,
"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": "71836a3a-af05-4fdf-9d39-6ce528d1d568",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light.",
"promptMaxLength": 300,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light." \
promptMaxLength=300 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "71836a3a-af05-4fdf-9d39-6ce528d1d568",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light.",
"promptMaxLength": 300,
"promptVersions": 1
}Response
{
"taskType": "promptEnhance",
"taskUUID": "71836a3a-af05-4fdf-9d39-6ce528d1d568",
"text": "A golden-lit, intimate table setting at a rustic, upscale restaurant, featuring a delicate, handmade ceramic dish adorned with a rich, charred leek garnish, drizzled with a creamy, hazelnut-infused sauce, and garnished with fragrant herbs, all bathed in warm, soft focus and a muted color palette of golden yellows, burnt oranges, and mossy greens, with subtle, ambient lighting that simulates the warm glow of an autumn evening, capturing the essence of comfort, elegance, and seasonal indulgence.",
"cost": 0.0019
}prompt-enhancement
Renewable Energy Report Cover PromptA stunning aerial view of solar panels and wind turbines at dawn, framed by a clean and editorial-style layout with a bright blue sky, gentle morning light, and a subtle gradient to evoke a sense of movement and energy, set against a neutral white or light gray background to allow the visuals to take center stage, with ample white space to balance the composition and convey a sense of optimism and progress towards a sustainable future.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: 'Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title.',
promptMaxLength: 300,
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": "Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title.",
"promptMaxLength": 300,
"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": "adbb30bf-9803-4dc7-b931-7347023255bd",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title.",
"promptMaxLength": 300,
"promptVersions": 1
}
]'runware run runware:llama-3-1-8b@prompt-enhancer \
prompt="Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title." \
promptMaxLength=300 \
promptVersions=1{
"taskType": "promptEnhance",
"taskUUID": "adbb30bf-9803-4dc7-b931-7347023255bd",
"model": "runware:llama-3-1-8b@prompt-enhancer",
"prompt": "Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title.",
"promptMaxLength": 300,
"promptVersions": 1
}Response
{
"taskType": "promptEnhance",
"taskUUID": "adbb30bf-9803-4dc7-b931-7347023255bd",
"text": "A stunning aerial view of solar panels and wind turbines at dawn, framed by a clean and editorial-style layout with a bright blue sky, gentle morning light, and a subtle gradient to evoke a sense of movement and energy, set against a neutral white or light gray background to allow the visuals to take center stage, with ample white space to balance the composition and convey a sense of optimism and progress towards a sustainable future.",
"cost": 0.0038
}