awesome-generative-ai

📈 Generative AI & LLM APIs

Comprehensive collection of Generative AI and Large Language Model APIs for text generation, image creation, and multimodal applications.


📋 Table of Contents


🤖 LLM APIs

🔷 OpenAI

🔷 Anthropic

🔷 Google

🔷 Meta


🖼️ Image Generation APIs

🔷 Stability AI

🔷 Midjourney

🔷 Adobe


🎵 Audio & Speech APIs

🔷 ElevenLabs

🔷 Azure Speech

🔷 AWS Polly


🔧 Development Tools

🔷 Hugging Face

🔷 LangChain

🔷 OpenAI SDK


💡 Implementation Examples

Python - OpenAI API

import openai

# Configure API
openai.api_key = "your-api-key"

# Generate text
response = openai.ChatCompletion.create(
    model="gpt-4",
    messages=[
        {"role": "user", "content": "Explain quantum computing in simple terms"}
    ]
)

print(response.choices[0].message.content)

Python - Image Generation

import requests

# Generate image with DALL-E
response = requests.post(
    "https://api.openai.com/v1/images/generations",
    headers={"Authorization": f"Bearer {api_key}"},
    json={
        "prompt": "A futuristic cityscape at sunset",
        "n": 1,
        "size": "1024x1024"
    }
)

image_url = response.json()["data"][0]["url"]

Python - Speech Synthesis

import requests

# ElevenLabs TTS
response = requests.post(
    "https://api.elevenlabs.io/v1/text-to-speech/voice_id",
    headers={"xi-api-key": api_key},
    json={
        "text": "Hello, this is AI-generated speech!",
        "model_id": "eleven_monolingual_v1"
    }
)

# Save audio file
with open("output.wav", "wb") as f:
    f.write(response.content)


💡 Use Cases

Application API Type Benefits
Chatbots LLM APIs Natural conversations
Content Creation Text + Image APIs Automated generation
Voice Assistants Speech APIs Audio interaction
Data Analysis LLM APIs Insight generation
Creative Tools Multimodal APIs Artistic applications

⚖️ Best Practices

🔒 API Management

🚀 Performance Tips


💡 Tip: Start with free tiers to experiment, then scale up based on your specific needs and usage patterns.