assetgen

Assetgenfile Format Documentation

File Structure


Default Behaviors & Requirements


Asset-Specific Overrides


Directive Details

MODEL

Choose which OpenAI image-generation model to use.

SIZE

Specifies image dimensions (maps to the API’s size parameter).

BACKGROUND

Controls transparency (GPT-Image-1 only).

MODERATION

Sets content moderation level (GPT-Image-1 only).

OUTPUT_COMPRESSION

JPEG/WEBP compression level (GPT-Image-1 only).

QUALITY

Rendering fidelity.

STYLE

Stylistic bias (DALL·E-3 only).


Example Spec

PROMPT A clean top-down 2-D sprite on a transparent background.
PROMPT Include subtle shadows for depth.
MODEL gpt-image-1
SIZE 1024x1024
BACKGROUND transparent
MODERATION low
OUTPUT_COMPRESSION 80
QUALITY high

ASSET road_straight_ns.png A seamless 256×256 asphalt road segment running north–south.
ASSET tree.png A stylized pine tree with dark green needles.
ASSET icon.webp A glowing energy orb with electric sparks.