Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .antigravity-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "aimlapi",
"displayName": "AI/ML API",
"description": "Skills for AI/ML API, one API for 10,000+ AI models and tools: choosing models, chat on any protocol, images, video and audio jobs, speech, decision models, webhooks, batches, errors, costs and sandbox testing",
"version": "1.0.5",
"version": "1.0.6",
"logo": "assets/logo.png",
"suggestedPrompts": [
"Which AI/ML API model should I use to animate a product photo, and what will it cost?",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"metadata": {
"description": "Agent skills for building on AI/ML API",
"version": "1.0.5"
"version": "1.0.6"
},
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aimlapi",
"description": "Skills for AI/ML API, one API for 10,000+ AI models and tools: choosing models, chat on any protocol, images, video and audio jobs, speech, decision models, webhooks, batches, errors, costs and sandbox testing",
"version": "1.0.5",
"version": "1.0.6",
"author": {
"name": "AI/ML API",
"url": "https://aimlapi.com"
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aimlapi",
"version": "1.0.5",
"version": "1.0.6",
"description": "Skills for AI/ML API, one API for 10,000+ AI models and tools: choosing models, chat on any protocol, images, video and audio jobs, speech, decision models, webhooks, batches, errors, costs and sandbox testing",
"author": {
"name": "AI/ML API",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"metadata": {
"description": "Agent skills for building on AI/ML API",
"version": "1.0.5"
"version": "1.0.6"
},
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aimlapi",
"version": "1.0.5",
"version": "1.0.6",
"description": "Skills for AI/ML API, one API for 10,000+ AI models and tools: choosing models, chat on any protocol, images, video and audio jobs, speech, decision models, webhooks, batches, errors, costs and sandbox testing",
"author": {
"name": "AI/ML API",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this repository. Versions follow [semver](https://semver.

## [Unreleased]

## [1.0.6] - 2026-11-26

### Fixed

- Examples that static scanners such as Skills Directory read as risky: sample URLs in `job.py` and `speech.py` no longer contain `.../` (read as path traversal), the catalogue check in `aimlapi-protocols` saves the response to a file instead of piping it into `python3`, and `aimlapi-images` sends the catalogue step to `aimlapi-models` and keeps one Python example for generation (a `curl` in the same file as the API key was read as credential exfiltration). Skills Directory's own scan grades these four skills A 100.

## [1.0.5] - 2026-11-24

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion gemini-extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aimlapi",
"version": "1.0.5",
"version": "1.0.6",
"description": "Agent skills for AI/ML API, one API for 10,000+ AI models and tools: choosing models and prices from the live catalogue, chat on any protocol, images, video, speech, decision models, webhooks, batches, errors, costs and free sandbox testing",
"contextFileName": "GEMINI.md",
"settings": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai-ml.api/skills",
"version": "1.0.5",
"version": "1.0.6",
"description": "Agent skills for AI/ML API: install them into Claude Code, Cursor, Codex, Gemini CLI, OpenCode or Copilot",
"license": "Apache-2.0",
"author": "AI/ML API (https://aimlapi.com)",
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-async-jobs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when generating video or music, or running a background Respon
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment. Script needs python3 3.9+.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/video-models.md
---

Expand Down
4 changes: 2 additions & 2 deletions skills/aimlapi-async-jobs/scripts/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

job.py submit video --body '{"model": "...", "prompt": "..."}' [--download out.mp4]
job.py submit music --body @request.json
job.py submit stt --body '{"model": "...", "url": "https://.../audio.mp3"}'
job.py submit stt --body '{"model": "...", "url": "https://example.com/audio.mp3"}'
job.py submit response --body '{"model": "...", "input": "..."}' # sent with background: true
job.py poll video <id>

Expand All @@ -26,7 +26,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 job.py"
CLIENT = "aimlapi-skills/1.0.6 job.py"

KINDS = {
# submit path poll URL builder default interval
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-batch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when many chat-completion requests can wait hours and should c
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment. Script needs python3 3.9+.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/capabilities/batch-processing.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-batch/scripts/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 batch.py"
CLIENT = "aimlapi-skills/1.0.6 batch.py"
ENDPOINT = "/v1/chat/completions"
SINGLE_REQUEST_MAX = 50 * 1024 * 1024 # above this, use the parts upload
PART_SIZE = 8 * 1024 * 1024 # every part but the last must be at least 5 MiB
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-chat/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when calling AI/ML API (aimlapi) text models from code: moving
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/quickstart/supported-sdks.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-costs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when someone asks what an AI/ML API (aimlapi) request cost, ne
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/capabilities/request-tracing-and-cost.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-decisions/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when classifying, routing, moderating, triaging, scoring or ex
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment. The script needs python3 and no key.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/decision-models.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-decisions/scripts/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 decide.py"
CLIENT = "aimlapi-skills/1.0.6 decide.py"
DECISIONS = "internal/decisions"
CHAT = "openai/chat-completions"
MEDIA_FIELDS = ("images", "assets", "videos", "audios", "media")
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-errors/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when an AI/ML API (aimlapi) request fails with a 4xx or 5xx st
license: Apache-2.0
compatibility: Applies to any language. Examples in Python and TypeScript.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/errors-and-messages/general-info.md
---

Expand Down
18 changes: 4 additions & 14 deletions skills/aimlapi-images/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when generating or editing images through AI/ML API (aimlapi):
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/image-models.md
---

Expand All @@ -21,29 +21,19 @@ Image generation is synchronous: one request, the answer holds the images. The c

### 1. Pick the model and read its parameters

```bash
curl -s 'https://api.aimlapi.com/v1/models?type=openai/image-generations&include=pricing'
```

Then read the model's `info.docsJson` for its parameters. With the `aimlapi-models` skill installed, `models.py params flux/schnell` prints them. Models of type `openai/image-editing` also serve `POST /v1/images/edits`.
List image models with their prices through the `aimlapi-models` skill (`models.py list --type openai/image-generations`, or `GET /v1/models?type=openai/image-generations&include=pricing`, which needs no key). Then read the model's `info.docsJson` for its parameters: `models.py params flux/schnell` prints them. Models of type `openai/image-editing` also serve `POST /v1/images/edits`.

### 2. Generate

```bash
curl -sS https://api.aimlapi.com/v1/images/generations \
-H "Authorization: Bearer $AIMLAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "flux/schnell", "prompt": "A lighthouse at dawn, watercolor", "image_size": "landscape_16_9", "num_images": 1}'
```

```python
import os
import requests

resp = requests.post(
"https://api.aimlapi.com/v1/images/generations",
headers={"Authorization": f"Bearer {os.environ['AIMLAPI_API_KEY']}"},
json={"model": "flux/schnell", "prompt": "A lighthouse at dawn, watercolor"},
json={"model": "flux/schnell", "prompt": "A lighthouse at dawn, watercolor",
"image_size": "landscape_16_9", "num_images": 1},
timeout=900,
)
resp.raise_for_status()
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-models/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when choosing an AI/ML API (aimlapi) model for a task, turning
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com. No API key required.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/service-endpoints/complete-model-list.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-models/scripts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 models.py"
CLIENT = "aimlapi-skills/1.0.6 models.py"


def get(path: str, params: dict | None = None) -> dict:
Expand Down
5 changes: 3 additions & 2 deletions skills/aimlapi-protocols/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when a model should be called through a protocol it does not n
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/service-endpoints/complete-model-list.md
---

Expand All @@ -23,7 +23,8 @@ Most chat models on AI/ML API answer on all three text protocols: `POST /v1/chat
### 1. Check that the model serves the protocol

```bash
curl -s 'https://api.aimlapi.com/v1/models?id=deepseek/deepseek-chat' | python3 -c 'import json,sys; [print(m["type"], m.get("translatedFrom", "native")) for m in json.load(sys.stdin)["data"]]'
curl -s 'https://api.aimlapi.com/v1/models?id=deepseek/deepseek-chat' -o models.json
python3 -c 'import json; [print(m["type"], m.get("translatedFrom", "native")) for m in json.load(open("models.json"))["data"]]'
```

- The model must list the route's `type`: `openai/responses/submit` for `/v1/responses`, `anthropic/messages` for `/v1/messages`. `translatedFrom` marks a translated route.
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-sandbox/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when testing, mocking or running CI against AI/ML API (aimlapi
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY (a live or a sandbox key) in the environment.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/capabilities/sandbox-mode.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-sandbox/scripts/try.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 try.py"
CLIENT = "aimlapi-skills/1.0.6 try.py"
PATHS = {
"chat": "/v1/chat/completions",
"responses": "/v1/responses",
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when a coding agent (Claude Code, Codex, OpenCode, Cline, Open
license: Apache-2.0
compatibility: Needs Node.js 18+, npm, network access to aimlapi.com, and a shell the agent can run commands in.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/quickstart/cli/aimlapi-setup.md
---

Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-speech/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when turning text into speech or transcribing audio through AI
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com and AIMLAPI_API_KEY in the environment. Script needs python3 3.9+.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/api-references/speech-models.md
---

Expand Down
4 changes: 2 additions & 2 deletions skills/aimlapi-speech/scripts/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

speech.py tts --body '{"model": "...", "text": "..."}' --out speech.mp3
speech.py tts --body @request.json --out speech.mp3
speech.py stt --model <id> --url https://.../meeting.mp3 [--body '{"language": "en"}']
speech.py stt --model <id> --url https://example.com/meeting.mp3 [--body '{"language": "en"}']
speech.py stt --model <id> --file meeting.mp3 [--field audio|file] [--out answer.json]
speech.py poll <generation_id> [--out answer.json]

Expand Down Expand Up @@ -33,7 +33,7 @@

API = "https://api.aimlapi.com"
# A named User-Agent shows which requests come from these skills; it is not needed for access.
CLIENT = "aimlapi-skills/1.0.5 speech.py"
CLIENT = "aimlapi-skills/1.0.6 speech.py"

PENDING = {"queued", "pending", "waiting", "active", "generating", "processing", "in_progress"}
SUCCESS = {"completed", "succeeded"}
Expand Down
2 changes: 1 addition & 1 deletion skills/aimlapi-webhooks/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use when an AI/ML API (aimlapi) job should notify a server instead
license: Apache-2.0
compatibility: Needs network access to api.aimlapi.com, AIMLAPI_API_KEY, a management API key for the secret, and a public HTTPS endpoint.
metadata:
version: "1.0.5"
version: "1.0.6"
docs: https://docs.aimlapi.com/capabilities/webhooks.md
---

Expand Down
Loading