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
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
Agent Skills that teach coding agents to build on AI/ML API: one OpenAI-compatible API for 10,000+ AI models and tools across chat, image, video, music, speech and embeddings.
With them installed, an agent reads models, parameters and prices from the live catalogue instead of guessing, waits on long jobs the way the API expects, retries only what is safe to retry, and tests your code in sandbox mode before it spends anything.
Works with Claude Code, Cursor, Codex, OpenCode, Gemini CLI, Windsurf and any other agent that supports the Agent Skills format.
npx skills add aimlapi/skillsThe skills CLI asks which agent to install for (Claude Code, Cursor, Codex, Gemini CLI, OpenCode and others) and copies the skills into its folder. Requires Node.js 22.20 or later.
/plugin marketplace add aimlapi/skills
/plugin install aimlapi@aimlapiClaude Code updates third-party marketplaces only when you turn it on: /plugin → Marketplaces → aimlapi → auto-update. Otherwise run /plugin marketplace update aimlapi to get a new version.
macOS and Linux:
curl -fsSL https://aimlapi.com/skills/install.sh | shWindows (PowerShell):
irm https://aimlapi.com/skills/install.ps1 | iexBoth install every skill into the current repository for Claude Code. They download the @ai-ml.api/skills package from npm and check its sha512 before writing anything. Options go after sh -s --, for example curl -fsSL https://aimlapi.com/skills/install.sh | sh -s -- --agent cursor --scope user aimlapi-models.
Requires Node.js 18 or later.
npx @ai-ml.api/skills installThis installs every skill into the current repository for Claude Code. Choose the agent with --agent cursor (or codex, gemini, opencode, copilot, universal), install for every project with --scope user, or name the skills you want: npx @ai-ml.api/skills install aimlapi-models aimlapi-chat. Run the same command again to update. npx @ai-ml.api/skills list shows what is in the package.
gemini extensions install https://github.com/aimlapi/skillsGemini CLI asks for your AI/ML API key once and keeps it in the system keychain. gemini extensions update aimlapi gets a new version.
codex plugin marketplace add aimlapi/skills
codex plugin add aimlapi@aimlapiStart a new Codex session after installing. codex plugin marketplace upgrade gets a new version.
agy plugin install https://github.com/aimlapi/skillsRequires GitHub CLI 2.90 or later.
gh skill install aimlapi/skills --all --agent claude-codeWithout --all or a skill name, a non-interactive shell only lists the skills. One skill only:
gh skill install aimlapi/skills aimlapi-async-jobsAdd --scope user to install for every project, or --agent cursor (or codex, opencode, …) to target one agent.
In Customize, add a plugin From GitHub Repository with aimlapi/skills, then Install it for the project or for your user.
git clone --depth 1 https://github.com/aimlapi/skills.git /tmp/aimlapi-skills
cp -r /tmp/aimlapi-skills/skills/* ~/.config/opencode/skills/ # or your agent's skills folder
rm -rf /tmp/aimlapi-skillsAgents load a skill on their own when your request matches its description.
| Skill | Use it to |
|---|---|
| aimlapi-setup | Connect a coding agent to AI/ML API with the aimlapi CLI, without the agent ever touching your API key |
| aimlapi-models | Find, compare and price models from the live catalogue, read the exact parameters a model accepts, and check deprecations |
| aimlapi-chat | Call text models through Chat Completions, Responses or Messages: OpenAI and Anthropic SDKs, streaming, tools, structured output, image, PDF, audio and video input |
| aimlapi-protocols | Run any chat model through Chat Completions, Responses or Messages: DeepSeek or Gemini behind the Anthropic SDK or Claude Code, Claude behind the Responses API or Codex, and what a translated route does not keep |
| aimlapi-images | Generate and edit images |
| aimlapi-async-jobs | Run video and music jobs and background responses: submit, poll, download |
| aimlapi-speech | Text-to-speech and speech-to-text: synthesize audio, transcribe files and URLs |
| aimlapi-errors | Read error responses, decide what to retry and how, and avoid the mistakes that get requests refused |
| aimlapi-costs | Get the cost of each call, trace requests end to end, and report usage and spend |
| aimlapi-sandbox | Test an integration for free: live response formats, scripted errors and slow answers |
| aimlapi-webhooks | Get async results as signed webhooks instead of polling: signing secret, receiver, signature check, rotation, delivery log |
| aimlapi-batch | Run large chat-completion jobs through the OpenAI-format Batch API at the batch price: JSONL, Files and Uploads, limits, results |
| aimlapi-decisions | Get typed answers with calibrated probabilities from decision models, and use routers that pick a model per request |
AIMLAPI_API_KEY environment variable for the scripts and the code the skills write. Create one at aimlapi.com/app/keys and set it in your shell or secret store. aimlapi-setup is a different thing: it connects the agent itself to AI/ML API models and keeps the key out of the agent's reach, so it does not set AIMLAPI_API_KEY.curl, python3 (3.9+, standard library) or node (18+). Nothing to npm install or pip install.The catalogue and deprecation feed need no key.
The skills hold no key and collect nothing. Their scripts and the code they write read your key from AIMLAPI_API_KEY and send it only to AI/ML API (api.aimlapi.com), in the Authorization header of the requests you ask for. Result files are downloaded from the links the API returns, without the key. The model catalogue, prices and live speed are read without a key. The scripts name themselves in the User-Agent and x-aimlapi-client headers (for example aimlapi-skills/<version> try.py) so these requests can be told apart; nothing else about you or your machine is sent. Nothing is sent anywhere else, and no telemetry is collected. See the privacy policy.
Model lists, prices and per-model parameters change weekly, so no skill copies them. The agent reads them from GET /v1/models and the model's docsJson when it needs them, and a skill says what to do when the API refuses something rather than listing what it accepts today.
No skill asks for, prints or stores an API key.
CI checks every route a skill names against the public API description and runs the examples in sandbox mode every night. Each skill was also tested on a fresh agent, once without it and once with it: the scenarios and results are in tests/skill-scenarios.md.
| Way | Where |
|---|---|
| MCP server (OAuth, no key to paste) | https://mcp.aimlapi.com/mcp |
aimlapi CLI: configures Claude Code, Codex, OpenCode, Cline and more | docs |
| Docs for agents | llms.txt; append .md to any docs URL for Markdown |
See CONTRIBUTING.md. Report a security issue as described in SECURITY.md.
Apache License 2.0. The license does not grant rights to the AI/ML API name or logo.