---
title: Démarrage rapide | RunAPI
description: Lancez votre première génération d'IA en moins de 5 minutes.
url: https://runapi.ai/fr/docs/guides/quickstart.md
canonical: https://runapi.ai/fr/docs/guides/quickstart
locale: fr
---

> Version HTML: https://runapi.ai/fr/docs/guides/quickstart
> Index du site pour les agents: https://runapi.ai/llms.txt

# Démarrage rapide

## Étape 1 : Obtenir une Clé API

Créez un compte RunAPI et générez une clé depuis le tableau de bord. Les clés sont
limitées par projet, vous pouvez donc en effectuer la rotation ou en révoquer une sans toucher au
reste de votre configuration.

> Des crédits de démarrage gratuits sont inclus avec chaque nouveau compte.

## Étape 2 : Installer le SDK

Choisissez le client pour votre langage. Chaque SDK est livré avec des définitions de types complètes
et une interrogation de tâche intégrée.

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

## Étape 3 : Créer votre première tâche

La génération de médias est asynchrone. La soumission d'une tâche retourne immédiatement ;
`task.wait()` bloque jusqu'à ce que la sortie soit prête.

```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)
```

## Étape 4 : Vérifier le résultat

La tâche terminée contient l'URL de sortie, la durée et le coût exact
déduit de votre solde.

```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" }
}
```

---

## Plus de ressources de RunAPI

- [Accueil](https://runapi.ai/fr/.md)
- [Catalogue de modèles](https://runapi.ai/fr/models.md)
- [Tarifs](https://runapi.ai/fr/pricing.md)
- [Fournisseurs](https://runapi.ai/fr/models)
- [Documentation](https://runapi.ai/fr/docs/guides)
- [SDK](https://runapi.ai/fr/sdk.md)
- [CLI](https://runapi.ai/fr/cli.md)
- [Serveur MCP](https://runapi.ai/fr/mcp.md)
- [Claude Code vs Cursor](https://runapi.ai/fr/claude-code-vs-cursor.md)
- [Configuration de l’API Cursor](https://runapi.ai/fr/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/fr/openrouter-alternative.md)
- [Entreprise](https://runapi.ai/fr/contact.md)
- [Contact](https://runapi.ai/fr/contact.md)
- [Conditions](https://runapi.ai/fr/terms.md)
- [Confidentialité](https://runapi.ai/fr/privacy.md)
- [Index du site pour les agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Données structurées

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "fr",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/fr",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/fr/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "fr",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/fr",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/fricon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "fr",
    "@type": "TechArticle",
    "headline": "Démarrage rapide",
    "description": "Lancez votre première génération d'IA en moins de 5 minutes.",
    "url": "https://runapi.ai/fr/docs/guides/quickstart",
    "mainEntityOfPage": "https://runapi.ai/fr/docs/guides/quickstart"
  }
]
```
