---
title: LTX Video audio naar video | RunAPI
description: Genereer video uit audio met LTX 2.5 Fast, met een optionele bronafbeelding.
url: https://runapi.ai/nl/docs/api/ltx-video/audio-to-video.md
canonical: https://runapi.ai/nl/docs/api/ltx-video/audio-to-video
locale: nl
---

> HTML-versie: https://runapi.ai/nl/docs/api/ltx-video/audio-to-video
> Site-index voor agents: https://runapi.ai/llms.txt

# LTX Video audio naar video

## Overzicht

Gebruik het audio to video-eindpunt met een ondersteund model. Gebruik de geretourneerde Task ID om de status op te halen, of geef callback_url op voor de hieronder gedocumenteerde leveringen.

### Snelstart

1. Maak een API-sleutel aan en stel deze in als RUNAPI_API_KEY.
2. Kies een ondersteund model en stuur een POST-verzoek waarvan de body overeenkomt met het schema van dat model.
3. Sla de geretourneerde taak-ID op en poll vervolgens totdat een eindstatus is bereikt, of verwerk de hieronder gedocumenteerde callbacks.

## Eindpunt

POST /api/v1/ltx_video/audio_to_video

Basis-URL: https://runapi.ai

API-versie: v1

Authenticatie: Authorization: Bearer YOUR_API_TOKEN

## Ondersteunde modellen

Open een modelpagina voor actuele prijzen, snelheidslimieten en details over commercieel gebruik.

- [ltx-2.5-fast-audio-to-video](https://runapi.ai/nl/models/ltx-video/ltx-2.5-fast-audio-to-video)

## Verzoekschema

Velden en toegestane waarden zijn afhankelijk van het geselecteerde model. Indien opgegeven, ontvangt callback_url de hieronder gedocumenteerde taakaflevering.

### ltx-2.5-fast-audio-to-video

```json
{
  "callback_url": {
    "description": "RunAPI-callback-URL voor het definitieve taakresultaat.",
    "type": "string"
  },
  "duration_seconds": {
    "description": "Optionele uitvoerduur in seconden, ook met decimalen. Mag de duur van de bronaudio niet overschrijden. Laat weg om de audioduur te volgen, met een maximum van 20 seconden of 10 seconden bij 1440p of 48/50 fps. De afrekening wordt berekend op basis van de uitvoervideo tot op 0.01 seconde. De provider vermeldt tegenstrijdige minimumduren van 2 en 6 seconden; daadwerkelijke acceptatie door de API is niet geverifieerd.",
    "max": 20,
    "min": 2,
    "type": "number"
  },
  "fps": {
    "default": 24,
    "description": "Frames per seconde. 48/50 fps is beperkt tot 10 seconden. De framesnelheid heeft geen invloed op de prijs per seconde.",
    "enum": [
      24,
      25,
      48,
      50
    ],
    "type": "integer"
  },
  "model": {
    "description": "Modelslug voor LTX 2.5.",
    "required": true,
    "type": "string"
  },
  "output_resolution": {
    "default": "1080p",
    "description": "Resolutie van de uitvoervideo. Fast bij 1440p is beperkt tot 10 seconden.",
    "enum": [
      "720p",
      "1080p",
      "1440p"
    ],
    "type": "string"
  },
  "prompt": {
    "description": "Videobeschrijving van 1 tot 5.000 tekens.",
    "length": true,
    "max": 5000,
    "min": 1,
    "required": true,
    "type": "string"
  },
  "seed": {
    "description": "Optionele willekeurige seed.",
    "max": 2147483647,
    "min": 0,
    "type": "integer"
  },
  "source_audio_url": {
    "description": "HTTP(S)-URL van een MP3-, WAV-, M4A-, AAC-, OGG- of FLAC-audiobestand van minstens 2 seconden en maximaal 50 MB. De provider valideert het externe bestand. De uitvoer behoudt de bijbehorende audiotrack.",
    "required": true,
    "type": "string"
  },
  "source_image_url": {
    "description": "HTTP(S)-URL van een optioneel eerste frame in JPG-, PNG- of WEBP-formaat, maximaal 10 MB. De provider valideert het externe bestand en leidt hieruit de beeldverhouding van de uitvoer af.",
    "type": "string"
  }
}
```

#### Voorwaardelijke regels

Deze vereisten zijn van toepassing wanneer alle vermelde voorwaarden overeenkomen.

- **Wanneer**: `model` = `ltx-2.5-fast-audio-to-video`; **Niet geaccepteerd**: `aspect_ratio`

## Acceptatie aanmaken

HTTP 202 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "processing"
      ],
      "type": "string"
    },
    "task_replayed": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "status"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "id": "tsk_reference_demo",
  "status": "processing"
}
```

## Pollen bezig

HTTP 200 - GET /api/v1/ltx_video/audio_to_video/:id

### Responsschema

```json
{
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "processing"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "status"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "id": "tsk_reference_demo",
  "status": "processing"
}
```

## Pollen voltooid

HTTP 200 - GET /api/v1/ltx_video/audio_to_video/:id

### Responsschema

```json
{
  "properties": {
    "first_frame_image_url": {
      "type": "string",
      "x-runapi-generated-media": true
    },
    "id": {
      "type": "string"
    },
    "last_frame_image_url": {
      "type": "string",
      "x-runapi-generated-media": true
    },
    "status": {
      "enum": [
        "completed"
      ],
      "type": "string"
    },
    "usage": {
      "properties": {
        "cost": {
          "type": "number"
        }
      },
      "required": [
        "cost"
      ],
      "type": "object",
      "unevaluatedProperties": false
    },
    "videos": {
      "items": {
        "properties": {
          "url": {
            "type": "string",
            "x-runapi-generated-media": true
          }
        },
        "required": [
          "url"
        ],
        "type": "object",
        "unevaluatedProperties": false
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "status",
    "videos",
    "usage"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "id": "tsk_reference_demo",
  "status": "completed",
  "usage": {
    "cost": 0.05
  },
  "videos": [
    {
      "url": "https://file.runapi.ai/reference-video.mp4"
    }
  ]
}
```

## Pollen mislukt

HTTP 200 - GET /api/v1/ltx_video/audio_to_video/:id

### Responsschema

```json
{
  "properties": {
    "error": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "failed"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "status",
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Task processing failed.",
  "id": "tsk_reference_demo",
  "status": "failed"
}
```

## Callback van klant: voltooid

HTTP 200 - POST callback_url

### Responsschema

```json
{
  "properties": {
    "first_frame_image_url": {
      "type": "string",
      "x-runapi-generated-media": true
    },
    "id": {
      "type": "string"
    },
    "last_frame_image_url": {
      "type": "string",
      "x-runapi-generated-media": true
    },
    "status": {
      "enum": [
        "completed"
      ],
      "type": "string"
    },
    "usage": {
      "properties": {
        "cost": {
          "type": "number"
        }
      },
      "required": [
        "cost"
      ],
      "type": "object",
      "unevaluatedProperties": false
    },
    "videos": {
      "items": {
        "properties": {
          "url": {
            "type": "string",
            "x-runapi-generated-media": true
          }
        },
        "required": [
          "url"
        ],
        "type": "object",
        "unevaluatedProperties": false
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "status",
    "videos",
    "usage"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "id": "tsk_reference_demo",
  "status": "completed",
  "usage": {
    "cost": 0.05
  },
  "videos": [
    {
      "url": "https://file.runapi.ai/reference-video.mp4"
    }
  ]
}
```

## Callback van klant: mislukt

HTTP 200 - POST callback_url

### Responsschema

```json
{
  "properties": {
    "error": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "properties": {
            "code": {
              "type": "string"
            },
            "limit_cents": {
              "type": "integer"
            },
            "message": {
              "type": "string"
            },
            "reset_at": {
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "used_cents": {
              "type": "integer"
            },
            "window": {
              "enum": [
                "1h",
                "1d",
                "7d",
                "daily",
                "weekly",
                "monthly",
                "lifetime"
              ],
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object",
          "unevaluatedProperties": false
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "failed"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "status",
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": {
    "code": "generation_failed",
    "message": "Task processing failed."
  },
  "id": "tsk_reference_demo",
  "status": "failed"
}
```

## Fouten

HTTP 401 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Authentication required"
}
```

## Fouten

HTTP 401 - GET /api/v1/ltx_video/audio_to_video/:id

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Authentication required"
}
```

## Fouten

HTTP 400 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "oneOf": [
    {
      "properties": {
        "error": {
          "description": "Leesbare foutmelding.",
          "type": "string"
        }
      },
      "required": [
        "error"
      ],
      "type": "object",
      "unevaluatedProperties": false
    },
    {
      "properties": {
        "error": {
          "description": "Leesbare validatiesamenvatting.",
          "type": "string"
        },
        "errors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Validatieberichten gekoppeld aan het openbare aanvraagveld, met een reeks leesbare tekenreeksen per veld.",
          "type": "object"
        }
      },
      "required": [
        "error",
        "errors"
      ],
      "type": "object",
      "unevaluatedProperties": false
    }
  ]
}
```

### Responsvoorbeeld

```json
{
  "error": "model must be one of: ltx-2.5-fast-audio-to-video"
}
```

## Fouten

HTTP 402 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Insufficient balance"
}
```

## Fouten

HTTP 429 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "API key credit limit exceeded"
}
```

## Fouten

HTTP 409 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "The request uses features that are not supported for the selected model"
}
```

## Fouten

HTTP 429 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Rate limit reached. Please retry later."
}
```

## Fouten

HTTP 503 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Service under maintenance, please try again later"
}
```

## Fouten

HTTP 503 - POST /api/v1/ltx_video/audio_to_video

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "The request timed out"
}
```

## Fouten

HTTP 404 - GET /api/v1/ltx_video/audio_to_video/:id

### Responsschema

```json
{
  "properties": {
    "error": {
      "description": "Leesbare foutmelding.",
      "type": "string"
    }
  },
  "required": [
    "error"
  ],
  "type": "object",
  "unevaluatedProperties": false
}
```

### Responsvoorbeeld

```json
{
  "error": "Task with id 'tsk_reference_demo' not found"
}
```

## Gegenereerde codevoorbeelden

Gebruik cURL rechtstreeks, of installeer een SDK voor uw taal. Elk voorbeeld dient het gevalideerde verzoek in dat in deze referentie wordt getoond.

### curl

```curl
curl -X POST https://runapi.ai/api/v1/ltx_video/audio_to_video \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"model":"ltx-2.5-fast-audio-to-video","prompt":"A natural speaking portrait.","source_audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3","output_resolution":"720p","duration_seconds":2.01,"fps":24}'
```

### javascript

#### Installeren

```bash
npm install @runapi.ai/ltx-video
```

```javascript
import { LtxVideoClient } from "@runapi.ai/ltx-video";

const client = new LtxVideoClient({ apiKey: process.env.RUNAPI_API_KEY });
const task = await client.audioToVideo.create({
  "model": "ltx-2.5-fast-audio-to-video",
  "prompt": "A natural speaking portrait.",
  "source_audio_url": "https://cdn.runapi.ai/public/samples/voice.mp3",
  "output_resolution": "720p",
  "duration_seconds": 2.01,
  "fps": 24
});
```

### python

#### Installeren

```bash
pip install runapi-ltx-video
```

```python
import os
from runapi.ltx_video import LtxVideoClient

client = LtxVideoClient(api_key=os.environ["RUNAPI_API_KEY"])
task = client.audio_to_video.create(
  model="ltx-2.5-fast-audio-to-video",
  prompt="A natural speaking portrait.",
  source_audio_url="https://cdn.runapi.ai/public/samples/voice.mp3",
  output_resolution="720p",
  duration_seconds=2.01,
  fps=24
)
```

### go

#### Installeren

```bash
go get github.com/runapi-ai/ltx-video-sdk/go@latest
```

```go
package main

import (
  "context"
  "log"
  "os"

  "github.com/runapi-ai/core-sdk/go/option"
  ltxvideo "github.com/runapi-ai/ltx-video-sdk/go/ltxvideo"
)

func main() {
  client, err := ltxvideo.NewClient(option.WithAPIKey(os.Getenv("RUNAPI_API_KEY")))
  if err != nil {
    log.Fatal(err)
  }

  task, err := client.AudioToVideo.Create(context.Background(), ltxvideo.AudioToVideoParams{
    Model: ltxvideo.AudioToVideoModel("ltx-2.5-fast-audio-to-video"),
    Prompt: "A natural speaking portrait.",
    SourceAudioURL: "https://cdn.runapi.ai/public/samples/voice.mp3",
    OutputResolution: "720p",
    DurationSeconds: func(value float64) *float64 { return &value }(2.01),
    FPS: func(value int) *int { return &value }(24),
  })
  if err != nil {
    log.Fatal(err)
  }
  _ = task
}
```

### ruby

#### Installeren

```bash
gem install runapi-ltx-video
```

```ruby
require "runapi/ltx_video"

client = RunApi::LtxVideo::Client.new(api_key: ENV.fetch("RUNAPI_API_KEY"))
task = client.audio_to_video.create(
  model: "ltx-2.5-fast-audio-to-video",
  prompt: "A natural speaking portrait.",
  source_audio_url: "https://cdn.runapi.ai/public/samples/voice.mp3",
  output_resolution: "720p",
  duration_seconds: 2.01,
  fps: 24
)
```

### java

#### Installeren

```kotlin
implementation("ai.runapi:runapi-ltx-video")
```

```java
import ai.runapi.ltxvideo.LtxVideoClient;
import ai.runapi.ltxvideo.types.AudioToVideoParams;
import ai.runapi.core.polling.TaskCreateResponse;

public final class Example {
  public static void main(String[] args) {
    LtxVideoClient client = LtxVideoClient.builder()
        .apiKey(System.getenv("RUNAPI_API_KEY"))
        .build();
    TaskCreateResponse task = client.audioToVideo().create(
        AudioToVideoParams.builder()
        .model("ltx-2.5-fast-audio-to-video")
        .prompt("A natural speaking portrait.")
        .sourceAudioUrl("https://cdn.runapi.ai/public/samples/voice.mp3")
        .outputResolution("720p")
        .durationSeconds(2.01)
        .fps(24)
            .build()
    );
  }
}
```

### php

#### Installeren

```bash
composer require runapi-ai/ltx-video
```

```php
<?php

require __DIR__ . '/vendor/autoload.php';

use RunApi\Core\ClientOptions;
use RunApi\LtxVideo\LtxVideoClient;

$client = new LtxVideoClient(new ClientOptions(apiKey: getenv('RUNAPI_API_KEY')));
$task = $client->audioToVideo->create([
  "model" => "ltx-2.5-fast-audio-to-video",
  "prompt" => "A natural speaking portrait.",
  "source_audio_url" => "https://cdn.runapi.ai/public/samples/voice.mp3",
  "output_resolution" => "720p",
  "duration_seconds" => 2.01,
  "fps" => 24
]);
```

## Gerelateerde handleidingen

- [Authenticatie](https://runapi.ai/nl/docs/guides/authentication.md)
- [Snelstart](https://runapi.ai/nl/docs/guides/task-api/quickstart.md)

---

## 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)
- [Promptgalerij](https://runapi.ai/nl/prompts.md)
- [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)
- [x402](https://runapi.ai/nl/x402.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)
- [Verwijzingsprogramma](https://runapi.ai/nl/referral-program.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/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "nl",
    "@type": "TechArticle",
    "headline": "LTX Video audio naar video",
    "description": "Genereer video uit audio met LTX 2.5 Fast, met een optionele bronafbeelding.",
    "url": "https://runapi.ai/nl/docs/api/ltx-video/audio-to-video",
    "mainEntityOfPage": "https://runapi.ai/nl/docs/api/ltx-video/audio-to-video"
  }
]
```
