ERNIE-Image

ERNIE-Image is Baidu's 8B text-to-image model built on a single-stream Diffusion Transformer architecture. It is designed for strong prompt adherence, reliable text rendering, and structured visual generation, making it well suited to posters, comics, storyboards, multi-panel layouts, and other workflows where content accuracy and composition matter as much as aesthetics. The standard model emphasizes stronger general-purpose capability and instruction fidelity, typically running at around 50 inference steps.

Complete technical specification for integration
Ready-to-use code snippets for common workflows
text-to-image
Tidal Choral Festival Poster$0.0307~1m 19s
Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'baidu:ernie-image@0',
positivePrompt: 'Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup.',
width: 1024,
height: 1024,
steps: 30,
CFGScale: 4,
acceleration: 'medium',
settings: {
promptEnhance: {
enabled: true,
temperature: 1.2,
topP: 0.95
}
}
})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": "baidu:ernie-image@0",
"positivePrompt": "Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": True,
"temperature": 1.2,
"topP": 0.95
}
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "f9972411-d389-4cda-bb09-19d84614e981",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}
]'runware run baidu:ernie-image@0 \
positivePrompt="Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup." \
width=1024 \
height=1024 \
steps=30 \
CFGScale=4 \
acceleration=medium \
settings.promptEnhance.enabled=true \
settings.promptEnhance.temperature=1.2 \
settings.promptEnhance.topP=0.95{
"taskType": "imageInference",
"taskUUID": "f9972411-d389-4cda-bb09-19d84614e981",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square festival poster for “TIDELINE CHOIR,” an open-air choral performance in a brutalist coastal seawater pool. Overhead view of a large choir standing waist-deep in turquoise water, arranged in concentric circles around a conductor; long coral-red garments ripple like sea anemones. Crisp dawn light, geometric pool edges, shimmering reflections, bold contemporary arts-poster direction, cyan and vermilion palette, subtle screen-print texture. Integrate clear condensed typography: “TIDELINE CHOIR” large at top, “SALTWATER SONGS” beneath, and “14 SEPTEMBER 2026 — JUBILEE POOL, PENZANCE” along the bottom. Balanced editorial composition, highly legible text, no logos or mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}Response
{
"taskType": "imageInference",
"taskUUID": "f9972411-d389-4cda-bb09-19d84614e981",
"imageUUID": "41028c79-f592-426b-8674-9aa476f3bc1e",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/3/ii/41028c79-f592-426b-8674-9aa476f3bc1e.jpg",
"seed": 604924745,
"cost": 0.0307
}text-to-image
Moonlit Oyster Farm Dinner Invitation$0.023~1m 11s
Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'baidu:ernie-image@0',
positivePrompt: 'Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup.',
width: 1024,
height: 1024,
steps: 30,
CFGScale: 4,
acceleration: 'medium',
settings: {
promptEnhance: {
enabled: true,
temperature: 1.2,
topP: 0.95
}
}
})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": "baidu:ernie-image@0",
"positivePrompt": "Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": True,
"temperature": 1.2,
"topP": 0.95
}
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "01ad6b7e-d8a6-4cde-9a92-a491cc541e31",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}
]'runware run baidu:ernie-image@0 \
positivePrompt="Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup." \
width=1024 \
height=1024 \
steps=30 \
CFGScale=4 \
acceleration=medium \
settings.promptEnhance.enabled=true \
settings.promptEnhance.temperature=1.2 \
settings.promptEnhance.topP=0.95{
"taskType": "imageInference",
"taskUUID": "01ad6b7e-d8a6-4cde-9a92-a491cc541e31",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square dinner invitation in an elegant hand-cut linocut and screen-print style. A long candlelit table floats between oyster racks on dark moonlit tidal water, viewed from directly overhead, with tiny boats, oyster shells, ripples, and seagrass forming a decorative border. Deep ultramarine, warm cream, persimmon red, and touches of silver; refined coastal mood, bold symmetrical composition. Render this exact centered typography clearly: “MOON-TIDE SUPPER” then “SEPTEMBER 19 · 6:30 PM” then “BRACKISH POINT OYSTER FARM” then “DINNER ON THE WATER” then “RSVP BY SEPTEMBER 5”. Standalone invitation artwork, no mockup.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}Response
{
"taskType": "imageInference",
"taskUUID": "01ad6b7e-d8a6-4cde-9a92-a491cc541e31",
"imageUUID": "a56266d1-75b4-44ee-a137-17a30836a9f2",
"imageURL": "https://im.runware.ai/image/os/a10dlim3/ws/3/ii/a56266d1-75b4-44ee-a137-17a30836a9f2.jpg",
"seed": 689316863,
"cost": 0.023
}text-to-image
Falconry Telemetry Kit Packshot$0.023~59s
Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'baidu:ernie-image@0',
positivePrompt: 'Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text.',
width: 1024,
height: 1024,
steps: 30,
CFGScale: 4,
acceleration: 'medium',
settings: {
promptEnhance: {
enabled: true,
temperature: 1.2,
topP: 0.95
}
}
})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": "baidu:ernie-image@0",
"positivePrompt": "Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": True,
"temperature": 1.2,
"topP": 0.95
}
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "5f19bf44-5e56-46de-bc6b-45f2c64a3634",
"model": "baidu:ernie-image@0",
"positivePrompt": "Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}
]'runware run baidu:ernie-image@0 \
positivePrompt="Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text." \
width=1024 \
height=1024 \
steps=30 \
CFGScale=4 \
acceleration=medium \
settings.promptEnhance.enabled=true \
settings.promptEnhance.temperature=1.2 \
settings.promptEnhance.topP=0.95{
"taskType": "imageInference",
"taskUUID": "5f19bf44-5e56-46de-bc6b-45f2c64a3634",
"model": "baidu:ernie-image@0",
"positivePrompt": "Premium ecommerce studio packshot of a professional falconry telemetry kit: an open matte burnt-orange protective case containing a compact receiver, directional antenna, two tiny brass leg transmitters, charging cradle and coiled cable. Neatly organized accessories, three-quarter view, seamless warm limestone background, crisp directional sunlight and sculptural shadows, refined utilitarian art direction, realistic materials, immaculate product photography, no logos or text.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}Response
{
"taskType": "imageInference",
"taskUUID": "5f19bf44-5e56-46de-bc6b-45f2c64a3634",
"imageUUID": "14571943-3b1c-4158-9718-a8a3e616372f",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/3/ii/14571943-3b1c-4158-9718-a8a3e616372f.jpg",
"seed": 2085483199,
"cost": 0.023
}text-to-image
Geothermal Architecture Journal Cover$0.0205~48s
Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'baidu:ernie-image@0',
positivePrompt: 'Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction.',
width: 1024,
height: 1024,
steps: 30,
CFGScale: 4,
acceleration: 'medium',
settings: {
promptEnhance: {
enabled: true,
temperature: 1.2,
topP: 0.95
}
}
})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": "baidu:ernie-image@0",
"positivePrompt": "Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": True,
"temperature": 1.2,
"topP": 0.95
}
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "10e9483a-e86e-4ade-8ef4-9c30f6dd99c1",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}
]'runware run baidu:ernie-image@0 \
positivePrompt="Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction." \
width=1024 \
height=1024 \
steps=30 \
CFGScale=4 \
acceleration=medium \
settings.promptEnhance.enabled=true \
settings.promptEnhance.temperature=1.2 \
settings.promptEnhance.topP=0.95{
"taskType": "imageInference",
"taskUUID": "10e9483a-e86e-4ade-8ef4-9c30f6dd99c1",
"model": "baidu:ernie-image@0",
"positivePrompt": "Finished square editorial magazine cover, not a mockup. Top-down view of a lone geothermal plant technician in a reflective silver heat suit crossing a narrow black walkway over a vast sulfur-yellow mineral pool, concentric basalt structures and drifting steam forming bold abstract geometry. Stark midday light, acid yellow, charcoal black and pale cyan palette, industrial documentary photography with rigorous Swiss editorial design. Large clean masthead reading “THERMAL” and one precise cover line reading “THE HEAT BENEATH”, crisp legible typography, generous spacing, premium architecture journal art direction.",
"width": 1024,
"height": 1024,
"steps": 30,
"CFGScale": 4,
"acceleration": "medium",
"settings": {
"promptEnhance": {
"enabled": true,
"temperature": 1.2,
"topP": 0.95
}
}
}Response
{
"taskType": "imageInference",
"taskUUID": "10e9483a-e86e-4ade-8ef4-9c30f6dd99c1",
"imageUUID": "53a1c471-9a8e-422a-b53a-7cd3ba93931a",
"imageURL": "https://im.runware.ai/image/os/a04d20/ws/3/ii/53a1c471-9a8e-422a-b53a-7cd3ba93931a.jpg",
"seed": 1640275774,
"cost": 0.0205
}