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.
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"
}'
import { KlingClient } from "@runapi.ai/kling";
const client = new KlingClient();
const result = await client.textToVideo.run({
model: "kling-3.0",
prompt: "A golden retriever running on the beach",
duration: "5",
});
require "runapi/kling"
client = RunApi::Kling::Client.new
result = client.text_to_video.run(
model: "kling-3.0",
prompt: "A golden retriever running on the beach",
duration: "5"
)
10+ AI services, unified under one API
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, 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" }
FAQ
Frequently asked questions
Sign up for a free account, generate an API key from the dashboard, and make your first request. Most teams ship a working integration in under 10 minutes.
RunAPI provides access to video generation (Kling, Veo, Seedance), music generation (Suno), image generation (Flux, Seedream, GPT Image), and LLMs (Claude, Gemini, DeepSeek). New models are added regularly.
RunAPI uses a credit-based system with pay-as-you-go pricing. No subscriptions or hidden fees. You only pay for what you generate, and credits never expire.
Yes. Official SDKs are available for Python, Node.js, Ruby, and Go. You can also use the REST API directly with any HTTP client.
Failed generations are not charged. The system automatically retries transient failures, and you receive a webhook notification with the failure details.