API Get key

YouTube

Glow-up Series

An animated series in your language where your audience votes what changes each day

From
216 crper ad
Endpoint
POST /api/v1/studio/glowup/runs
Workflow id
glowup

Real outputs of this workflow.

The request

# 1. Price it. Free, nothing is charged.
PRICE=$(curl -s -X POST https://staglight.ai/api/v1/studio/glowup/estimate \
  -H "Authorization: Bearer $STAGLIGHT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "card": "episode"
  }' | jq .credits)
echo "$PRICE"

# 2. Start it. max_credits refuses anything above that price; the Idempotency-Key stops a double charge.
START=$(curl -s -X POST https://staglight.ai/api/v1/studio/glowup/runs \
  -H "Authorization: Bearer $STAGLIGHT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "card": "episode",
    "max_credits": '"$PRICE"'
  }')

ID=$(echo "$START" | jq -r .id)

# 3. Wait until it finishes.
while :; do
  STATUS=$(curl -s "https://staglight.ai/api/v1/studio/glowup/runs/$ID" -H "Authorization: Bearer $STAGLIGHT_API_KEY" | jq -r .status)
  case "$STATUS" in succeeded|partial|failed) break ;; esac; sleep 10
done

# 4. Download every file in one zip.
curl -s -L -o result.zip "https://staglight.ai/api/v1/studio/glowup/runs/$ID/outputs.zip" -H "Authorization: Bearer $STAGLIGHT_API_KEY"

What it costs

TemplateFinal: 1080p
Series episode216 cr
Your own script-

Prices from the server at the default settings. The estimate call gives the exact price for your inputs, for free.

Inputs

NameTypeAllowed
cardrequiredThe template string episode, custom
inputs.scriptYour script string
inputs.planStoryboard string
inputs.lead_nameMain character string
inputs.second_nameSecond character string
inputs.herorequiredHero's name string
inputs.crushrequiredName of the person he wants to impress string
inputs.hero_lookHow the main character looks enum brayan, valeria, abuela, jefe, profe, influencer, deportista, estudiante
inputs.crush_lookHow the second character looks enum brayan, valeria, abuela, jefe, profe, influencer, deportista, estudiante
inputs.winnersWinners so far, in order string
inputs.ideaYour story idea (optional) string
inputs.languageLanguage enum auto, en, es
inputs.voiceNarrator voice enum TX3LPaxmHKxFdv7VOQHJ, qXpMhyvQqiRxWQs4qSSB, N2lVS1w4EtoT3dr4eOWO, kPzsL2i3teMYv0FxEYQ6, FGY2WhTYpPnrIDTdsKH5, BZgkqPqms7Kj9ulSkVzn
inputs.musicBackground music enum original, bounce, dark, soft, party
inputs.ageHero's age int
inputs.yearClass year int
inputs.lookLook number int
inputs.writtenWritten episode string
qualityQuality enum final
aspectShape enum 9:16

Files are media ids from POST /api/v1/uploads. View documentation

Try it by hand

The same workflow runs in the studio, on the same balance. Use it to see the result before you write code.

Sign up to try it

More workflows