9mo

API key required. Sign up for an Ouro account and create an API key to get started.

  • POST /image-to-video

    Generate a short video from an image

    Parameters

    ouro-user-id

    string in header

    Request body

    file

    objectRequired

    id

    url

    stringRequired

    name

    type

    stringRequired

    filename

    stringRequired

    description

    seed

    integerDefaults to 42

    A seed value to use for the video generation.

    const url = 'https://api.ouro.foundation/routes/mmoderwell/image-to-video';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "file": {
        "url": "example_string",
        "type": "example_string",
        "filename": "example_string"
      },
      "seed": 42
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));