Skills Plugins MCP Prompt Model 博客 我的中心
開発 #image #api #ai

codex-image

Generate images using OpenAI's Codex backend API with gpt-image-2 tool. Use when the user asks to generate images via Codex, ChatGPT image generation, or gpt-image-2. Triggers on "codex image", "codex generate", "gpt-image", "chatgpt generate image". Token is auto-fetched from chatgpt.com session — no manual token setup needed.

DeepseekModel キュレーション済みスキル 品質 優秀 · 78 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=openminis-minisskills-codex-image-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name codex-image description Generate images using OpenAI's Codex backend API with gpt-image-2 tool. Use when the user asks to generate images via Codex, ChatGPT image generation, or gpt-image-2. Triggers on "codex image", "codex generate", "gpt-image", "chatgpt generate image". Token is auto-fetched from chatgpt.com session — no manual token setup needed. Codex Image Generation Generate images via chatgpt.com/backend-api/codex/responses using the image_generation tool (gpt-image-2). Requirements A ChatGPT account (token is fetched automatically via browser session) No manual token setup needed — the skill handles auth automatically Auth Token Resolution (in order) --token argument (CLI only) CODEX_IMAGE_TOKEN environment variable --token-file argument (CLI only) ~/.chatgpt_auth.json cache (valid for 8 hours) Auto login flow — fetches from https://chatgpt.com/api/auth/session via minis-browser-use : If already logged in → token extracted and saved to cache immediately If not logged in → opens chatgpt.com/auth/login in the browser, then polls every 10s in a new tab for up to 5 minutes On success → saves token to ~/.chatgpt_auth.json (chmod 600, token + timestamp only) Token is never printed to stdout or logs — it stays in the cache file only Usage Text-to-image python3 scripts/codex_image.py "a cute rabbit on a light background" \ --output rabbit.png \ --model gpt-5.4 \ --effort low Image-to-image / reference image python3 scripts/codex_image_edit.py "turn this person into a cinematic iOS AI assistant portrait" \ --image reference.jpg \ --output portrait.png \ --model gpt-5.4 \ --effort low codex_image_edit.py encodes the local reference image as a base64 data URL and sends it as multimodal input ( input_text + input_image ) to the same Codex responses endpoint, then asks the image_generation tool to create a new image from the reference. Parameters Parameter Default Description prompt (required) Image description or edit instruction --image (edit only, required) Local reference image path for image-to-image generation --output codex_image.png / codex_image_edit.png Output file path --model gpt-5.4 Codex model --effort low Reasoning effort: low/medium/high --token - Access token directly (skips auto auth; text-to-image script only) --token-file - File containing token (skips auto auth; text-to-image script only) Output JSON with success , path , size , revised_prompt on success. Auth Script (standalone) python3 scripts/get_auth.py Returns JSON {"success": true, "source": "cache|session|login"} — the token itself is never printed to stdout . It is written only to ~/.chatgpt_auth.json (chmod 600, token + timestamp only, no PII). This prevents the token from appearing in shell logs, conversation context, or screenshots. Workflow Token : auto-resolved via get_auth.py : Already cached → use directly Already logged in (browser session) → extract immediately Not logged in → minis-open pops the ChatGPT login page to the user in foreground, then polls every 10s (up to 5 min) until login is detected Construct the prompt from the user's request. Run scripts/codex_image.py with appropriate arguments. Send the generated image to the user. Notes Token is cached in ~/.chatgpt_auth.json for 8 hours (chmod 600, token + timestamp only — no PII stored). Token is never printed to stdout or conversation context — always read from cache file internally. The endpoint requires stream: true ; the script handles SSE parsing internally. Token is a ChatGPT session token, not an OpenAI API key. It expires and is refreshed automatically on next use. Image generation uses gpt-image-2 under the hood with auto quality/size. Token usage is split: main usage tracks text tokens, tool_usage.image_gen tracks image tokens separately. This uses an internal/unofficial API endpoint. Availability may change.
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。