Is flux-1-schnell cheaper on cloudflare in comparision to fal?
Is flux-1-schnell cheaper on cloudflare in comparision to fal?

curl and when it does implement it inside the worker. Example request that works for me ->messages, in doubt ask any chatbot website to format this correctly for you.




response property), it may not work. LLMs are trained to generate text not JSON.jq is happy so should any JSON parsercurlmessagesresponsejqcurl -X POST \
https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/run/@cf/meta/llama-3-8b-instruct \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a friendly assistant that helps write stories"
},
{
"role": "user",
"content": "Write a short story about a llama that goes on a journey to find an orange cloud "
}
]
}' \
| jq