Code recipe · REPRODUCIBLE GUIDE

Flux Image API Example for Layout and Typography Tests

Use structured prompts to evaluate layout, material, and typography-sensitive concepts.

One API gateway for multiple AI models.

APIMart is a multi-model AI API gateway with an OpenAI-compatible endpoint. Use one account to access supported image models, compare current pricing, and choose a cost-efficient option for each workload.

Create an APIMart account ↗
Browse all guides
WHY THIS GUIDE EXISTS

Test the workflow,
not the marketing claim.

A repeatable fixture for design teams testing composition and text-adjacent creative work.

Design

Architecture brand board

Top-down brand identity presentation for an independent architecture studio, recycled ivory paper, blind embossing, charcoal typography blocks, a single vermilion rule, realistic print texture, orderly Swiss grid.
Brand identity presentation4:3
Design

Climate intelligence dashboard

Editorial analytics dashboard for a climate intelligence product, dense but legible information hierarchy, off-white canvas, dark graphite type, acid green data accents, modular card grid, desktop viewport.
Dense editorial interface16:10
Design

Music festival poster

Experimental electronic music festival poster, oversized condensed type placeholders, electric blue field, silver halftone sphere, asymmetric Swiss grid, high contrast screen-print texture, leave all wording blank.
Poster composition test2:3
PYTHON QUICKSTART

Keep the request reproducible.

Store credentials in the environment. Record the exact model identifier, dimensions, test date, and retry count with the resulting asset.

import os
from openai import OpenAI

client = OpenAI(
  api_key=os.environ["APIMART_API_KEY"],
  base_url="https://api.apimart.ai/v1",
)

result = client.images.generate(
  model="gpt-image-1-official",
  prompt=PROMPT,
  size="1024x1024",
  n=1,
)
REVIEW CHECKLIST

Before you publish a result