Try Pro FREE for 2 weeksGet Started

draw-text — Traditional AI Model

Draw Text renders words into a rectangle you place on the image, with DejaVu, Liberation, Noto or Ubuntu, bold or italic, 8 to 200px, in whatever color. Watermarks, labels, captions burned in for good. CPU.

Details

  • CategoryTraditional
  • Year-1
  • License

Inputs & Outputs

ImageInputimage

Source image to draw text on

ImageOutputimage

Image with text rendered at the specified area

Parameters

textstringdefault Hello, World!

Text content

Text to render. Supports newlines (\n) for multi-line content — line spacing is set by the line_spacing parameter. Unicode is supported as long as the chosen font covers the glyphs; if characters render as boxes, switch to Noto Sans which has the broadest coverage.

font_familystringdefault dejavu sansoptions: dejavu sans, dejavu serif, dejavu sans mono, liberation sans, +3 more

Font family

Font face to render with. DejaVu Sans/Serif/Sans Mono and Liberation Sans/Serif cover Latin scripts well. Noto Sans has the broadest Unicode coverage — use it for CJK or other non-Latin scripts. Ubuntu is a humanist sans suitable for friendly UI mocks.

font_sizeintegerdefault 32range 8–200

Font size (8-200 px)

Font height in pixels. Default 32. Text auto-wraps to fit within the drawn region width, so very large sizes inside a small region may overflow vertically. Scale roughly with image resolution — ~32px reads well at 1024px image, scale up proportionally for larger outputs.

font_boldbooleandefault false

Bold

Apply bold weight. Note: not all fonts include a bold variant; if missing the renderer falls back to regular weight.

font_italicbooleandefault false

Italic

Apply italic style. Falls back to regular when the font lacks an italic variant.

text_colorstringdefault #FFFFFF

Text color (hex)

Text fill color as a hex string. Accepts #RRGGBB (e.g. '#FFFFFF' white) or #RRGGBBAA for per-glyph alpha (e.g. '#FF000080' for 50% transparent red). Default #FFFFFF.

text_alignstringdefault leftoptions: left, center, right

Horizontal alignment

Horizontal alignment of each line within the drawn region: 'left', 'center', or 'right'. Vertical alignment is currently fixed at top — adjust the drawn region height to position text vertically.

bg_colorstringdefault #000000

Background color (hex)

Solid color rendered behind the text, before the text is drawn. Accepts #RRGGBB. Combine with bg_opacity=0 (default) to disable, or higher to show a colored panel behind the text — useful for legibility over busy images.

bg_opacityintegerdefault 0range 0–255

Bg opacity (0-255)

Alpha of the background panel. 0 = fully transparent (no panel), 255 = fully opaque. Use ~128-200 for a translucent panel that improves readability without hiding the underlying image.

line_spacingintegerdefault 4range 0–40advanced

Line spacing (0-40 px)

Extra vertical pixels added between lines on top of the font's natural line height. 0 = compact, 40 = airy. Use ~4-8 for body text, more for headlines.

Tags

  • text
  • font
  • overlay
  • annotation
  • watermark

Alternatives in Text Tools

All AI models