@aaronjmars/openroutercli 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -131,6 +131,10 @@ openrouter chat "What is 2+2?" -m openai/gpt-4o-mini \
131
131
  openrouter tools list
132
132
  openrouter chat "What's new today?" -m openai/gpt-4o-mini --server-tool web_search
133
133
 
134
+ # Images: animated GIF output and markup-guided edits (gpt-image-2.6)
135
+ openrouter image "a spinning coin" -m openai/gpt-image-2.6-flare --format gif --frames 8 --frame-ms 100 -o coin.gif
136
+ openrouter image "put a hat here" -m openai/gpt-image-2.6-flare --image ./cat.png --markup ./circle.png
137
+
134
138
  # Batches at about half price
135
139
  openrouter batches create --endpoint chat -m openai/gpt-4o-mini --file reqs.jsonl --callback-url https://example.com/webhook
136
140
  openrouter batches wait <id> && openrouter batches results <id> -o out.jsonl
package/SKILL.md CHANGED
@@ -222,6 +222,9 @@ openrouter transcribe ./talk.mp3 -m elevenlabs/scribe-v2 --keyterms OpenRouter,B
222
222
  # Image generation (writes image-0.png, ...): tier or exact size, reference images
223
223
  openrouter image "a red bike on a beach" -m google/gemini-2.5-flash-image -o bike.png
224
224
  openrouter image "same bike, at night" -m google/gemini-2.5-flash-image --image ./bike.png --resolution 2K
225
+ # Animated GIF (2-64 frames, 20-2000 ms each) and a markup overlay guiding an edit (openai/gpt-image-2.6-*)
226
+ openrouter image "a spinning coin" -m openai/gpt-image-2.6-flare --format gif --frames 8 --frame-ms 100 -o coin.gif
227
+ openrouter image "put a hat here" -m openai/gpt-image-2.6-flare --image ./cat.png --markup ./circle.png
225
228
 
226
229
  # Video jobs: frames, references, audio, extend
227
230
  openrouter video create "a sunset over mountains" -m google/veo-3 --resolution 1080p --audio
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaronjmars/openroutercli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Command-line interface for the OpenRouter API. Built for humans and LLM agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,7 +38,12 @@ create options:
38
38
  --image <url|path> Reference image for image-to-image (repeatable, max 16);
39
39
  local files are sent as data URLs
40
40
  --quality <q> auto | low | medium | high | xhigh | max
41
- --format <fmt> png | jpeg | webp | svg
41
+ --format <fmt> png | jpeg | webp | svg | gif (gif = animation on models
42
+ that support it, e.g. openai/gpt-image-2.6-*)
43
+ --frames <n> Animation frames, 2-64 (gif only)
44
+ --frame-ms <ms> Display time per frame, 20-2000 ms (gif only)
45
+ --markup <url|path> Transparent PNG overlay (arrows, circles) the size of
46
+ the first --image, guiding where an edit applies
42
47
  --compression <n> 0-100, webp/jpeg only
43
48
  --background <b> auto | transparent | opaque
44
49
  --seed <n>
@@ -120,6 +125,9 @@ export async function imageCommand(argv) {
120
125
  image: { type: "string", multiple: true },
121
126
  quality: { type: "string" },
122
127
  format: { type: "string" },
128
+ frames: { type: "string" },
129
+ "frame-ms": { type: "string" },
130
+ markup: { type: "string" },
123
131
  compression: { type: "string" },
124
132
  background: { type: "string" },
125
133
  seed: { type: "string" },
@@ -146,6 +154,12 @@ export async function imageCommand(argv) {
146
154
  }
147
155
  if (values.quality) body.quality = values.quality;
148
156
  if (values.format) body.output_format = values.format;
157
+ if (values.frames) body.frame_count = numberOption(values.frames, "--frames");
158
+ if (values["frame-ms"]) body.frame_duration_ms = numberOption(values["frame-ms"], "--frame-ms");
159
+ if (values.markup) {
160
+ if (!body.input_references) throw new Error("--markup needs at least one --image to edit");
161
+ body.markup = { type: "image_url", image_url: { url: await mediaUrl(values.markup) } };
162
+ }
149
163
  if (values.compression)
150
164
  body.output_compression = numberOption(values.compression, "--compression");
151
165
  if (values.background) body.background = values.background;