OptionalcallbackOptionalcustomMarks model as a custom wire id for the profile's own provider key, not a catalog slug.
OptionaleffortThinking effort. When omitted, the API resolves it for the model.
Optionalimage_Detail level for every image attached to the request. Defaults to high.
Only OpenAI-family models read it; other providers ignore it.
Optionalmax_Maximum output tokens, a positive integer up to 18,000. When omitted, the AI chat default applies.
Conversation so far. The last message must be a user message.
A string is sent as a single user message. Messages and system together
are limited to about 16,000 tokens.
OptionalmodelCatalog model to run. When omitted, the profile's chat model is used, then the free default model.
Optionalresponse_Ask for JSON output that follows a JSON schema (max 32 KB). The parsed
object is returned in output.json. The API does not check it against
the schema, so validate it before use.
Letters, digits, _ and -, up to 64 characters.
OptionalsystemSystem instructions for the model.
OptionalwaitSeconds to wait for the result before the API answers with a pending job.
Defaults to 10; values above 25 wait 25. Must not be negative. Use 0 to
return right away.
Analysis to run when the job reaches a final status, with the job as
scope[0]. The Analysis token must holdrun_analysison it, or the request is rejected before the job starts.If the API process running the job stops (for example, during a deploy), the job reads as
failedwithinterruptedand the callback does not run. Keep a fallback, such as reading the job withgetGeneration, when the result matters.