---
title: "RunAPI SDK — Python, Node.js, PHP, Java, Ruby & Go SDKs for 210+ AI Models"
url: "https://runapi.ai/de/sdk.md"
canonical: "https://runapi.ai/de/sdk"
locale: "de"
---

# RunAPI SDK

RunAPI SDKs give Python, Node.js, PHP, Java, Ruby, and Go apps one typed integration layer for 210+ AI models across video, image, music, audio, and LLM workflows. Install a model SDK, set RUNAPI_API_KEY, create a task, then poll or receive a webhook with the same task lifecycle used by the REST API.

## What is the RunAPI SDK?

The RunAPI SDK is a set of model-specific clients for the RunAPI platform. Each package wraps one model family with typed request helpers, shared authentication, task polling, and response decoding. Developers keep the same API key, billing account, task ID, callback pattern, and error surface while switching between video, image, music, audio, and LLM models.

## Install

```bash
npm install @runapi.ai/kling
pip install runapi-kling
composer require runapi-ai/kling
gem install runapi-kling
go get github.com/runapi-ai/kling-sdk/go
```

## How it works

1. **Pick a model SDK** — Choose the package that matches the model family you want to integrate, such as Kling for video, Suno for music, or Flux Kontext for image workflows.
2. **Set your API key** — Store the key in RUNAPI_API_KEY. The SDK reads the same key used by the REST API, CLI, MCP server, and agent skills.
3. **Create the task** — Send the typed request through the SDK. Media endpoints return a RunAPI task ID quickly, so your application can continue without blocking a web request.
4. **Poll or use webhooks** — Poll the task from your worker, or configure a callback URL and let RunAPI notify your backend when the generation reaches a terminal state.

## Popular SDK packages

- [@runapi.ai/kling](https://www.npmjs.com/package/@runapi.ai/kling) — JavaScript, Kling video generation
- [runapi-kling](https://pypi.org/project/runapi-kling/) — Python, Kling video generation
- [runapi-ai/kling](https://packagist.org/packages/runapi-ai/kling) — PHP, Kling video generation
- [runapi-kling](https://rubygems.org/gems/runapi-kling) — Ruby, Kling video generation
- [github.com/runapi-ai/kling-sdk/go](https://pkg.go.dev/github.com/runapi-ai/kling-sdk/go) — Go, Kling video generation
- [ai.runapi:runapi-kling](https://central.sonatype.com/artifact/ai.runapi/runapi-kling) — Java, Kling video generation
- [@runapi.ai/suno](https://www.npmjs.com/package/@runapi.ai/suno) — JavaScript, Suno music generation
- [runapi-ai/suno](https://packagist.org/packages/runapi-ai/suno) — PHP, Suno music generation
- [@runapi.ai/flux-kontext](https://www.npmjs.com/package/@runapi.ai/flux-kontext) — JavaScript, Flux Kontext image workflows
- [@runapi.ai/core](https://www.npmjs.com/package/@runapi.ai/core) — JavaScript, Shared SDK runtime helpers

## FAQ

### Which languages have RunAPI SDKs?

RunAPI publishes model-specific SDKs for Python, Node.js, PHP, Java, Ruby, and Go. Each package targets one model family, while the REST API remains available for Elixir, .NET, and any runtime that can send HTTPS requests.

### Why are RunAPI SDKs model-specific?

Model-specific packages keep application dependencies small and make request fields easier to understand. A video app can install Kling or Seedance, a music app can install Suno, and a multimodal backend can add packages as new workflows ship.

### How many models does the SDK contract cover?

The current exported contract covers 133 public model IDs and 85 request operations. That contract is generated from the RunAPI catalog and is used to keep SDK examples, CLI metadata, and API documentation aligned.

### Do SDK calls use a different API key?

No. SDK calls use the same RunAPI API key as REST, CLI, MCP, and agent skills. Store it in RUNAPI_API_KEY or pass it through your deployment secret manager instead of hardcoding it in source code.

### Can I use webhooks with the SDK?

Yes. SDK-created tasks use the same task lifecycle as REST requests. You can poll task status from a worker, or configure callback handling so RunAPI sends your backend the terminal task payload.

### Where should I check pricing before using an SDK?

Use the model catalog and pricing page before integrating a model. SDK docs link back to model pages so developers can check the current billing unit, endpoint shape, and supported model IDs without copying price values into code.


## Links

- [SDK docs](https://runapi.ai/de/docs#runapi-sdks)
- [Model catalog](https://runapi.ai/de/models)
- [Pricing](https://runapi.ai/de/pricing)
- [CLI](https://runapi.ai/de/cli)
- [Agent skills](https://runapi.ai/de/skills)
