ccapi-api

Use CCAPI unified AI API gateway to access 60+ models (GPT-5.2, Claude, Gemini, DeepSeek, Sora 2, Kling 3.0, Seedance 2.0, Suno, etc.) across text, image, video, and audio. OpenAI SDK compatible — just change the base_url. Use when building AI apps, calling LLMs, generating images/videos/audio, or integrating multiple AI providers through a single API.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ccapi-api" with this command: npx skills add littleblackone/ccapi

CCAPI — Unified Multimodal AI API Gateway

CCAPI provides OpenAI-compatible access to 60+ AI models across 4 modalities through a single API endpoint. No new SDK needed — works with OpenAI Python/Node.js SDK.

Quick Start

Base URL: https://api.ccapi.ai/v1 Auth: Authorization: Bearer <your-ccapi-api-key>

Get your API key at https://ccapi.ai/dashboard

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    api_key="your-ccapi-key",
    base_url="https://api.ccapi.ai/v1"
)

# Text generation
response = client.chat.completions.create(
    model="openai/gpt-5.2",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Node.js (OpenAI SDK)

import OpenAI from "openai"

const client = new OpenAI({
  apiKey: "your-ccapi-key",
  baseURL: "https://api.ccapi.ai/v1",
})

const response = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-4-6",
  messages: [{ role: "user", content: "Hello!" }],
})

cURL

curl https://api.ccapi.ai/v1/chat/completions \
  -H "Authorization: Bearer your-ccapi-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Available Models

Model IDs use provider/model-id format.

Text (LLM)

Model IDContextNotes
openai/gpt-5.21MLatest OpenAI flagship
openai/gpt-5-mini1MFast & affordable
openai/gpt-5-nano1MUltra-low cost
openai/gpt-4.11MStrong reasoning
openai/gpt-4.1-mini1MBalanced performance
openai/gpt-4o128KMultimodal
openai/gpt-4o-mini128KCost-effective
anthropic/claude-opus-4-6200KMost capable Claude
anthropic/claude-sonnet-4-6200KBest value Claude
anthropic/claude-haiku-4-5200KFastest Claude
google/gemini-2.5-pro1MGoogle flagship
google/gemini-2.5-flash1MFast Gemini
deepseek/deepseek-chat64KDeepSeek V3.2
zhipu/glm-5128K744B MoE, top Chinese LLM
openrouter/minimax-m2.51MSWE-bench 80.2%

Image Generation

Model IDNotes
google/nano-bananaGemini Flash image gen
google/nano-banana-proGemini Pro image gen

Video Generation

Model IDResolutionDurationNotes
bytedance/seedance-2.02K@24fps4-10sText/image/video to video
kuaishou/kling-3.0-standardUp to 4K5-10sStandard quality
kuaishou/kling-3.0-proUp to 4K@60fps5-10sProfessional quality
openai/sora-21080p5-25sPhysics simulation
openai/sora-2-pro1080p5-25sHigher quality
google/veo-3.11080pPer-second pricingGoogle video gen

Audio / Music

Model IDNotes
suno/chirp-v5Music generation
elevenlabs/ttsText-to-speech

API Endpoints

Text Generation (Chat Completions)

POST /v1/chat/completions

Supports streaming (stream: true), function calling, vision (image URLs in messages), and all OpenAI-compatible parameters.

Image Generation

POST /v1/images/generations
{
  "model": "google/nano-banana",
  "prompt": "A futuristic cityscape at sunset",
  "n": 1,
  "size": "1024x1024"
}

Video Generation (Async)

Create video task:

POST /v1/video/generations
{
  "model": "bytedance/seedance-2.0",
  "prompt": "A cat playing piano in a jazz bar",
  "duration": 5
}

Response includes a task_id. Poll for results:

GET /v1/video/generations/{task_id}

Audio (Text-to-Speech)

POST /v1/audio/speech
{
  "model": "elevenlabs/tts",
  "input": "Hello, world!",
  "voice": "alloy"
}

Music Generation (Suno)

POST /v1/audio/suno/generate
{
  "model": "suno/chirp-v5",
  "prompt": "An upbeat electronic track with synth leads",
  "duration": 30
}

Model Discovery

GET /v1/models

Returns all available models with pricing, context windows, and capabilities. Supports filtering by provider and type.

Streaming Example

from openai import OpenAI

client = OpenAI(api_key="your-ccapi-key", base_url="https://api.ccapi.ai/v1")

stream = client.chat.completions.create(
    model="deepseek/deepseek-chat",
    messages=[{"role": "user", "content": "Write a haiku about coding"}],
    stream=True,
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Video Generation Full Example

import time
import requests

API_KEY = "your-ccapi-key"
BASE = "https://api.ccapi.ai/v1"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}

# Create video task
resp = requests.post(f"{BASE}/video/generations", headers=HEADERS, json={
    "model": "kuaishou/kling-3.0-standard",
    "prompt": "A golden retriever running on the beach at sunset, cinematic, 4K",
    "duration": 5,
})
task_id = resp.json()["id"]

# Poll until complete
while True:
    status = requests.get(f"{BASE}/video/generations/{task_id}", headers=HEADERS).json()
    if status["status"] == "completed":
        print(f"Video URL: {status['video_url']}")
        break
    elif status["status"] == "failed":
        print(f"Error: {status.get('error')}")
        break
    time.sleep(5)

Key Features

  • OpenAI SDK compatible — change base_url only, zero migration
  • 60+ models across text, image, video, audio
  • Smart routing — automatic failover between providers, 99.9% uptime
  • Transparent USD billing — pay-per-use, no credits/tokens abstraction
  • Tiered pricing — Free (20% off), Standard (30% off), Pro (40% off) vs official prices

Error Handling

All errors follow a consistent format:

{
  "error": {
    "message": "Insufficient balance",
    "type": "billing_error",
    "code": "insufficient_funds"
  }
}

Error types: invalid_request_error, billing_error, api_error, rate_limit_error

Tips

  • Always use provider/model-id format (e.g., openai/gpt-5.2, not gpt-5.2)
  • Video and image generation are async — poll the task endpoint for results
  • Use GET /v1/models to discover available models and current pricing
  • Streaming is supported for all text models
  • All responses follow the OpenAI API format exactly

Resources

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Charging Ledger

充电记录账本 - 从截图提取充电信息并记录,支持按周、月查询汇总。**快速暗号**: 充电记录、充电账本、充电汇总。**自然触发**: 记录充电、查询充电费用、充电统计。

Registry SourceRecently Updated
General

qg-skill-sync

从团队 Git 仓库同步最新技能到本机 OpenClaw。支持首次设置、定时自动更新、手动同步和卸载。当用户需要同步技能、设置技能同步、安装或更新团队技能,或提到「技能同步」「同步技能」时使用。

Registry SourceRecently Updated
General

Ad Manager

广告投放管理 - 自动管理广告投放、优化ROI、生成报告。适合:营销人员、电商运营。

Registry SourceRecently Updated