Onboarding Art, Empty States and Store Screenshots: Nine Tests of an Image API for a Mobile App
The same onboarding brief in three styles, two images per request. Plotkeeper is a fictional app made up for this test.
Most mobile apps need more pictures than anyone budgets for: three or four onboarding screens, an empty state for every list that can be empty, dark-mode versions of most of them, and a full set of store screenshots in every language the app ships in. Small teams often fall back on stock illustration packs that never quite match the brand, or leave empty states as grey text saying "Nothing here yet".
We wanted to know whether an image generation API could fill that gap in a way a designer would accept, so we invented an app and gave it a real asset list. Plotkeeper is a fictional app for booking plots in community gardens. Members reserve a raised bed, get watering reminders and swap seeds with neighbours. The brand uses four colours: sage green #7FA37A, terracotta #D9774B, warm cream #F6EFE3 and deep ink green #2F3A33.
Every image here came from one model, grok-imagine-image, called from a Python script. We ran nine tests, made 27 requests and got 33 images back, for $0.494 in total. Each test ran once on one invented brand, so read the numbers as field notes from a small sample, not a benchmark.
The walkthrough
The video covers the nine tests in under three minutes.

The asset list and the rules
We wrote down what a small app team would need for a first release: three onboarding illustrations with the same character in a tall frame that leaves room for a title; four empty states for "no bookings", "no messages", "you are offline" and "no search results"; dark-mode versions of the onboarding art; store screenshots in English, Spanish, German and Japanese; and exports clean enough for 1x, 2x and 3x screens.
Two rules guided the work. The art could be generated, but the interface shown in store screenshots had to be our real app screen, because a listing that shows features the app does not have misleads people. And nothing would go into the app without a person checking it at full size.
How the requests work
The API is asynchronous. You POST to /v1/images/generations with the model name and a prompt, get a task ID back, and poll GET /v1/tasks/{task_id} until the status is completed or failed. The optional fields we used were aspect_ratio, resolution (1k or 2k), n (1 to 10 images) and image_urls (up to five reference images for editing). There is no quality field. Result links are kept for 72 hours, so download every file as it arrives.
The code below is a trimmed version of our script, not the exact file. Our real runner also logged every task ID before polling and retried polls after network errors, so a dropped connection never caused a second, billed submission.
import os, time, requests
BASE = os.environ["IMAGE_API_BASE"] # placeholder host
HEADERS = {"Authorization": f"Bearer {os.environ['IMAGE_API_KEY']}"}
def generate(prompt, aspect="3:4", resolution="1k", n=1, refs=None):
body = {"model": "grok-imagine-image", "prompt": prompt,
"aspect_ratio": aspect, "resolution": resolution, "n": n}
if refs:
body["image_urls"] = refs # up to five public URLs
r = requests.post(f"{BASE}/v1/images/generations",
headers=HEADERS, json=body, timeout=60)
r.raise_for_status()
task_id = r.json()["data"][0]["task_id"]
print("submitted", task_id) # log before polling
while True:
time.sleep(4)
t = requests.get(f"{BASE}/v1/tasks/{task_id}",
headers=HEADERS, timeout=30).json()["data"]
if t["status"] in ("completed", "failed", "cancelled"):
return t
For edits we needed public URLs. We used the result URLs of earlier generations, and uploaded our app screen through the platform's image upload endpoint.
Test 1: Picking a house style
Every later asset has to match the style, so it comes first. The brief was: "Onboarding illustration for a mobile app that books community garden plots: a young woman with a watering can arriving at a small raised garden bed with a wooden number marker." We added a style sentence with the four hex codes, ended with "Plain warm cream background, no text, no letters, no logos", and ran flat vector, 3D clay and monoline with n=2 at 3:4 and 1k.
All three requests finished in 8 seconds of task time and were charged $0.0288 each, exactly twice the single-image price. Two images took no longer than one, so n is the cheapest way to see variety.
Flat vector matched best. Both images kept to the palette and read well at phone size, though one drew its marker post with no number. The clay renders were charming but looked like another brand, with soft browns and shadows outside the palette. The monoline style was clean, but in one image the figure was so small it would become a smudge on a phone. We chose flat vector. None of the six images had stray text, so the "no text" line is worth keeping.
Test 2: Tall frames and what 1k really means
We asked for the flat style with the scene "in the lower two thirds of a tall frame; the top third is empty warm cream background for the onboarding title", in the phone-shaped ratios the API accepts.

At 1k, 9:16 came back at 720 x 1280, but 9:19.5 at only 576 x 1248 and 9:20 at 576 x 1280. "1k" roughly sets the long edge, so narrow ratios lose width, and 576 pixels is too narrow for a full-width illustration at 3x. At 2k, 9:19.5 came back at 1344 x 2912. Both sizes cost the same, $0.0144 per image on our account. The price of 2k was time and weight: 12 seconds instead of 7 or 8, and a 1.78 MB PNG instead of a JPEG of about 95 to 120 KB. Every 1k result was a JPEG and every 2k result a PNG, so plan to convert files afterwards.
The empty top third was respected in all five images. With auto the model chose 3:4, so if you need a specific frame, ask for it.
Test 3: Keeping three screens consistent
Onboarding screens should look like one set. In screen 2 the same woman checks a phone notification as rain clouds gather; in screen 3 she hands a seed packet over a fence to an older neighbour. We ran each with text only, repeating the style sentence and describing her dark hair, sage T-shirt and cream trousers, and again with screen 1 as a reference: "Using the character, drawing style and colour palette of the reference image exactly, draw a new onboarding illustration".

We pulled six dominant colours from each image with k-means and measured their distance from screen 1's colours in CIELAB space. The reference versions were closer: 8.6 against 10.6 for screen 2, and 11.0 against 11.5 for screen 3. The eye tells the story better. With text only, the woman had a different face and hair, and the bed turned from planks to bricks. With the reference, she was clearly the same person.
The reference had side effects. Screen 2 copied screen 1's composition almost exactly and added a second watering can that was not in the brief. In screen 3 the neighbour wore a lilac cardigan, outside the palette. A request with one reference was charged $0.01584 against $0.0144 without, an easy cost for a set that must match.
Test 4: Empty states that survive a cutout
Empty-state art sits on the app's own background, so it must come out cleanly. We asked for four 1:1 spot illustrations on "plain pure white #FFFFFF background, no ground shadow, no text", each with screen 1 as a style reference: an empty bed with a trowel, an open mailbox with a leaf, a watering can beside a hose with its ends disconnected, and a magnifying glass over an empty seed tray.

Along the outer 8 percent of each image, only 37 to 46 percent of pixels were exactly white, but every one was 249 or brighter, which is JPEG noise on a white field. We treated near-white as transparent with a soft ramp, and all four cutouts sat on the cream background with no halo or fringing that we could see.
Composition varied more. The subjects filled 6.9 to 19.1 percent of the frame, so crop to the subject and scale each to a fixed width in the layout. Two scenes were weak: the leaf sat on the mailbox door, not inside, and the "disconnected hose" reads as a coiled hose next to a can. An empty state must read at a glance, so we would redo the offline art with a clearer idea.
After four tests the pattern was clear. The Grok Imagine API was reliable at following a palette and a reference character in a fresh image. The next tests asked it to keep the exact layout of an existing image while changing one part, which turned out to be a different story.
Test 5: Dark mode by editing
We tried converting two light images with an edit: "Convert this illustration to a dark-mode version: background becomes deep charcoal green #1E2420, keep the character, composition and drawing style identical, lighten the dark ink colours so every shape stays visible against the dark background. No text."

Both edits kept the composition and lightened dark shapes such as hair and shoes so they stayed visible. The colours drifted. The corner backgrounds sampled as #0B1E22 and #111F20, darker and bluer than the #1E2420 we asked for. In the first edit the T-shirt turned bright mint, the planter went from terracotta to mustard, and the number on the marker disappeared. The tall image stayed much closer to its source.
A background that does not match the app's dark surface colour is the first thing a designer spots. Generate dark art on a background you will cut out, as in Test 4, or replace the background colour with a script. The edit is still a quick preview of how an illustration reads in dark mode.
Test 6: Store screenshot backgrounds with real captions
We asked the model only for the parts it should make: a headline "in a bold rounded sans-serif, deep ink green #2F3A33, centred" at the top, and a phone "seen straight-on with thin dark bezels; its screen is completely blank, filled with solid pure white". Three captions, n=2, 9:19.5 at 2k.

We ran every image through Apple's Vision text recognition on a Mac. All 18 caption lines across the six images came back exactly as written, including the British "neighbours", and both runs of each caption broke lines in the same places.
The phones were the problem. We found each white screen with a script; all were at least 99.3 percent pure white inside, which makes them easy to fill. But the screen's height ranged from 47 to 61 percent of the image, and its height-to-width ratio from 1.99 to 2.26, against 2.16 for our real app screenshot. In three of six images the phone ran off the bottom of the frame by chance. In a set users swipe through, a phone that changes size from slide to slide looks careless.
Test 7: Putting the real app screen in the frame
Our "real" Plotkeeper screen is an HTML mock-up rendered at 1170 x 2532, with a plot map, a details card, a "Book this plot" button and 21 separate text strings. We placed it into a "Book a plot in two taps" background two ways. A local script used the white screen area as a mask and pasted the screen in, with no API call. An edit request passed both images: "Place the app screen from image 2 onto the blank white phone screen in image 1, filling the screen exactly. Keep every word, number and colour of the app screen unchanged, and keep the headline, background and leaves of image 1 unchanged." We ran it twice.

Text recognition found all 21 interface strings in both AI versions, including "C10", "$48" and "Full sun, tap 6 m away". But the model redrew the whole image. In the first run the orange avatar circle vanished and the phone and leaves moved. In the second the phone grew and the headline reflowed to "Book a plot in / two taps", no longer matching the set. Each edit took 16 to 23 seconds and was charged $0.01728, one image plus two references.
The local composite kept every pixel of both inputs. For store screenshots, generate the background with the API and composite the real screen yourself. A model that drops even one interface element can make a listing show something the app does not do.
Test 8: Captions in three more languages
We reused the Test 6 prompt with "Reserva una parcela en dos toques" (Spanish), "Beet buchen mit zwei Fingertipps" (German) and a Japanese caption meaning "Book a plot in two taps", one image each at 2k.

Text recognition, switched to Japanese for the third image, read all three back exactly. Neither the translations nor the line breaks were checked by native speakers, and a real release should have both checked. The phone problem returned: the screen took 43.5 percent of the image height in Spanish, 46.5 in German and 58.6 in Japanese. To keep localised sets consistent, place the phone and screen with the same script in every language.
Test 9: Resolution for 1x, 2x and 3x exports
We generated the "no bookings" empty state again at 2k, cut out both versions and resized them for a spot illustration 240 points wide: 240, 480 and 720 pixels for 1x, 2x and 3x.
The 1k cutout was only 512 pixels wide, because the subject fills part of the frame. It covered 1x and 2x but had to be enlarged by about 40 percent for 3x, which softens edges. The 2k cutout was 1100 pixels wide, enough for every density. The 2k image was a 2048 x 2048 PNG of 1.07 MB, cost the same and took 12 seconds instead of 8. After export the files were small either way: the 3x asset was 121 KB as optimised PNG and 16 KB as WebP at quality 90. The 2k bed was also nearly identical to the 1k one, so re-running an asset at a higher size does not mean redesigning it.
What it cost

|
Item |
What we saw |
|
Price per output image |
$0.0144 on our account at 1k and 2k. The model page lists $0.016 for Gold members, less for higher tiers. |
|
Price per reference image |
$0.00144 on our account, once per request, not per output image |
|
Images and requests |
33 images from 27 requests, all completed on the first submission |
|
Task time |
6 to 8 s at 1k, 10 to 18 s at 2k, 16 to 23 s for edits with two references |
|
Formats returned |
JPEG at 1k (about 95 to 175 KB), PNG at 2k (about 0.9 to 2.6 MB) |
|
Total |
$0.494 |
For a first release, the API cost is a rounding error: onboarding, empty states, dark previews and nine store backgrounds come to well under a dollar, even with retries. The real cost is review time, plus the cutting, colour fixing and compositing in your own tools.
A checklist for app teams
- Pick the style with set to 2 or more. It costs the same per image and adds no waiting.
- Generate final assets at 2k. The price matches 1k here, and narrow ratios at 1k are too small for 3x screens.
- Pass the first approved illustration as a reference for the set, and watch for copied compositions and off-palette colours.
- Ask for empty states on plain white and cut them out with a script. Size them by subject, not by frame.
- Do not trust an edit to hit a hex code. Fix dark-mode backgrounds in post.
- Let the model make store backgrounds and headlines, and composite the real app screen yourself.
- Run every caption through text recognition and have native speakers check translations.
- Download and convert results right away. Links last 72 hours, and 2k PNGs are heavy.
The bottom line
For a small app team, this model can cover most of the illustration work for a first release at a cost that hardly registers. It drew clean flat illustrations in a fixed palette, spelled every caption we gave it in four languages, and returned images in under 20 seconds. Its weak point was not text. It was keeping the layout of an existing image while changing one part: dark-mode edits drifted in colour, and screen composites redrew the frame around the screen.
The workflow that held up was a split one. The model makes fresh art, backgrounds and headlines; simple scripts cut, colour-correct, resize and place the real interface; and a designer reviews everything at full size before it ships. That keeps the art consistent, the store listing accurate, and the interface that users judge most closely out of the model's hands.




