@heyamiko/amiko-cli 0.11.0-beta.3 → 0.12.0-beta.3
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 +94 -0
- package/dist/index.js +3749 -1205
- package/package.json +1 -1
- package/skills/SKILL.md +12 -40
package/README.md
CHANGED
|
@@ -116,6 +116,100 @@ Pricing is OpenAI pass-through × 1.30 markup, paid in AMIKO at the live AMIKO/U
|
|
|
116
116
|
|
|
117
117
|
Image generation typically takes 20–60s. In non-TTY environments (agents, piped shells), the CLI prints a `…still working (Ns elapsed)` tick to stderr every 3s so the parent process can tell it hasn't hung.
|
|
118
118
|
|
|
119
|
+
## Create Studio
|
|
120
|
+
|
|
121
|
+
The CLI half of the platform's Create Studio. `amiko create` generates media through Amiko's own authenticated endpoints (not the raw MPP pay-per-call surface `amiko markets` uses). Generation runs **asynchronously** and is **charged on success** from your twin's wallet — a failed or timed-out generation is never billed, and there's no up-front payment.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
amiko create image "a sunset over mountains" # default gpt-image-2, 1:1
|
|
125
|
+
amiko create image "logo" --aspect 16:9 --model gpt-image-2 # widescreen
|
|
126
|
+
amiko create video "a whale in space" --resolution 768P --seconds 6
|
|
127
|
+
amiko create tts "Hello world" --voice 21m00Tcm4TlvDq8ikWAM
|
|
128
|
+
amiko create music "lo-fi chill beat" --duration 30000
|
|
129
|
+
amiko create music --lyrics "..." --instrumental # instrumental
|
|
130
|
+
amiko create sfx "thunder and heavy rain" --duration 5
|
|
131
|
+
amiko create image "banner" --raw # raw JSON
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Modes: `image`, `video`, `tts`, `music`, `sfx` (mirrors the platform Create Studio).
|
|
135
|
+
|
|
136
|
+
**Common flags (all subcommands):**
|
|
137
|
+
|
|
138
|
+
| Flag | Description |
|
|
139
|
+
|------|-------------|
|
|
140
|
+
| `--token <symbol>` | Charge token: `AMIKO`, `USDC`, `USDT`, `SOL` (default: auto, AMIKO-first) |
|
|
141
|
+
| `--yes` | Skip the pre-spend confirmation (required in non-interactive shells) |
|
|
142
|
+
| `--raw` | Output the raw job result as JSON |
|
|
143
|
+
|
|
144
|
+
**`amiko create image <prompt>`**
|
|
145
|
+
|
|
146
|
+
| Flag | Default | Description |
|
|
147
|
+
|------|---------|-------------|
|
|
148
|
+
| `--model <model>` | `gpt-image-2` | Image model |
|
|
149
|
+
| `--aspect <ratio>` | `1:1` | Aspect ratio: `1:1`, `16:9`, `9:16`, `4:3`, `3:4` |
|
|
150
|
+
|
|
151
|
+
**`amiko create video <prompt>`**
|
|
152
|
+
|
|
153
|
+
| Flag | Default | Description |
|
|
154
|
+
|------|---------|-------------|
|
|
155
|
+
| `--model <model>` | `MiniMax-Hailuo-2.3-Fast` | Video model |
|
|
156
|
+
| `--resolution <res>` | `768P` | `512P`, `720P`, `768P`, `1080P` |
|
|
157
|
+
| `--seconds <n>` | `6` | Clip length: `6` or `10` |
|
|
158
|
+
| `--aspect <ratio>` | — | Aspect ratio (provider-dependent) |
|
|
159
|
+
| `--first-frame <url>` | — | Image-to-video: first frame URL or data URI |
|
|
160
|
+
|
|
161
|
+
**`amiko create tts <text>`**
|
|
162
|
+
|
|
163
|
+
| Flag | Default | Description |
|
|
164
|
+
|------|---------|-------------|
|
|
165
|
+
| `--model <model>` | `eleven_multilingual_v2` | TTS model id |
|
|
166
|
+
| `--voice <voiceId>` | `21m00Tcm4TlvDq8ikWAM` | Voice id |
|
|
167
|
+
|
|
168
|
+
**`amiko create music [prompt]`** — pass a prompt and/or `--lyrics`
|
|
169
|
+
|
|
170
|
+
| Flag | Default | Description |
|
|
171
|
+
|------|---------|-------------|
|
|
172
|
+
| `--model <model>` | `music-2.6` | `music_v1`, `music-2.6`, `music-cover` |
|
|
173
|
+
| `--lyrics <lyrics>` | — | Lyrics (optional) |
|
|
174
|
+
| `--duration <ms>` | — | Length in milliseconds |
|
|
175
|
+
| `--instrumental` | — | Instrumental (no vocals) |
|
|
176
|
+
|
|
177
|
+
**`amiko create sfx <text>`**
|
|
178
|
+
|
|
179
|
+
| Flag | Default | Description |
|
|
180
|
+
|------|---------|-------------|
|
|
181
|
+
| `--duration <seconds>` | — | Clip length in seconds |
|
|
182
|
+
|
|
183
|
+
### How it works (and getting the result)
|
|
184
|
+
|
|
185
|
+
**By default the command returns immediately** with a **job id** and `status: PENDING` — it does **not** block for the whole generation. It prints how to check the result and a rough ETA. This keeps agents/scripts from being held for 60s–9min.
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
$ amiko create image "a whale in space" --yes
|
|
189
|
+
Submitted — job aX9k…
|
|
190
|
+
Status: PENDING — generating in the background
|
|
191
|
+
Check result: amiko create status aX9k…
|
|
192
|
+
Usually ready in ~15–60s — charged only on success.
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Rough ETAs: image ~15–60s, video ~2–9 min, music ~30–120s, tts/sfx ~5–20s.
|
|
196
|
+
|
|
197
|
+
Retrieve the finished asset with:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
amiko create status <jobId> # re-query that job (queryable ~24h)
|
|
201
|
+
amiko create media # list your recent generations (permanent)
|
|
202
|
+
amiko create media --service video --limit 5
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- **`amiko create status <jobId>`** — re-polls the job once; prints `PROCESSING`, or the asset + charge when done. Jobs stay queryable for ~24h.
|
|
206
|
+
- **`amiko create media`** — lists your recent Create Studio generations (URL, type, model, prompt, date). `--service <type>` filters, `--limit <n>` caps (max 50), `--raw` for JSON. Use this once a job id has expired, or just to browse.
|
|
207
|
+
- **Web:** `https://platform.heyamiko.com/media`
|
|
208
|
+
|
|
209
|
+
**`--wait`** — if you'd rather block until it finishes and print the asset inline (e.g. an interactive terminal), pass `--wait`. It polls (10 min cap for video, 5 min otherwise) with a `…still generating (Ns)` tick; on timeout it falls back to the job-id + retrieval hint above. `--raw` prints the full job result as JSON either way.
|
|
210
|
+
|
|
211
|
+
> `amiko markets image` still exists and is unchanged — it's the direct MPP pay-per-call path (pre-pay in AMIKO). Use `amiko create` for the Create Studio experience (async, charge-on-success); use `amiko markets` for raw MPP endpoints.
|
|
212
|
+
|
|
119
213
|
## Amazon
|
|
120
214
|
|
|
121
215
|
```bash
|