← App Icon Generator
Your token

App Icon Generator API

Making the icon files (the Xcode AppIcon set, Android launcher and adaptive icons, the Play Store icon) is free in the browser and needs no API. The API is for the one metered step: send an app name and a line about the app, get back three app icon designs as JSON. Each design is a letter mark or a symbol drawn as an SVG path on a 32 x 32 grid, on a flat or gradient background. Use a design in the page to build every size.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "design".

taskWhat it doesReply
designSuggests three app icon designs: first a letter mark (1 or 2 letters taken from the name, in order), then a symbol (an SVG path inside the 6-26 safe area), then one more idea. The foreground has at least 3:1 contrast against both background colours; hex codes you give are used in at least one design.One ```json block

Input fields

FieldTypeMeaning
taskstring"design". Required.
namestringThe app's name, up to 60 characters. Required.
aboutstringOne line about the app, up to 300 characters. Required.
colorsstringOptional: hex codes or colour words, up to 80 characters.
factsstringJSON text the page works out: suggested_letters, name_letters, hex_colours_given, safe_area. Send "{}" if you have nothing.

The reply

job.output.output is text: one fenced ```json block holding {"designs": [...]}. Each design has name, mark (letters or symbol), text (the letters, else empty), path (SVG path data on a 32 x 32 grid, filled with the foreground colour using the even-odd rule, else empty), background (top colour), background2 (bottom colour of a gradient, or empty for flat), foreground (all #rrggbb) and why. The icon is a full square: iPhone and Android round it themselves. If the balance ran low, truncated is true and the array may stop early; the complete designs before the cut are still usable.

Worked example

Input (input.json):

{
  "task": "design",
  "name": "Pace Runner",
  "about": "running tracker for beginners, upbeat and simple",
  "colors": "#f97316",
  "facts": "{\"suggested_letters\":\"PR\",\"name_letters\":\"PACERUNNER\",\"hex_colours_given\":[\"#f97316\"],\"safe_area\":[6,6,26,26]}"
}

Reply:

```json
{"designs": [
  {"name": "Bold initials", "mark": "letters", "text": "PR", "path": "", "background": "#ea580c", "background2": "#c2410c", "foreground": "#ffffff", "why": "The two initials of Pace Runner in white on a deep orange, bold enough to spot on a busy home screen."},
  {"name": "Lightning stride", "mark": "symbol", "text": "", "path": "M18 6 L9 18 L15 18 L13 26 L23 13 L17 13 L19 6 Z", "background": "#0f172a", "background2": "#1e3a8a", "foreground": "#f97316", "why": "A lightning bolt for pace, in your orange on deep navy, upbeat without clutter."},
  {"name": "Ring of laps", "mark": "symbol", "text": "", "path": "M16 6 A10 10 0 1 0 16.01 6 Z M16 10 A6 6 0 1 0 16.01 10 Z", "background": "#fff7ed", "background2": "#ffedd5", "foreground": "#c2410c", "why": "A simple ring like a running track lap, light and friendly for beginners."}
]}
```

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://app-icon-generator.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"app-icon-generator"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "design", "name": "...", "about": "...", "colors": "", "facts": "{...}"}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="app-icon-generator:design:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.txt   # one ```json block: {"designs": [...3 designs]}
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: app-icon-generator:design:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json