Skip to content

docs: image generation and edit job pages - #64

Merged
a-essawy merged 4 commits into
mainfrom
feat/generation-api-docs
Jul 31, 2026
Merged

docs: image generation and edit job pages#64
a-essawy merged 4 commits into
mainfrom
feat/generation-api-docs

Conversation

@a-essawy

Copy link
Copy Markdown
Contributor

Adds the docs for image.generate and image.edit, which went live to production on 2026-07-30 with a changelog entry but no documentation.

Three new pages plus nav:

  • jobs/image-generate.mdx — text to image, tiers and pinned models, model discovery
  • jobs/image-edit.mdx — instruction editing with one to four reference images
  • concepts/generation.mdx — how tiers, pinned ids, and the shared catalog work

The pages were originally written on 2026-07-26 and the catalog moved underneath them on 2026-07-29, so the second commit rebuilds every factual claim against gen-registry.ts and gen-models.json:

  • standard resolves to z-image-turbo, not ernie-image-turbo
  • ernie-image-turbo and qwen-image-2512-lightning are underReview, so pinning either returns VALIDATION_ERROR. Documented, with the reason
  • estCostUsd is gone from GET /models. Every dollar figure is replaced by the relative priceTier
  • The GET /models sample now matches the response schema field for field
  • No model in the catalog enhances prompts by default
  • The 4096px dimension cap is documented
  • Preview streaming (job.preview / SDK onPreview) is documented for the first time

Test plan

  • Anchors checked by hand: #watch-it-render, #discover-models. mint validate could not run locally (the CLI rejects Node 25+)
  • Every tier, model id, step range, and capability claim cross-read against packages/shared/src/jobs/gen-registry.ts and gen-models.json
  • Merged up to origin/main, so the diff is purely additive

Pairs with the monorepo PR that adds the llms.txt links pointing at these pages.

a-essawy added 4 commits July 26, 2026 13:58
Document the image.generate and image.edit jobs plus a Generation API concept page. Covers params, the tier/pinned-model catalog from gen-models.json, per-model controls, GET /models discovery, and the webp output shape. Adds the pages to docs.json nav (Generate subgroup under Jobs, Generation under Concepts).
The tier table predated the 2026-07-29 catalog change: standard resolves to
z-image-turbo, not ernie-image-turbo, and both ernie-image-turbo and
qwen-image-2512-lightning are under review, so pinning either one is rejected
at submit. The pages also documented estCostUsd, which GET /models no longer
returns; priceTier replaced it. Preview streaming shipped with the jobs but
was never documented.

- Rebuild both tier tables from gen-registry.ts
- Replace every dollar figure with the relative priceTier
- Document underReview and the VALIDATION_ERROR it produces
- Fix the GET /models sample to the shape the route actually returns
- Correct enhancePrompt: no model in the catalog enhances by default
- Add a preview streaming section with the job.preview field reference
- Note the 4096px dimension cap
The validator has failed on main for the last five merges: the description
runs 183 chars against a 160 cap and opens with "Compress", which is not in
the allowed start-verb list. Rewritten to 155 chars starting with "Get".
@a-essawy
a-essawy merged commit 2aa1f51 into main Jul 31, 2026
1 check passed
@a-essawy
a-essawy deleted the feat/generation-api-docs branch July 31, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant