ofox-image-core
БесплатноБез исполняемых скриптовНе проверенRequires OFOX_API_KEY — create one at https://app.ofox.ai. Shared execution layer for the Ofox image API (api.ofox.ai) — validates parameters client-side…
от ofoxai679 установок в других каталогахОб этом скилле
ofox-image-core: Ofox image API execution layer
Wraps the Ofox image generation API (https://api.ofox.ai/v1/images/generations)
behind one script: validate, request, decode, save, report real token usage.
Unlike ofox-video-core, this API is synchronous — one request either
returns the finished image(s) in the response body or fails outright. There
is no job id, no polling, and (because of that) no free "check what
happened" recovery path if a request goes wrong mid-flight.
Safety contract (non-negotiable)
- The script never reads a dotenv file.
references/ofox-image.shresolvesOFOX_API_KEYfrom the shell environment only, and the key is never hardcoded in a script or a skill file. - You may load the key from a dotenv file once the user has authorized it.
Locate it (
.envat the repo root is the usual spot), thenset -a; . <path>; set +ain the shell you'll call the script from. Sourcing a dotenv pulls in every variable in the file, not just the key —OFOX_API_BASE_URLis one this script reads, and it redirects every API call — so read the file before you load it. Never echo the value. - The key goes to exactly one host, and you are told when that host is not
Ofox. Since 1.14.0
OFOX_API_BASE_URLmust behttps://(a loopback host may behttp://, for a local test server) and an override prints aNOTE:on stderr naming the host that will receive the key. Relay that line if you see it. Every request this script makes is built from that base — no URL out of a response body is ever fetched — so there is nothing else to check. edit --extra-formwill not read local files. A value starting@or<is refused (curl reads those as "upload this file" / "send this file's contents"). Use--imageto send an image;--extra-formis for extra fields.- Neither escape hatch can set a field that has a flag.
--extra-json(generate) and--extra-form(edit) are both refused formodel,prompt,quality,size,n,output_format,background— and--extra-formforimage/image_urltoo. Those are validated per model and priced before the hatch is applied, so a value arriving that way would change what is billed after the quote the user approved:--extra-form "n=10"printedN 1and asked for ten images. Pass them as flags. - Never print, log, or echo the raw key value — not in chat, not in a
file, not in a command you show the user, not in verbose curl output.
references/ofox-image.shnever usescurl -v/--tracefor exactly this reason (those would print theAuthorizationheader). If you need to show that a key is configured, say "OFOX_API_KEY is set" — never the value. - Never write the key into any file this skill (or a skill built on it) creates, including generated images' metadata, cost reports, or committed code.
- Check once, then proceed. Run the availability/key check at most once per session (see below). If it passes, don't re-prompt for the key on every subsequent call in that session.
- Fail open on a missing key — guide the user to get one, don't dead-end the conversation. A missing key means "can't call the paid API yet," not "stop talking to me."
Which model: the priority chain
bash references/ofox-image.sh models lists every image model Ofox serves,
its per-output-token price, and the priority chain below together with the
model it resolves to right now. No API key needed — GET /v1/models is
public.
--model is optional. Omit it (or pass auto) and the script walks a
cost-per-image-ranked chain and uses the first model that is actually
available:
| Model | Cost per image (measured — always at the pair named) | Why it is here | |
|---|---|---|---|
| 1 | openai/gpt-image-2 |
~0.6 cents at --quality low --size 1024x1024; ~15.4 cents at --quality high --size 1792x1024 |
cheapest per image at the one pair measured on both it and row 2, despite the higher per-token rate below — see the warnings |
| 2 | microsoft/mai-image-2.5-flash |
~2.0 cents at --quality low --size 1024x1024 |
second cheapest at that pair; was the chain's preferred model through 1.3.0 |
| 3 | google/gemini-3.1-flash-lite-image |
not measured | tied with (1) on the per-token rate, but no per-image figure recorded yet |
| 4 | microsoft/mai-image-2.5 |
not measured | same vendor as (2), when quality matters more |
⚠️ There is no such thing as "the" per-image price of an image model — every
figure above is only true for the --quality/--size pair beside it.
Measured 2026-09-04: openai/gpt-image-2 spends 196 output tokens at low /
1024x1024 and 5063 at high / 1792x1024, so the same model costs 0.6
cents or 15.4 cents depending on two flags — a 26x spread. Quoting a bare
"~0.6 cents per image" for a large, high-quality frame is exactly the mistake
that produced a 15.4-cent bill against a 0.6-cent estimate. Since 1.7.0
`--dry-
Установить ofox-image-core в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ofox-image-core?
Requires OFOX_API_KEY — create one at https://app.ofox.ai. Shared execution layer for the Ofox image API (api.ofox.ai) — validates parameters client-side, sends one synchronous request, base64-decodes the result, saves it to a file, and reports the real usage token counts and the computed dollar cost. Does both text-to-image (generate) and editing an existing image you supply as a local file (edit — change the background, recolour an element, alter a product photo, while leaving the rest of the picture intact). This is a library skill, not a standalone user-facing one — it is meant to be invoked by scenario skills that build model/prompt/size choices for a specific use case and then call into this skill's script rather than re-implementing the API calls — image-edit owns "change this image so that...", product-image owns a set of product images to choose between, and seedance-anime-drama owns character images for a video pipeline. Load this skill directly only when a user explicitly names the Ofox image API, asks to call it with specific low-level parameters, asks to debug a failed Ofox image request, or wants a plain "generate an image of..." from text — which is the one common case no scenario skill covers.
Как установить скилл ofox-image-core?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ofox-image-core запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic