Quickstart
From sign-up to your first generated file in a few minutes.
1. Create an account
Sign in with Google, GitHub or your email (with email, we send you a sign-in link, no password). Your account is created right away. There's no subscription or monthly fee: you only pay for what you generate.
2. Add balance
Your balance is prepaid, in US dollars, and you top it up by card on the site. Every request shows its price before it runs, and you're only charged once the result is ready. If a generation fails, nothing is charged.
3. Create a key
Keys start with wf_live_ and work for every model. Store yours in an environment variable on your server, such as WIZZYFLOW_API_KEY. See Authentication for more.
4. Make your first request
This example generates an image with wizzyflow/flux-schnell, one of the cheapest models. Requests are asynchronous: submitting returns an ID, and your code polls for the result until it's ready.
# 1. Send the request and keep the ID
ID=$(curl -s https://api.wizzyflow.ai/api/v3/wizzyflow/flux-schnell \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A lighthouse at sunset, in watercolor"
}' | jq -r '.data.id')
# 2. Poll every 2 seconds until it's done
while true; do
RES=$(curl -s https://api.wizzyflow.ai/api/v3/predictions/$ID/result \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY")
STATUS=$(echo "$RES" | jq -r '.data.status')
case "$STATUS" in completed|failed|timeout) break ;; esac
sleep 2
done
# 3. The outputs (URLs) and the price charged
echo "$RES" | jq '.data | {status, outputs, price, error}'The submit response, right away:
{
"code": 200,
"message": "success",
"data": {
"id": "8f1c2e4a-…",
"model": "wizzyflow/flux-schnell",
"status": "created",
"outputs": [],
"urls": { "get": "https://api.wizzyflow.ai/api/v3/predictions/8f1c2e4a-…/result" },
"price": 0.01,
"currency": "USD"
}
}When the status reaches completed, the image is in data.outputs. To use another model, change the ID in the URL and the parameters in the body: the reference for each model shows both.