yc-duanyc-duanCommunityยท1 Agent Skills Included

api-image

Provider-based image generation, editing, and reference-guided creation

Generates and edits images through your own OpenAI-compatible provider instead of the built-in image tool. Handles text-to-image, reference-guided generation, masked inpainting, style transfer, and batch jobs with custom size and quality. Researches real-world subjects and collects reference images before generating, so landmarks, products, and historical scenes come out accurate. Reads your existing Codex provider config automatically, with temporary URL and key overrides for one-off calls.
npx skills add yc-duan/api-image --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install api-image?โ–ผ

Run `npx skills add yc-duan/api-image --all -g -y` in your terminal to install this skill globally, then restart your Codex app so it reloads.

Why use api-image instead of built-in imagegen?โ–ผ

It routes image generation through your own OpenAI-compatible provider, which is essential when using Codex in API mode where the native image tool is unavailable.

Can api-image edit existing images?โ–ผ

Yes. It supports reference-guided generation, localized edits with masks, background replacement, and style transfer through the provider's images/edits endpoint.

Does api-image need my API key?โ–ผ

It reads your existing Codex root files (auth.json and config.toml) at runtime, and you can pass a temporary key via an environment variable without saving it anywhere.

Can it generate accurate images of real places or products?โ–ผ

Yes. For factual subjects it researches the web and collects reference images first, then feeds them into the generation so structures, terrain, and details stay accurate.

Related Repositories in Design & Creative

View All in Design & Creativeโ†’