Skip to main content
Return the available models, supported reasoning efforts, and cost limits for synthetic generation. Use id as generationModelId. Set reasoningEffort only when defaultReasoningEffort is present. maxCostPerAttempt must be between min and maxEstimate; values below typical produce a warning.

Signature

Method signature on client.generationModels:

Parameters

This method takes no arguments.

Returns

Promise<{ defaultGenerationModelId: "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5.4" | "gpt-5.4-mini" | "claude-sonnet-4-6" | "gemini-3.1-pro-preview" | "gemini-3.5-flash" | "gemini-3.7-flash" | "claude-sonnet-5" | "claude-opus-5" | "claude-fable-5" | "gpt-5.6-sol"; generationModels: GenerationModel[] }>
"gpt-5.4" | "gpt-5.4-mini" | "claude-sonnet-4-6" | "gemini-3.1-pro-preview" | "gemini-3.5-flash" | "gemini-3.7-flash" | "claude-sonnet-5" | "claude-opus-5" | "claude-fable-5" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5.6-sol"
required
The model a synthetic node uses when generationModelId is omitted.
GenerationModel[]
required
Models available for synthetic generation nodes.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: GET /generation-models.