Unified AI API Platform
Unified AI API for Video, Music, Image & LLMs
One API key to access Kling, Suno, Flux, Claude, Gemini, DeepSeek and more. Pay-as-you-go. Production-ready.
# Base URL
https://runapi.ai
# LLM Endpoints
POST /v1/chat/completions
POST /v1/messages
POST /v1/responses
POST /v1/embeddings
# Media Endpoints
POST /api/v1/<model>/<action>
curl https://runapi.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4.6",
"messages": [{"role": "user", "content": "Hello"}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://runapi.ai/v1",
api_key="your-runapi-key"
)
response = client.chat.completions.create(
model="claude-sonnet-4.6",
messages=[{"role": "user", "content": "Hello"}]
)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://runapi.ai/v1",
apiKey: "your-runapi-key"
});
const response = await client.chat.completions.create({
model: "claude-sonnet-4.6",
messages: [{ role: "user", content: "Hello" }]
});
npx skills add runapi-ai/kling -g
# In Claude Code, prompt:
Add Kling video generation to this Next.js app with RunAPI.
npx skills add runapi-ai/suno -g
# In Codex, prompt:
Add Suno music generation to this Next.js app with RunAPI.
npx skills add runapi-ai/flux-kontext -g
# In Gemini CLI, prompt:
Add Flux image generation to this Next.js app with RunAPI.
10+ AI services, unified under one API
Choosing a video model? Compare Seedance 2.0, Kling 3.0, and Veo 3.1 APIs
Why RunAPI
Why developers choose RunAPI
The boring parts of multi-model AI infrastructure, handled.
All models, one API
Access video, music, image, and LLM models through a single API key — including Suno (no official API available elsewhere) and Kling video generation.
Production ready
Built for production workloads. Async task management, webhook callbacks, automatic retries, and predictable credit-based billing. SDKs in Python, Node.js, PHP, Java, Ruby, and Go.
Transparent pricing
Pay only for what you use. No subscriptions, no hidden fees. See exactly what each generation costs before you call the API.
Quickstart
Start building in minutes
Three lines of code to generate a video, create music, or produce an image.
curl -X POST https://runapi.ai/api/v1/kling/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"prompt": "A golden retriever running on the beach",
"duration": "5"
}'
# { "task_id": "task_abc123", "status": "pending" }
curl -X POST https://runapi.ai/api/v1/suno/text_to_music \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-v5",
"prompt": "An upbeat indie rock song about coding late at night"
}'
# { "task_id": "task_def456", "status": "pending" }
curl -X POST https://runapi.ai/api/v1/flux_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-pro-text-to-image",
"prompt": "A minimalist logo for a tech startup, clean vector art",
"width": 1024,
"height": 1024
}'
# { "task_id": "task_ghi789", "status": "pending" }
WHAT IS RUNAPI
One API for Every AI Model
RunAPI is a unified API platform that connects your application to 130+ AI models from 18 providers through a single API key. Instead of managing separate accounts, SDKs, and billing with Anthropic, OpenAI, Google, Suno, Kling, and a dozen other providers, you make one integration and reach all of them. Every request is billed per call with no monthly minimum, failed generations are not charged, and you get async task management, webhook callbacks, and structured JSON output across every modality — video, image, music, audio, and LLM.
USE CASES
What Developers Build with RunAPI
AI-Powered Apps
Ship image, video, and music generation into your product without managing provider accounts. One API key, one billing dashboard, one webhook format.
Agent Workflows
Give Claude Code, Codex, Gemini CLI, and other coding agents access to 130+ models through MCP server or installable skills.
Batch Media Pipelines
Generate thousands of images, videos, or audio files with async task management and webhook callbacks. Poll or wait — the CLI and SDKs handle both.
Multi-Model Prototyping
Compare output quality across providers without separate signups. Switch from Kling to Veo to Seedance by changing one parameter.
HOW IT WORKS
Three Steps to Your First Generation
Get an API Key
Sign up and generate a free API key from the dashboard. No credit card required.
Pick a Model
Browse the model catalog, choose by modality and provider, and copy the model ID.
Call the API
Send a POST request with your prompt and model ID. RunAPI routes it to the provider, manages the async lifecycle, and returns structured JSON.
Developer Tools
MCP Server
Connect Claude Code, Cursor, and MCP-compatible agents to 130+ models.
CLI
Run AI models from your terminal with JSON-first output.
SDKs
Python, Node.js, PHP, Java, Ruby, and Go SDKs for programmatic integration.
Model Catalog
Browse all 130+ models with pricing, parameters, and code samples.
FAQ
Frequently asked questions
Sign up for a free account at runapi.ai, generate an API key from the dashboard, and make your first API request. No credit card is required. The quickstart takes under 10 minutes — install an SDK, set your API key as an environment variable, and call any model endpoint. The model catalog shows every available model with its parameters, pricing, and code samples.
RunAPI connects to 130+ models across 18 providers and 5 modalities. Video generation includes Kling 2.1, Veo 3, Seedance 1.0, Hailuo, Wan, Runway, and Luma. Image generation covers Flux 2 Pro, Nano Banana, GPT Image, Seedream, Imagen 4, Ideogram 3, and Recraft. Music is powered by Suno v4 through v5.5. Audio includes ElevenLabs TTS, sound effects, and speech-to-text. LLMs include Claude Opus 4.8, GPT-5.4, Gemini 2.5 Pro, DeepSeek R1, and Grok. New models are added within days of provider release.
Every API call is billed per request with no monthly minimum, no subscription, and no hidden fees. Failed generations are never charged. Credits do not expire. The pricing page shows exact per-model costs, and the check_pricing API returns real-time rates programmatically.
Yes. Official SDKs are available for Python, Node.js, Ruby, PHP, Java, and Go. Each SDK handles authentication, async task polling, and typed responses. Beyond SDKs, RunAPI provides a CLI for terminal-based generation, an MCP server for Claude Code, Cursor, and other coding agents, and installable model skills for agent runtimes. All tools share one API key.
Failed generations are not charged. The system automatically retries transient provider failures. You receive a webhook callback with the failure details if you configured a callback URL, or you can poll the task status endpoint. The dashboard shows all tasks with their status and error details.
Media tasks (video, music, image) run asynchronously. You submit a request, receive a task ID immediately, and poll for completion or configure a webhook callback URL to receive results automatically. The CLI provides a built-in runapi wait command, and the SDKs offer both polling and callback patterns. Task status transitions from pending through processing to completed or failed.
Yes. RunAPI publishes an MCP server that works with Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, and any MCP-compatible host. It also publishes installable model skills for agent runtimes. Agents can browse models, check pricing, and create generation tasks as native tool calls — no manual API configuration required.
Yes. RunAPI exposes OpenAI-compatible LLM endpoints at /v1/chat/completions, /v1/messages (Anthropic format), and /v1/responses. Any application that works with the OpenAI SDK can point its base URL to RunAPI and access Claude, Gemini, DeepSeek, and other LLMs without code changes. Media generation uses RunAPI-native endpoints with consistent JSON structure across all providers.
No. A single RunAPI API key unlocks all 18 providers. You do not need accounts with Anthropic, OpenAI, Google, Kuaishou, Suno, Black Forest Labs, or any other provider. RunAPI handles provider authentication, rate limiting, and billing consolidation. You see one dashboard, one invoice, one set of API credentials.
RunAPI provides email support at [email protected] and a status page monitoring API uptime. The platform routes requests to providers in real time — latency depends on the upstream provider, and RunAPI adds minimal overhead. Callback delivery failures trigger email alerts with diagnostic details so you can fix webhook endpoints quickly.