---
title: Snelstart | RunAPI
description: Zet uw eerste AI-generatie op gang in minder dan 5 minuten.
url: https://runapi.ai/nl/docs/guides/quickstart.md
canonical: https://runapi.ai/nl/docs/guides/quickstart
locale: nl
---

> HTML-versie: https://runapi.ai/nl/docs/guides/quickstart
> Site-index voor agents: https://runapi.ai/llms.txt

# Snelstart

## Stap 1: Een API-sleutel ophalen

Maak een RunAPI-account aan en genereer een sleutel vanuit het dashboard. Sleutels zijn
gekoppeld aan een project, zodat u er één kunt roteren of intrekken zonder de
rest van uw configuratie te beïnvloeden.

> Bij elk nieuw account zijn gratis starttegoed inbegrepen.

## Stap 2: De SDK installeren

Kies de client voor uw programmeertaal. Elke SDK wordt geleverd met volledige typedefinities
en ingebouwde taakpolling.

```shell
pip install runapi
npm install runapi
go get github.com/runapi/runapi-go
```

## Stap 3: Uw eerste taak aanmaken

Mediageneratie verloopt asynchroon. Het indienen van een taak geeft direct een antwoord;
`task.wait()` blokkeert totdat de uitvoer gereed is.

```python
$ pip install runapi

from runapi import RunAPI

client = RunAPI()
task = client.generate(
    model="kling-v2.1",
    prompt="A cat walking on a beach",
    duration=5
)
result = task.wait()
print(result.output_url)
```

```javascript
$ npm install runapi

import RunAPI from "runapi";

const client = new RunAPI();
const task = await client.generate({
  model: "kling-v2.1",
  prompt: "A cat walking on a beach",
  duration: 5
});
const result = await task.wait();
console.log(result.outputUrl);
```

```curl
$ curl --version

curl https://runapi.ai/v1/tasks \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -d '{"model":"kling-v2.1","input":{"prompt":"A cat walking on a beach","duration":5}}'
```

```go
$ go get github.com/runapi/runapi-go

client := runapi.New()
task, _ := client.Generate(ctx, &runapi.GenerateParams{
    Model: "kling-v2.1",
    Prompt: "A cat walking on a beach",
    Duration: 5,
})
result, _ := task.Wait(ctx)
fmt.Println(result.OutputURL)
```

## Stap 4: Het resultaat controleren

De voltooide taak bevat de uitvoer-URL, de duur en de exacte kosten die
van uw saldo zijn afgeschreven.

```json
{
  "task_id": "tsk_8f21c4ba",
  "status": "completed",
  "output": {
    "url": "https://cdn.runapi.ai/v/tsk_8f21c4ba.mp4",
    "duration": 5
  },
  "cost": { "amount": 0.21, "currency": "USD" }
}
```

---

## Meer van RunAPI

- [Home](https://runapi.ai/nl/.md)
- [Modelcatalogus](https://runapi.ai/nl/models.md)
- [Prijzen](https://runapi.ai/nl/pricing.md)
- [Providers](https://runapi.ai/nl/models)
- [Documentatie](https://runapi.ai/nl/docs/guides)
- [SDK's](https://runapi.ai/nl/sdk.md)
- [CLI](https://runapi.ai/nl/cli.md)
- [MCP Server](https://runapi.ai/nl/mcp.md)
- [Claude Code vs Cursor](https://runapi.ai/nl/claude-code-vs-cursor.md)
- [Cursor API instellen](https://runapi.ai/nl/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/nl/openrouter-alternative.md)
- [Enterprise](https://runapi.ai/nl/contact.md)
- [Contact](https://runapi.ai/nl/contact.md)
- [Voorwaarden](https://runapi.ai/nl/terms.md)
- [Privacy](https://runapi.ai/nl/privacy.md)
- [Site-index voor agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Gestructureerde gegevens

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/nl",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/nl/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/nl",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/nlicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "TechArticle",
    "headline": "Snelstart",
    "description": "Zet uw eerste AI-generatie op gang in minder dan 5 minuten.",
    "url": "https://runapi.ai/nl/docs/guides/quickstart",
    "mainEntityOfPage": "https://runapi.ai/nl/docs/guides/quickstart"
  }
]
```
