Skip to content

Instantly integrate 1400+ AI APIs into your code - The ultimate Claude Code skill for seamless 302.AI API integration

License

Notifications You must be signed in to change notification settings

302ai/302AI-API-Integration-Skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

302.AI API-Integration-Skill

πŸš€ Instantly integrate 1400+ AI APIs into your code - The ultimate Claude Code skill for seamless 302.AI API integration

δΈ­ζ–‡ζ–‡ζ‘£ | English

License Claude Code APIs

✨ What is This?

A powerful Claude Code skill that automatically searches through 302.AI's massive collection of 1400+ AI APIs and generates ready-to-use integration code in your preferred programming language. No more manual documentation hunting or boilerplate writing!

🎯 Key Features

  • πŸ” Smart API Discovery - Automatically searches 1400+ APIs across 9 major categories
  • πŸ’» Multi-Language Support - Generates code in Python, JavaScript, TypeScript, Go, and more
  • πŸ”„ Always Up-to-Date - Fetches the latest API list in real-time
  • 🎨 Zero Context Waste - Efficient script-based search reduces token usage
  • πŸ›‘οΈ Security First - Built-in warnings for API key protection
  • ⚑ Lightning Fast - Bash-optimized search for instant results

πŸ“¦ What's Included?

API Categories Covered

Category Examples Coverage
πŸ€– Language Models GPT, Claude, Gemini, Chinese models 30%
🎨 Image Generation Nano-Banana, Midjourney, Stable Diffusion, Flux 25%
🎬 Video Generation Runway, Pika, Luma AI, Kling 20%
🎡 Audio Processing TTS, STT, Music Generation 10%
πŸ“„ Document Processing OCR, PDF, Web Scraping 10%
🧠 RAG & Embeddings Vector Search, Rerank 3%
πŸ› οΈ Tools & Utilities Creative, Writing, Professional 2%

πŸš€ Quick Start

Installation

Simply share this GitHub URL with Claude Code:

Install this skill: https://github.com/302ai/302AI-API-Integration-Skill

Claude Code will automatically install the skill for you!

Verify Installation

Check if the skill is loaded:

What skills are available?

You should see 302ai-api-integration in the list.

Basic Usage

Simply ask Claude Code naturally:

"I need to use GPT-4 in my Python project"
"How do I generate images with DALL-E in Node.js?"
"Integrate speech-to-text API"

The skill will:

  1. βœ… Ask for your 302.AI API Key
  2. βœ… Search the latest API list
  3. βœ… Show you matching APIs
  4. βœ… Generate complete integration code
  5. βœ… Provide usage examples and best practices

πŸ’‘ Usage Examples

Example 1: Integrate GPT-4 Chat

You: "I want to use GPT-4 in my Python project"

Claude Code (with this skill):

import requests
import json

API_KEY = "your_api_key_here"
BASE_URL = "https://api.302.ai"

def call_gpt4(prompt):
    response = requests.post(
        f"{BASE_URL}/v1/chat/completions",
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json"
        },
        json={
            "model": "gpt-4",
            "messages": [{"role": "user", "content": prompt}]
        }
    )
    return response.json()

# Usage
result = call_gpt4("Hello, GPT-4!")
print(result)

Example 2: Image Generation

You: "Generate images with Stable Diffusion in JavaScript"

Claude Code generates complete Node.js code with:

  • βœ… API endpoint configuration
  • βœ… Image generation function
  • βœ… Error handling
  • βœ… File saving logic

Example 3: Video Generation

You: "I need to create videos from text"

Claude Code:

  1. Searches video generation APIs (Runway, Pika, Luma AI, etc.)
  2. Shows you options with descriptions
  3. Generates integration code after you select
  4. Includes async handling for long-running tasks

πŸ› οΈ Advanced Features

Bash Command Search

The skill includes a powerful Python script for direct API search:

# Search by keyword
python3 scripts/parse_api_list.py "GPT"

# Search by category
python3 scripts/parse_api_list.py "image generation"

# Combined search
python3 scripts/parse_api_list.py "chat" "language model"

Python Module Usage

from scripts.parse_api_list import fetch_llms_txt, parse_llms_txt, search_apis

# Auto-fetch latest API list
content = fetch_llms_txt()
apis = parse_llms_txt(content)

# Search APIs
results = search_apis(apis, keyword='GPT', category='Language Models')

# Display results
for api in results:
    print(f"{api['name']}: {api['link']}")

πŸ“š Documentation Structure

302ai-api-integration/
β”œβ”€β”€ SKILL.md                          # Main skill instructions
β”œβ”€β”€ scripts/
β”‚   └── parse_api_list.py            # API search script (auto-fetch)
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ api_categories.md            # Complete API category index
β”‚   β”œβ”€β”€ integration_examples.md      # Code templates for all languages
β”‚   └── parse_script_usage.md        # Script usage guide
└── assets/                          # (Reserved for future use)

πŸ”’ Security Best Practices

The skill automatically warns you about:

  • ⚠️ Frontend API Key Exposure - Never use API keys in pure frontend code
  • βœ… Recommended Solution - Use backend frameworks (Next.js, Express, Flask)
  • πŸ” Environment Variables - Store keys securely
  • 🚫 Version Control - Never commit API keys

🎨 Supported Languages

  • 🐍 Python - Complete with async support
  • πŸ“œ JavaScript/Node.js - Modern ES6+ syntax
  • πŸ“˜ TypeScript - Full type definitions
  • πŸ”· Go - Idiomatic Go code
  • πŸ”§ cURL - Ready-to-use commands
  • βž• More - Request any language!

🌟 Why Use This Skill?

Before (Manual Integration)

1. Search 302.AI documentation
2. Find the right API
3. Read through docs
4. Copy endpoint URLs
5. Write boilerplate code
6. Debug authentication
7. Handle errors manually
⏱️ Time: 30-60 minutes

After (With This Skill)

1. Ask Claude Code naturally
2. Get complete working code
⏱️ Time: 2-3 minutes

πŸ“Š Performance

  • Search Speed: < 2 seconds for 1400+ APIs
  • Context Usage: Minimal (script-based search)
  • Code Quality: Production-ready with error handling
  • Accuracy: Always uses latest API documentation

🀝 Contributing

Found a bug or have a suggestion? We'd love to hear from you!

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

πŸ“ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

πŸ”— Links

πŸ’¬ Support

πŸŽ‰ Acknowledgments

  • Built for Claude Code
  • Powered by 302.AI's comprehensive API platform
  • Inspired by the developer community's need for faster API integration

⭐ Star this repo if you find it useful!

Made with ❀️ for developers who value their time

Get Started β€’ View Examples β€’ Read Docs

About

Instantly integrate 1400+ AI APIs into your code - The ultimate Claude Code skill for seamless 302.AI API integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages