Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
!deploy/container/Dockerfile
!deploy/container/run-demo.sh
!deploy/container/provider-pilot.mjs
!deploy/cloudflare/artcraft-inference.json
!scripts/native_package.py
!scripts/compute_plugins.py
!scripts/postgres_tools.py
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/cloudflare-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Enable Storyteller-funded FLUX.1 schnell for the fal pilot
type: boolean
default: false
artcraft_inference:
description: Enable ArtCraft model presets using customer fal and Kinovi keys
type: boolean
default: false

permissions:
contents: read
Expand All @@ -30,6 +34,7 @@ jobs:
WRANGLER_VERSION: 4.170.0
WRANGLER_SEND_METRICS: "false"
TOKENCRAFT_PROVIDER_PILOT: ${{ inputs.fal_pilot }}
TOKENCRAFT_ARTCRAFT_INFERENCE: ${{ inputs.artcraft_inference }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -63,9 +68,10 @@ jobs:
read -r revision _ <<< "$remote_main"
test "$revision" = "$GITHUB_SHA"
npx --offline --yes "wrangler@$WRANGLER_VERSION" secret list --format json --config "$RUNNER_TEMP/wrangler.json" |
jq -e --arg pilot "$TOKENCRAFT_PROVIDER_PILOT" '
jq -e --arg pilot "$TOKENCRAFT_PROVIDER_PILOT" --arg artcraft "$TOKENCRAFT_ARTCRAFT_INFERENCE" '
any(.[]; .name == "TOKENCRAFT_ARTCRAFT_CLIENT_SECRET") and
($pilot != "true" or any(.[]; .name == "FAL_KEY" and .type == "secret_text"))' >/dev/null
($pilot != "true" or any(.[]; .name == "FAL_KEY" and .type == "secret_text")) and
($artcraft != "true" or any(.[]; .name == "TOKENCRAFT_PROVIDER_CREDENTIAL_KEY" and .type == "secret_text"))' >/dev/null
npx --offline --yes "wrangler@$WRANGLER_VERSION" deploy \
--config "$RUNNER_TEMP/wrangler.json" --message "TokenCraft $GITHUB_SHA"
for attempt in {1..12}; do
Expand All @@ -74,8 +80,14 @@ jobs:
bash scripts/smoke_hosted_console.sh "$PRODUCTION_ORIGIN" "$PRODUCTION_ORIGIN" \
"$GITHUB_SHA" frontend/dist/release.json
curl -fsS --max-time 15 "$PRODUCTION_ORIGIN/v1/catalog/offers" |
jq -e --arg pilot "$TOKENCRAFT_PROVIDER_PILOT" '
[.offers[].id] == (if $pilot == "true" then ["fal_flux_schnell"] else [] end)' >/dev/null
jq -e --arg pilot "$TOKENCRAFT_PROVIDER_PILOT" --arg artcraft "$TOKENCRAFT_ARTCRAFT_INFERENCE" \
--slurpfile profile deploy/cloudflare/artcraft-inference.json '
([.offers[].id] | sort) == (
(if $pilot == "true" then ["fal_flux_schnell"] else [] end) +
(if $artcraft == "true" then [$profile[0].offers[].id] else [] end) | sort
)' >/dev/null
curl -fsS --max-time 15 "$PRODUCTION_ORIGIN/catalog/artcraft-models.json" |
cmp - frontend/public/catalog/artcraft-models.json
curl -fsS --max-time 15 "$PRODUCTION_ORIGIN/v1/auth/craft" |
jq -e '.enabled == true' >/dev/null
exit 0
Expand Down
310 changes: 310 additions & 0 deletions catalog/artcraft-suppliers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,310 @@
{
"artcraft_backend_revision": "15613857ef57ef00854450fc7e16576977434d7b",
"models": {
"flux_1_dev": {
"provider": "fal",
"endpoint": "fal-ai/flux/dev"
},
"flux_1_schnell": {
"provider": "fal",
"endpoint": "fal-ai/flux/schnell"
},
"flux_pro_1p1": {
"provider": "fal",
"endpoint": "fal-ai/flux-pro/v1.1"
},
"flux_pro_1p1_ultra": {
"provider": "fal",
"endpoint": "fal-ai/flux-pro/v1.1-ultra"
},
"midjourney_7": {
"provider": "kinovi_web"
},
"midjourney_7_niji": {
"provider": "kinovi_web",
"endpoint": "midjourney-v7-niji"
},
"midjourney_8": {
"provider": "kinovi_web",
"endpoint": "midjourney-v8"
},
"nano_banana": {
"provider": "fal",
"endpoint": "fal-ai/nano-banana"
},
"nano_banana_2": {
"provider": "fal",
"endpoint": "fal-ai/nano-banana-2"
},
"nano_banana_pro": {
"provider": "fal",
"endpoint": "fal-ai/nano-banana-pro"
},
"gpt_image_1": {
"provider": "fal",
"endpoint": "fal-ai/gpt-image-1/text-to-image"
},
"gpt_image_1p5": {
"provider": "fal",
"endpoint": "fal-ai/gpt-image-1.5"
},
"gpt_image_2": {
"provider": "fal",
"endpoint": "openai/gpt-image-2"
},
"gpt_image_2p5_flare": {
"provider": "fal",
"endpoint": "openai/gpt-image-2.5/flare/text-to-image"
},
"gpt_image_2p5_sunburst": {
"provider": "fal",
"endpoint": "openai/gpt-image-2.5/sunburst/text-to-image"
},
"seedream_4": {
"provider": "fal",
"endpoint": "fal-ai/bytedance/seedream/v4/text-to-image"
},
"seedream_4p5": {
"provider": "fal",
"endpoint": "fal-ai/bytedance/seedream/v4.5/text-to-image"
},
"seedream_5_lite": {
"provider": "fal",
"endpoint": "fal-ai/bytedance/seedream/v5/lite/text-to-image"
},
"seedream_5p0_pro": {
"provider": "kinovi_web",
"endpoint": "seedream-5.0-pro"
},
"seedream_5p0_pro_u": {
"provider": "kinovi_web"
},
"flux_3": {
"provider": "fal",
"endpoint": "blackforestlabs/flux-3/text-to-video"
},
"flux_3_draft": {
"provider": "fal",
"endpoint": "blackforestlabs/flux-3/text-to-video/draft"
},
"grok_imagine_video": {
"provider": "xai",
"endpoint": "grok-imagine-video"
},
"grok_imagine_video_1p5": {
"provider": "xai",
"endpoint": "grok-imagine-video-1.5"
},
"happy_horse_1p0": {
"provider": "kinovi_web"
},
"kling_1p6_pro": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v1.6/pro/text-to-video"
},
"kling_2p5_turbo_pro": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v2.5-turbo/pro/text-to-video"
},
"kling_2p6_pro": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v2.6/pro/text-to-video"
},
"kling_2p1_pro": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v2.1/pro/image-to-video"
},
"kling_2p1_master": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v2.1/master/image-to-video"
},
"kling_3p0_pro": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v3/pro/text-to-video"
},
"kling_3p0_standard": {
"provider": "fal",
"endpoint": "fal-ai/kling-video/v3/standard/text-to-video"
},
"minimax_h3": {
"provider": "fal",
"endpoint": "minimax/h3/text-to-video"
},
"seedance_1p0_lite": {
"provider": "fal",
"endpoint": "fal-ai/bytedance/seedance/v1/lite/image-to-video"
},
"seedance_1p5_pro": {
"provider": "fal",
"endpoint": "fal-ai/bytedance/seedance/v1.5/pro/text-to-video"
},
"seedance_2p0": {
"provider": "kinovi_web",
"endpoint": "seedance-20"
},
"seedance_2p0_fast": {
"provider": "kinovi_web",
"endpoint": "seedance2-fast"
},
"seedance_2p0_bp": {
"provider": "kinovi_web"
},
"seedance_2p0_bp_fast": {
"provider": "kinovi_web"
},
"seedance_2p0_bpu": {
"provider": "kinovi_web"
},
"seedance_2p0_bpu_fast": {
"provider": "kinovi_web"
},
"seedance_2p0_mini": {
"provider": "kinovi_web",
"endpoint": "seedance2.0-mini"
},
"seedance_2p0_bp_mini": {
"provider": "kinovi_web"
},
"seedance_2p0_bpu_mini": {
"provider": "kinovi_web"
},
"seedance_2p5": {
"provider": "kinovi_web",
"endpoint": "seedance2-5"
},
"seedance_2p5_u": {
"provider": "kinovi_web"
},
"seedance_2p5_preview": {
"provider": "kinovi_web"
},
"sora_2": {
"provider": "fal",
"endpoint": "fal-ai/sora-2/text-to-video"
},
"sora_2_pro": {
"provider": "fal",
"endpoint": "fal-ai/sora-2/text-to-video/pro"
},
"veo_2": {
"provider": "fal",
"endpoint": "fal-ai/veo2"
},
"veo_3": {
"provider": "fal",
"endpoint": "fal-ai/veo3"
},
"veo_3_fast": {
"provider": "fal",
"endpoint": "fal-ai/veo3/fast"
},
"veo_3p1": {
"provider": "fal",
"endpoint": "fal-ai/veo3.1"
},
"veo_3p1_fast": {
"provider": "fal",
"endpoint": "fal-ai/veo3.1/fast"
},
"veo_3p1_lite": {
"provider": "fal",
"endpoint": "fal-ai/veo3.1/lite"
},
"vidu_q3": {
"provider": "fal",
"endpoint": "fal-ai/vidu/q3/text-to-video"
},
"vidu_q3_turbo": {
"provider": "fal",
"endpoint": "fal-ai/vidu/q3/text-to-video/turbo"
},
"wan_3p0": {
"provider": "kinovi_web",
"endpoint": "wan3.0-text-to-video"
},
"wan_3p0_prime": {
"provider": "kinovi_web",
"endpoint": "wan3.0-prime-text-to-video"
},
"suno_music": {
"provider": "kinovi_web"
},
"suno_remix": {
"provider": "kinovi_web"
},
"suno_sounds": {
"provider": "kinovi_web"
},
"suno_sample": {
"provider": "kinovi_web"
},
"seed_audio_1p0": {
"provider": "fal",
"endpoint": "bytedance/seed-audio-1.0"
},
"hunyuan_3d_2p0": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan3d/v2"
},
"hunyuan_3d_2p1": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan3d-v21"
},
"hunyuan_3d_3": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan3d-v3/text-to-3d"
},
"hunyuan_3d_3_sketch": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan3d-v3/sketch-to-3d"
},
"hunyuan_3d_3p1_pro": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan-3d/v3.1/pro/text-to-3d"
},
"hunyuan_3d_3p1_rapid": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan-3d/v3.1/rapid/text-to-3d"
},
"hunyuan_3d_3p1_part": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan-3d/v3.1/part"
},
"hunyuan_3d_3p1_topology": {
"provider": "fal",
"endpoint": "fal-ai/hunyuan-3d/v3.1/smart-topology"
},
"tripo3d_h3p1": {
"provider": "fal",
"endpoint": "tripo3d/h3.1/text-to-3d"
},
"meshy_v6": {
"provider": "fal",
"endpoint": "fal-ai/meshy/v6/text-to-3d"
},
"rodin_2p5_fast": {
"provider": "fal",
"endpoint": "fal-ai/hyper3d/rodin/v2.5/text-to-3d/fast"
},
"marble_1p0": {
"provider": "world_labs",
"endpoint": "marble-1.0"
},
"marble_1p0_draft": {
"provider": "world_labs",
"endpoint": "marble-1.0-draft"
},
"marble_1p1": {
"provider": "world_labs",
"endpoint": "marble-1.1"
},
"marble_1p1_plus": {
"provider": "world_labs",
"endpoint": "marble-1.1-plus"
},
"triposplat": {
"provider": "fal",
"endpoint": "tripo3d/triposplat"
}
}
}
Loading
Loading