i use Workes AI and i don't specify any model
i use Workes AI and i don't specify any model
/completions, /chat/completions) for new models (Eg: gpt-oss-20b)?
runWithTools support gateway configuration?@cf/tomarkdown / @cf/markdown using the AI Gateway?
"p" property represents when streaming results back from @cf/google/gemma-3-12b-it ? I can't find any docs on it

llama-4 and gpt-oss-120b response in provided JSON schema. But keep it mind that schema Must well defined and emphasize in your prompt that use JSON schema.
gpt-oss-120b, 10000/1000000*0.35 + 1000/1000000*0.75 = $0.00425/request100/1000000*0.35 + 100/1000000*0.75 = $0.00011/requestAiError: 3040: Capacity temporarily exceeded, please try again. This appears to happen intermittently, I have had this occur in the past, and it eventually resolves itself. Is there any information as to the cause, how to prevent it and what can be done to resolve it when these errors occur?"@cf/meta/llama-4-scout-17b-16e-instruct"
/completions/chat/completionsWorkers AI supports OpenAI compatible endpoints for text generation (/v1/chat/completions)runWithToolsgateway@cf/tomarkdown@cf/markdownlucidOrigin.get('/', async (c) => {
// Generate the image
const response = await c.env.AI.run(
"@cf/leonardo/lucid-origin",
{
prompt: "picture in a hand-drawn style of a mini goldendoodle dog playing fetch in a field"
}
);
console.log(response);
// Embed the image directly as a data URL
const imageDataUrl = `data:image/jpeg;base64,${response.image}`;
const html = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Image Generator</title>
<style>
// styles
</style>
</head>
<body>
<div class="container">
<h1>🎨 Leonardo AI Image Generator</h1>
<p>Generating: <em>A mini goldendoodle dog playing fetch in a field (hand-drawn style)</em></p>
<div class="image-container">
<img src="${imageDataUrl}" alt="AI Generated Image" />
</div>
</div>
</body>
</html>
`;
return c.html(html);
});"p"@cf/google/gemma-3-12b-itllama-4gpt-oss-120bgpt-oss-120b10000/1000000*0.35 + 1000/1000000*0.75 = $0.00425/request100/1000000*0.35 + 100/1000000*0.75 = $0.00011/requestAiError: 3040: Capacity temporarily exceeded, please try again."@cf/meta/llama-4-scout-17b-16e-instruct"