Workflow steps

model.generate

type: "model.generate"

One model call. The workhorse of most chains: classify, summarise, draft, extract.

model requiredschema for JSONbilled per call
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

modelstringrequired

A model name. Missing is refused on save.

inputsarray

[{ type: "text", content }], images included.

outputsarray

What to produce. Text by default.

schemaobject

A JSON schema. The answer comes back as an object instead of prose.

settingsobject

Temperature, output cap, thinking.

storagestring

A storage whose documents give it context.

Output

{{steps.classify.output.text}}            // the prose
{{steps.classify.output.usage.credits}}   // what it cost
"{{steps.classify.output.text}}"            # the prose
"{{steps.classify.output.usage.credits}}"   # what it cost

With a schema, the fields of the object are readable directly — which is what makes a model's answer safe to branch on.

Use a schema whenever a later step reads it

Branching on prose is branching on luck

A condition testing whether text contains « urgent » breaks the first time the model writes « this is not urgent ». A schema gives a boolean, and the condition reads a boolean.

{ id: "classify", type: "model.generate", config: {
    model: "gemini-3.5-flash",
    schema: { type: "object", properties: { urgent: { type: "boolean" }, reason: { type: "string" } } },
    inputs: [{ type: "text", content: "Is this urgent? {{input.text}}" }],
} }
{"id": "classify", "type": "model.generate", "config": {
    "model": "gemini-3.5-flash",
    "schema": {"type": "object", "properties": {"urgent": {"type": "boolean"}, "reason": {"type": "string"}}},
    "inputs": [{"type": "text", "content": "Is this urgent? {{input.text}}"}],
}}

It is a model call

Billed like any other, and the step reports its credits. On a scheduled or inbound trigger, that cost is paid on every firing — put the cheap checks before it.