logo
RunComfy
  • ComfyUI
  • EntraîneurNouveau
  • Modèles
  • API
  • Tarification
discord logo
MODÈLES
Explorer
Tous les modèles
BIBLIOTHÈQUE
Générations
APIS DE MODÈLES
Documentation API
Clés API
COMPTE
Utilisation

LTX 2 Pro Text-to-Video : 1080p–2160p et audio | RunComfy

ltx/ltx-2/pro/text-to-video

Générez une vidéo à partir de texte en 1080p–2160p, sur 6–10 secondes, à 25 ou 50 FPS, au format 16:9 fixe et avec un son facultatif.

Table des matières

1. Démarrage2. Authentification3. Référence APISoumettre une requêteStatut de la requêteRécupérer les résultatsAnnuler une requête4. Fichiers en entréeFichier hébergé (URL)5. SchémaSchéma d'entréeSchéma de sortie

1. Démarrage

Utilisez l'API RunComfy pour exécuter ltx/ltx-2/pro/text-to-video. Pour les entrées et sorties acceptées, voir le schéma.

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/ltx/ltx-2/pro/text-to-video \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
  }'

2. Authentification

Définissez la variable d'environnement YOUR_API_TOKEN avec votre clé API (gestion dans Profil) et incluez à chaque requête un jeton Bearer dans l'en-tête Authorization : Authorization: Bearer $YOUR_API_TOKEN.

3. Référence API

Soumettre une requête

Soumettez une tâche de génération asynchrone et recevez immédiatement un request_id ainsi que des URLs pour le statut, les résultats et l'annulation.

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/ltx/ltx-2/pro/text-to-video \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
  }'

Statut de la requête

Récupère l'état actuel pour un request_id (« in_queue », « in_progress », « completed » ou « cancelled »).

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
  --header "Authorization: Bearer <token>"

Récupérer les résultats

Récupère les sorties finales et métadonnées pour le request_id ; si le travail n'est pas terminé, la réponse indique l'état actuel pour poursuivre le polling.

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
  --header "Authorization: Bearer <token>"

Annuler une requête

Annule un travail en file d'attente via request_id ; les travaux en cours ne peuvent pas être annulés.

curl --request POST \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
  --header "Authorization: Bearer <token>"

4. Fichiers en entrée

Fichier hébergé (URL)

Fournissez une URL HTTPS accessible publiquement. L'hôte doit autoriser les récupérations côté serveur (sans login/cookies), sans limitation de débit ni blocage des bots. Recommandé : images ≤ 50 Mo (~4K), vidéos ≤ 100 Mo (~2–5 min en 720p). Préférez des URL stables ou pré-signées pour les actifs privés.

5. Schéma

Schéma d'entrée

{
  "type": "object",
  "title": "Schéma d'entrée",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "title": "Prompt",
      "description": "Instruction requise décrivant le sujet, l’action, l’environnement, le style visuel et le mouvement de la caméra.",
      "type": "string",
      "default": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
    },
    "duration": {
      "title": "Durée",
      "description": "Durée de la vidéo en secondes. Les valeurs exactes sont 6, 8 et 10.",
      "type": "integer",
      "enum": [
        6,
        8,
        10
      ],
      "default": 6
    },
    "resolution": {
      "title": "Résolution",
      "description": "Résolution de sortie. Les valeurs exactes sont `1080p`, `1440p` et `2160p`.",
      "type": "string",
      "enum": [
        "1080p",
        "1440p",
        "2160p"
      ],
      "default": "1080p"
    },
    "aspect_ratio": {
      "title": "Format d’image (L:H)",
      "description": "Rapport hauteur/largeur de sortie. La seule valeur prise en charge est `16:9`.",
      "type": "string",
      "enum": [
        "16:9"
      ],
      "default": "16:9"
    },
    "fps": {
      "title": "Images par seconde",
      "description": "Fréquence d'images de sortie. Les valeurs exactes sont 25 et 50 FPS.",
      "type": "integer",
      "enum": [
        25,
        50
      ],
      "default": 25
    },
    "generate_audio": {
      "title": "Générer l’audio",
      "description": "Indique si un son doit être généré avec la vidéo. Ce booléen vaut `true` par défaut.",
      "type": "boolean",
      "default": true
    }
  }
}

Schéma de sortie

{
  "output": {
    "type": "object",
    "properties": {
      "image": {
        "type": "string",
        "format": "uri",
        "description": "URL d'une seule image"
      },
      "video": {
        "type": "string",
        "format": "uri",
        "description": "URL d'une seule vidéo"
      },
      "images": {
        "type": "array",
        "description": "plusieurs URLs d'images",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "videos": {
        "type": "array",
        "description": "plusieurs URLs de vidéos",
        "items": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
Suivez-nous
  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
Support
  • Discord
  • Email
  • État du système
  • affilié
Modèles vidéo
  • MiniMax H3 Open
  • FLUX 3 Image to Video
  • MiniMax H3 Open Image to Video
  • Wan 2.6 Flash
  • Happy Horse 1.1 reference to video
  • Seedance 1.5 Pro Text to Video
  • Voir tous les modèles →
Modèles d'images
  • Seedream 5.0 Pro Image Edit
  • Flux 2 Flash Edit
  • Nano Banana Pro
  • seedream 4.0
  • GPT Image 2
  • Qwen Image Edit 2511 LoRA
  • Voir tous les modèles →
Légal
  • Conditions d'utilisation
  • Politique de confidentialité
  • Politique relative aux cookies
RunComfy
Droits d'auteur 2026 RunComfy. Tous droits réservés.

RunComfy est la première ComfyUI plateforme, offrant des ComfyUI en ligne environnement et services, ainsi que des workflows ComfyUI proposant des visuels époustouflants. RunComfy propose également AI Models, permettant aux artistes d'utiliser les derniers outils d'IA pour créer des œuvres d'art incroyables.