Loading…
Create a prediction, get the result, integrate it.
Request a FounderHooks API key to call model capabilities through one stable interface.
FounderHooks accepts a model and input payload, creates a prediction, and returns a standard response shape.
Language and voice models often benefit from streaming. The platform UX should treat streaming as a first-class product surface, not a hidden SDK detail.
For video, image batches, or multi-step runs, webhook delivery becomes the default integration surface. FounderHooks keeps the webhook pattern obvious in both docs and example code.
curl -s -X POST https://www.founderhooks.com/api/v1/predictions \
-H "Authorization: Bearer $FOUNDERHOOKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "black-forest-labs/flux-schnell",
"input": {
"prompt": "Generate a polished product visual for an AI platform homepage"
},
"wait": 10
}'const response = await fetch("https://www.founderhooks.com/api/v1/predictions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FOUNDERHOOKS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "black-forest-labs/flux-schnell",
input: {
"prompt": "Generate a polished product visual for an AI platform homepage"
},
wait: 10,
}),
});
const prediction = await response.json();Confirm that your account has access, the model accepts your input and the pricing fits your expected volume. Keep credentials on your server, validate inputs and handle pending, successful and failed jobs explicitly. Follow the API examples on this page rather than assuming another provider’s schema is compatible.
First check whether the original request created a job. Store any returned prediction ID and inspect its status before submitting again. A timeout does not prove that a job was rejected; a second accepted request may run again and consume additional usage.
Current pricing and usage · Related models and documentation