This recipe is for teams building internal tools, CLIs, or coding-agent workflows on top of the gateway SDKs.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
If you want a reusable starting point instead of writing every skill from scratch, install the public AI Stats skills from Then keep project-specific instructions in your local
AI-Stats/skills:SKILL.md.- keep your SDK setup inside the repository
- add a
SKILL.mdfile that teaches the agent how the project expects requests to be made - point the agent at that file during setup so request patterns stay consistent
1. Install the SDK
If you’re using TypeScript or JavaScript:2. Add a project-local skill file
CreateSKILL.md in the repository root or the agent skill location your team uses.
3. Keep the first integration tiny
For coding agents, smaller request helpers are easier to reuse than large wrappers.- text generation
- async video
- embeddings
- image generation
4. What the skill should encode
YourSKILL.md should answer the questions that waste the most agent time:
- which endpoint family to prefer
- which environment variable holds credentials
- which model ids or preset slugs are approved
- how request ids should be logged
- how async jobs should be tracked
5. Recommended repository pattern
- SDK helper in one shared module
SKILL.mdnext to the integration code or at repository root- one short example per major endpoint
- one note covering request logging and error handling