Black Forest LabsAlibaba Cloud

FLUX 1.1 ProHappyHorse 1.0 I2V

Run FLUX 1.1 Pro as the image step, then pass the output URL into HappyHorse 1.0 I2V for video generation.

route packet
/api/v1/chains/runs
image_modelbfl/flux-1.1-pro
video_modelhappyhorse/1.0-i2v
ENVIRONMENT
NEXT_PUBLIC_SITE_URL=

Your custom domain.

OWNER_EMAIL=

Email allowed to login to the dashboard.

OWNER_PASSWORD=

Dashboard sign-in password.

OWNER_SESSION_SECRET=

You can use: openssl rand -hex 32.

DATABASE_URL=

Your AWS Aurora (PostgreSQL) connection string.

BABYCHAIN_API_KEY=

API key clients use in the Authorization bearer header.

BABYCHAIN_CRON_SECRET=

Secret used to authorize the queued-run recovery cron.

BABYCHAIN_CALLBACK_SECRET=

Secret used to sign callback and idempotency metadata.

BABYCHAIN_PROVIDER_MODE=byok

Provider execution mode.

BFL_API_KEY=

Black Forest Labs API key.

BFL_REGION=global

Change if you use a different region.

BFL_API_BASE_URL=https://api.bfl.ai/v1

Change if you use a different region.

DASHSCOPE_API_KEY=

Alibaba Cloud Model Studio API key.

CURL
curl --request POST \
  --url "https://babychain.babysea.live/api/v1/chains/runs" \
  --header "Authorization: Bearer $BABYCHAIN_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: your-unique-idempotency-key" \
  --data '
{
  "input": {
    "chain_models": {
      "image_model": "bfl/flux-1.1-pro",
      "video_model": "happyhorse/1.0-i2v"
    },
    "image_model_input": {
      "generation_prompt": "",
      "generation_width": 1024,
      "generation_height": 768,
      "generation_output_format": "jpeg",
      "generation_moderation": false,
      "generation_input_image_file": [
        "<string>"
      ],
      "generation_prompt_extend": false,
      "generation_seed": "<integer>"
    },
    "video_model_input": {
      "generation_prompt": "<string>",
      "generation_resolution": "1080P",
      "generation_duration": 5,
      "generation_seed": "<integer>",
      "generation_watermark": true
    }
  }
}
'
SCHEMA
execution flow

The same route starts every ordered model step.

Step 1

Run image model

FLUX 1.1 Pro

Depends on run input.

Step 2

Run video model

HappyHorse 1.0 I2V

Depends on image.

template heroes

Use this template? Submit your artwork.

Generate with this model chain, then send us the image you are proud of. Selected submissions may become the main hero artwork for this template cards.

Submit your result
Current BabyChain template card hero
default card hero
We use this image on template cards today. Send a result from this exact model chain and it can replace the default hero.