skills/deepinfra/SKILL.md
Guide to setting up and using DeepInfra API for LLM and image generation models.
npx skillsauth add vuluu2k/skills deepinfraInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill focuses on integrating DeepInfra's REST API into any project. Do not use language-specific SDKs (like the
openaiNodeJS package or LangChain) unless the project already heavily depends on them.
useFetch wrapper, an Axios instance, Elixir Req, or standard fetch).fetch commands or new libraries if a standard API wrapper already exists.POST https://api.deepinfra.com/v1/openai/chat/completions.Authorization: Bearer <API_KEY> header. Always read the API key from environment variables (e.g., process.env.DEEPINFRA_API_KEY or System.get_env("DEEPINFRA_API_KEY")) rather than hardcoding.Content-Type: application/json.Adapt this payload to the project's standard API caller:
{
"model": "meta-llama/Meta-Llama-3-70B-Instruct",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}
DeepInfra yields an OpenAI-compatible JSON structure. Handle the response parsing according to the repository's typical data-transformation layers:
{
"id": "chatcmpl-guMTxWgpFf",
"object": "chat.completion",
"created": 1694623155,
"model": "meta-llama/Meta-Llama-3-70B-Instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! It's nice to meet you."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 16,
"total_tokens": 31
}
}
Always use the exact model ID from the DeepInfra catalog, such as:
deepseek-ai/DeepSeek-V3meta-llama/Meta-Llama-3-70B-Instructdevelopment
Vue 3 Composition API — <script setup>, reactivity (shallowRef/ref), props without destructure, computed, watch, provide/inject, and composables. Use when the project uses modern Vue 3 Composition API style.
development
Vue 3 Options API — data, props, computed, methods, watch, emits, provide/inject, lifecycle hooks, and mixins. Use when the project uses Options API style (Vue 2 legacy or explicit Vue 3 Options API preference).
tools
Best practices for mixing Ant Design Vue components with Tailwind CSS utility classes. Use this skill to keep styling consistent without custom CSS files.
development
Pinia state management for Vue 3 using Composition API (Setup Stores) — TypeScript-first, storeToRefs for reactivity, focused stores, and API calls in composables. Use when the project uses Vue 3 Composition API / <script setup>.